patched pip/setuptools is outdated
See original GitHub issueHi,
The patched pip shipped with pipenv contains bugs https://github.com/pypa/setuptools/issues/885 .
$ pipenv --venv
File "/home/bersace/.local/lib/python3.5/site-packages/pipenv/patched/pip/_vendor/pkg_resources/__init__.py", line 3004, in _call_aside
f(*args, **kwargs)
File "/home/bersace/.local/lib/python3.5/site-packages/pipenv/patched/pip/_vendor/pkg_resources/__init__.py", line 3046, in _initialize_master_working_set
dist.activate(replace=False)
File "/home/bersace/.local/lib/python3.5/site-packages/pipenv/patched/pip/_vendor/pkg_resources/__init__.py", line 2578, in activate
declare_namespace(pkg)
File "/home/bersace/.local/lib/python3.5/site-packages/pipenv/patched/pip/_vendor/pkg_resources/__init__.py", line 2152, in declare_namespace
_handle_ns(packageName, path_item)
File "/home/bersace/.local/lib/python3.5/site-packages/pipenv/patched/pip/_vendor/pkg_resources/__init__.py", line 2092, in _handle_ns
_rebuild_mod_path(path, packageName, module)
File "/home/bersace/.local/lib/python3.5/site-packages/pipenv/patched/pip/_vendor/pkg_resources/__init__.py", line 2121, in _rebuild_mod_path
orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'
$ cd /home/bersace/.local/lib/python3.5/site-packages
$ rsync -av pkg_resources/ pipenv/patched/pip/_vendor/pkg_resources/
sent 869,388 bytes received 679 bytes 1,740,134.00 bytes/sec
total size is 866,503 speedup is 1.00
$ cd -
$ pipenv --venv
/home/bersace/.local/share/virtualenvs/testbed-ujqxzTi8
$
https://www.kennethreitz.org/essays/be-cordial-or-be-on-your-way
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Outdated setuptools causing package installation issues #152
This fails on the docker build step RUN pip install -r requirements.txt. Upgrading setuptools to setuptools-36.5.0 fixed this problem.
Read more >sudo pip install setuptools --upgrade error - Stack Overflow
Try to upgrade manually: pip uninstall setuptools pip install setuptools. If it doesn't work, try: pip install --upgrade setuptools --user python.
Read more >Why you shouldn't invoke setup.py directly - Paul Ganssle
This does not mean that setuptools itself is deprecated, or that using setup.py to configure your package builds is going to be removed....
Read more >pipenv Documentation
Pipenv is a tool that aims to bring the best of all packaging worlds (bundler, composer, npm, cargo, yarn, etc.) to the. Python...
Read more >setuptools 6.0.1 - PyPI
Easily download, build, install, upgrade, and uninstall Python packages.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
send a pull request, stop opening issues.
I’m not willing to maintain a forked version of pip, even for a software written by @kennethreitz .