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.

patched pip/setuptools is outdated

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kennethreitzcommented, Sep 27, 2017

send a pull request, stop opening issues.

0reactions
bersacecommented, Sep 28, 2017

I’m not willing to maintain a forked version of pip, even for a software written by @kennethreitz .

Read more comments on GitHub >

github_iconTop 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 >

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