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

pip update to 22.x fails #605

Closed
michaelaye opened this issue Jun 3, 2016 · 9 comments
Closed

pip update to 22.x fails #605

michaelaye opened this issue Jun 3, 2016 · 9 comments
Labels

Comments

@michaelaye
Copy link

Trying to get the new setuptools into a fresh conda env fails:

(ipython_test)└─❱❱❱ pip install setuptools --upgrade                                        +4080 15:46 ❰─┘
Collecting setuptools
  Using cached setuptools-22.0.5-py2.py3-none-any.whl
Installing collected packages: setuptools
  Found existing installation: setuptools 21.2.1
Cannot remove entries from nonexistent file /Users/klay6683/miniconda3/envs/ipython_test/lib/python3.5/site-packages/easy-install.pth
@jaraco jaraco added the invalid label Jun 9, 2016
@jaraco
Copy link
Member

jaraco commented Jun 9, 2016

Hi Michael. I'm not quite sure what to do here. Does the issue only occur when using conda? In that case, is it an issue with conda? There's very little special about the 22.x release that should impact installation. In fact, it wasn't meant to be a major bump at all.

I suspect the issue lies with pip or conda or most likely something specific to your environment. If you can find something that setuptools can do to help avoid this issue, then do feel free to re-open this ticket or open another as appropriate.

@jaraco jaraco closed this as completed Jun 9, 2016
@michaelaye
Copy link
Author

It continues to fail for 23.0 with the same problem:

ipython_test)└─❱❱❱ pip install setuptools --upgrade                                +4071 21:18 ❰─┘
Collecting setuptools
  Using cached setuptools-23.0.0-py2.py3-none-any.whl
Installing collected packages: setuptools
  Found existing installation: setuptools 22.0.5
Cannot remove entries from nonexistent file /Users/klay6683/miniconda3/envs/ipython_test/lib/python3.5/site-packages/easy-install.pth

and this can not be a problem of your build process? Don't have anything else failing from pip unless somebody messes up their build.
@kalefranz would you maybe know what's going on ? As I said above, this is a clean fresh minimalistic new Python 3 conda env, nothing weird.

@michaelaye
Copy link
Author

Or is it maybe a pip problem?

@kalefranz
Copy link

Is the
/Users/klay6683/miniconda3/envs/ipython_test/lib/python3.5/site-packages/easy-install.pth
file there at all? If so, what are the contents?

Also, which pip are you using?

which -a pip

On Jun 9, 2016, at 10:23 PM, K.-Michael Aye notifications@github.com wrote:

Or is it maybe a pip problem?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@michaelaye
Copy link
Author

No, that file does not exist. Isn't that what the above error suggests?
Here's my pip meta-data:

(ipython_test)└─❱❱❱ which -a pip                                                   +4078 22:21 ❰─┘
/Users/klay6683/miniconda3/envs/ipython_test/bin/pip

┌─( ~/D/src )──────────────────────────────────────────────────────────────────────( @MacL2938 )─┐
(ipython_test)└─❱❱❱ pip --version                                                  +4079 22:21 ❰─┘
pip 8.1.2 from /Users/klay6683/miniconda3/envs/ipython_test/lib/python3.5/site-packages (python 3.5)

@kalefranz
Copy link

Ok yeah can you make sure setuptools is installed first?

python -c "import setuptools"

Also what's the output for

conda list

And then what happens with just

pip install setuptools

On Jun 9, 2016, at 11:22 PM, K.-Michael Aye notifications@github.com wrote:

No, that file does not exist. Isn't that what the above error suggests?
Here's my pip meta-data:

(ipython_test)└─❱❱❱ which -a pip +4078 22:21 ❰─┘
/Users/klay6683/miniconda3/envs/ipython_test/bin/pip

┌─( ~/D/src )──────────────────────────────────────────────────────────────────────( @MacL2938 )─┐
(ipython_test)└─❱❱❱ pip --version +4079 22:21 ❰─┘
pip 8.1.2 from /Users/klay6683/miniconda3/envs/ipython_test/lib/python3.5/site-packages (python 3.5)

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@michaelaye
Copy link
Author

(ipython_test)└─❱❱❱ python -c "import setuptools"                                                +4098 22:40 ❰─┘

┌─( ~/D/s/a/m/Tutorials λ:py3_summer | ✗ ✱ ◼ ea08826 )───────────────────────────────────────────( @MacL2938 )─┐
(ipython_test)└─❱❱❱ conda list                                                                   +4099 22:40 ❰─┘
# packages in environment at /Users/klay6683/miniconda3/envs/ipython_test:
#
appnope                   0.1.0                    py35_0    defaults
backports                 1.0                      py35_0    defaults
backports.shutil-get-terminal-size 1.0.0                     <pip>
decorator                 4.0.9                    py35_0    defaults
get_terminal_size         1.0.0                    py35_0    defaults
ipython                   4.2.0                    py35_1    defaults
ipython-genutils          0.1.0                     <pip>
ipython_genutils          0.1.0                    py35_0    defaults
openssl                   1.0.2h                        1    defaults
path.py                   8.2.1                    py35_0    defaults
pexpect                   4.0.1                    py35_0    defaults
pickleshare               0.7.2                    py35_0    conda-forge
pip                       8.1.2                    py35_0    defaults
prompt-toolkit            1.0.0                     <pip>
ptyprocess                0.5.1                    py35_0    defaults
pygments                  2.1.3                     <pip>
python                    3.5.1                         0    defaults
python-contrib-nbextensions alpha                     <pip>
python.app                1.2                      py35_4    defaults
readline                  6.2                           2    <unknown>
setuptools                22.0.5                   py35_0    defaults
simplegeneric             0.8.1                    py35_1    defaults
six                       1.10.0                    <pip>
sqlite                    3.13.0                        0    defaults
tk                        8.5.18                        0    <unknown>
traitlets                 4.2.1                    py35_0    defaults
wcwidth                   0.1.6                     <pip>
wheel                     0.29.0                   py35_0    defaults
xz                        5.0.5                         1    defaults
zlib                      1.2.8                         3    defaults

┌─( ~/D/s/a/m/Tutorials λ:py3_summer | ✗ ✱ ◼ ea08826 )───────────────────────────────────────────( @MacL2938 )─┐
(ipython_test)└─❱❱❱ pip install setuptools                                                       +4100 22:40 ❰─┘
Requirement already satisfied (use --upgrade to upgrade): setuptools in /Users/klay6683/miniconda3/envs/ipython_test/lib/python3.5/site-packages/setuptools-22.0.5-py3.5.egg

@jaraco
Copy link
Member

jaraco commented Jun 10, 2016

A google search for the error message in the OP revealed ContinuumIO/anaconda-issues#542, pypa/pip#2751, and tensorflow/tensorflow#622. It seems that there's an issue when setuptools is installed by conda and upgraded by pip. The issue has existed for some time and isn't due to any recent builds of setuptools.

@kalefranz
Copy link

CC @ilanschnell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants