question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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 https://github.com/pypa/pipenv/blob/51cbc2e2f76a7c60f879a608fd96e95faca35f2e/pipenv/vendor/pip_shims/shims.py#L101

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:74
  • Comments:56 (14 by maintainers)

github_iconTop GitHub Comments

210reactions
nealedjcommented, Oct 5, 2018

Workaround for typical virtualenv setup:

pip install pipenv
pipenv run pip install pip==18.0
pipenv install
139reactions
uranusjrcommented, Oct 5, 2018

@Froskekongen Please try to avoid non-constructive messages. We understand this is frustrating, but interrogation doesn’t help. If you feel we need to improve, consider offering help instead of shouting at the sideline. “We” (whoever you are referring to) are always short of resources, and would gladly use your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipenv trouble on MacOS "TypeError: 'module' object is not ...
This is a bug in pipenv caused by using it alongside the newest version of pip (18.1): https://github.com/pypa/pipenv/issues/2924.
Read more >
pip list - exits with error "TypeError: 'module' object is not ...
Explanation: A broken pip installation can cause this issue. By reinstalling the pip will resolve the problem. If you have a custom ...
Read more >
TypeError 'module' object is not callable in Python - STechies
This error statement TypeError: 'module' object is not callable occurs when the user gets confused between Class name and Module name. The issue...
Read more >
pip:18.1 pipenv TypeError: 'module' object is not callable
pip 18.1 causes “TypeError: 'module' object is not callable" https://github.com/pypa/pipenv/issues/2924. A temporary workaround for pip 18.1 ...
Read more >
'mul' object is not callable | The AI Search Engine You Control
pypa/pipenvpip 18.1 causes "TypeError: 'module' object is not callable"#2924. Created about 4 years ago. 56. Be sure to check the existing issues (both...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found