Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyprof: pipmain TypeError: 'module' object is not callable #680

Closed
hartb opened this issue Jan 8, 2020 · 2 comments
Closed

pyprof: pipmain TypeError: 'module' object is not callable #680

hartb opened this issue Jan 8, 2020 · 2 comments

Comments

@hartb
Copy link

hartb commented Jan 8, 2020

Building APEX with --pyprof in an environment with current pip may fail with:

Traceback (most recent call last):           
  File "setup.py", line 37, in <module>      
    pipmain(["install"] + required_packages) 
TypeError: 'module' object is not callable   

This is because pip moved the main function into a new main module under pip._internal between 19.2.3 and 19.3. It looks like they'll (temporarily) re-instate pip._internal.main as a function post-19.3.1, but the existing APEX setup.py will fail for --pyprof installs with pip 19.3 or 19.3.1.

See:

@hartb
Copy link
Author

hartb commented Jan 8, 2020

Will submit a PR

@hartb
Copy link
Author

hartb commented Jan 8, 2020

Fixed by #652

Thank you! Will close.

@hartb hartb closed this as completed Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant