Skip to content

pip 19.0.2: IndexError when building wheel on osx #6252

@gonzalocasas

Description

@gonzalocasas

Environment

  • pip version: 19.0.2
  • Python version: 3.6
  • OS: macos 10.13
  • Platform: Travis-ci

The error was observed on travis-ci build's using Miniconda with an environment that contains both conda and pip packages.

Description
It seems release 19.0.2 breaks something related to wheel building under certain circumstances.
The problem started happening yesterday and it popped up exactly after 19.0.2 was released. The build was succeeding on 19.0.1, and as soon as 19.0.2 was available, the build started failing. See successful build #10 and failed build #11. After pinning pip back to 19.0.1, the build started working again.

I don't have a clear idea of what exactly fails, but it seems to be related to cvxpy and its dependency scs, but it is not clear to me if this is in any way connected to the root cause, or is only the visible side-effect.

How to Reproduce

  1. Build using this travis file
  2. If pip version is not pinned, and it uses 19.0.2, an error occurs (see below for tracebacks and full output).

Output
The full build output is available directly on travis: https://travis-ci.com/gramaziokohler/robotic_assembly_workshop/builds/100338039

  Stored in directory: /Users/travis/Library/Caches/pip/wheels/1d/2f/99/1594715f229f93f235d8b370a3b6f16e2b00fbac1087a99902
  Building wheel for scs (setup.py) ... done
Exception:
Traceback (most recent call last):
  File "/Users/travis/miniconda3/envs/workshop/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 179, in main
    status = self.run(options, args)
  File "/Users/travis/miniconda3/envs/workshop/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 355, in run
    session=session, autobuilding=True
  File "/Users/travis/miniconda3/envs/workshop/lib/python3.6/site-packages/pip/_internal/wheel.py", line 980, in build
    python_tag=python_tag,
  File "/Users/travis/miniconda3/envs/workshop/lib/python3.6/site-packages/pip/_internal/wheel.py", line 813, in _build_one
    python_tag=python_tag)
  File "/Users/travis/miniconda3/envs/workshop/lib/python3.6/site-packages/pip/_internal/wheel.py", line 821, in _build_one_inside_env
    wheel_path = builder(req, temp_dir.path, python_tag=python_tag)
  File "/Users/travis/miniconda3/envs/workshop/lib/python3.6/site-packages/pip/_internal/wheel.py", line 898, in _build_one_legacy
    return os.path.join(tempd, sorted(os.listdir(tempd))[0])
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: wheelThe wheel format and 'pip wheel' commandauto-lockedOutdated issues that have been locked by automationkind: crashFor situations where pip crashestype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions