Skip to content

pip 18.1 causes "TypeError: 'module' object is not callable" #2924

Closed
macports/macports-ports
#2806
@rafaelcaricio

Description

@rafaelcaricio

Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.

Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.

Make sure to mention your debugging experience if the documented solution failed.

Issue description

New version of pip breaks pipenv, exactly on this line

_strip_extras = pip_import("_strip_extras", "req.req_install._strip_extras", "7", "9999")

Expected result

The _strip_extras not be a module.

Actual result
...
 File "/opt/myproj/.tox/py36/lib/python3.6/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 704, in from_line

    line, extras = _strip_extras(line)

TypeError: 'module' object is not callable
Steps to replicate

Provide the steps to replicate (which usually at least includes the commands and the Pipfile).


Please run $ pipenv --support, and paste the results here. Don't put backticks (`) around it! The output already contains Markdown formatting.

If you're on macOS, run the following:

$ pipenv --support | pbcopy

If you're on Windows, run the following:

> pipenv --support | clip

If you're on Linux, run the following:

$ pipenv --support | xclip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions