Tom Brander | 9 Oct 21:55 2013
Picon

Getting assertion error with pip list, how to fix?

On my main system Python using Ubuntu 12.10 and pip 1.4 
Does not give me much to go on??
Somewhat concerned that my main Python installation could be borked in some strange way although all seems ok for now..

Any suggestions appreciated!
EG:
pip list
I get a list of the packages up to here then:

sessioninstaller (0.0.0)
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 80, in run
    self.run_listing(options)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 127, in run_listing
    self.output_package_listing(installed_packages)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 136, in output_package_listing
    if dist_is_editable(dist):
  File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 347, in dist_is_editable
    req = FrozenRequirement.from_dist(dist, [])
  File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 194, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

--
You received this message because you are subscribed to the Google Groups "virtualenv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-virtualenv+unsubscribe <at> googlegroups.com.
To post to this group, send email to python-virtualenv <at> googlegroups.com.
Visit this group at http://groups.google.com/group/python-virtualenv.
For more options, visit https://groups.google.com/groups/opt_out.
Tom Brander | 9 Oct 22:17 2013
Picon

Re: Getting assertion error with pip list, how to fix?

Never mind! upgraded setuptools pip install --upgrade setuptools fixed the issue

On Wednesday, October 9, 2013 2:55:01 PM UTC-5, Tom Brander wrote:
On my main system Python using Ubuntu 12.10 and pip 1.4 
Does not give me much to go on??
Somewhat concerned that my main Python installation could be borked in some strange way although all seems ok for now..

Any suggestions appreciated!
EG:
pip list
I get a list of the packages up to here then:

sessioninstaller (0.0.0)
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 80, in run
    self.run_listing(options)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 127, in run_listing
    self.output_package_listing(installed_packages)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 136, in output_package_listing
    if dist_is_editable(dist):
  File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 347, in dist_is_editable
    req = FrozenRequirement.from_dist(dist, [])
  File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 194, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

--
You received this message because you are subscribed to the Google Groups "virtualenv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-virtualenv+unsubscribe <at> googlegroups.com.
To post to this group, send email to python-virtualenv <at> googlegroups.com.
Visit this group at http://groups.google.com/group/python-virtualenv.
For more options, visit https://groups.google.com/groups/opt_out.
Tom Brander | 9 Oct 22:45 2013
Picon

Re: Getting assertion error with pip list, how to fix?

Uh OH did not fix now majorly hosed up... it seems the setup tools upgrade messed up other stuff
  I tried pip installing upgrade stevedore based on the error message below.. and it errored out.
HELP!!

Now when I open a terminal I get: ..

stevedore.extension Could not load 'user_scripts': (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 75, in _load_plugins
    invoke_kwds,
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 87, in _load_one_plugin
    plugin = ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2107, in load
    if require: self.require(env, installer)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2120, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 580, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension Could not load 'project': (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 75, in _load_plugins
    invoke_kwds,
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 87, in _load_one_plugin
    plugin = ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2107, in load
    if require: self.require(env, installer)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2120, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 580, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension Could not load 'user_scripts': (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 75, in _load_plugins
    invoke_kwds,
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 87, in _load_one_plugin
    plugin = ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2107, in load
    if require: self.require(env, installer)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2120, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 580, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
tom <at> tom-sam:~$ 

On Wednesday, October 9, 2013 3:17:15 PM UTC-5, Tom Brander wrote:
Never mind! upgraded setuptools pip install --upgrade setuptools fixed the issue

On Wednesday, October 9, 2013 2:55:01 PM UTC-5, Tom Brander wrote:
On my main system Python using Ubuntu 12.10 and pip 1.4 
Does not give me much to go on??
Somewhat concerned that my main Python installation could be borked in some strange way although all seems ok for now..

Any suggestions appreciated!
EG:
pip list
I get a list of the packages up to here then:

sessioninstaller (0.0.0)
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 80, in run
    self.run_listing(options)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 127, in run_listing
    self.output_package_listing(installed_packages)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 136, in output_package_listing
    if dist_is_editable(dist):
  File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 347, in dist_is_editable
    req = FrozenRequirement.from_dist(dist, [])
  File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 194, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

--
You received this message because you are subscribed to the Google Groups "virtualenv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-virtualenv+unsubscribe <at> googlegroups.com.
To post to this group, send email to python-virtualenv <at> googlegroups.com.
Visit this group at http://groups.google.com/group/python-virtualenv.
For more options, visit https://groups.google.com/groups/opt_out.
Tom Brander | 9 Oct 22:55 2013
Picon

Re: Getting assertion error with pip list, how to fix?

Weird pip list -o shows setuptools (Current: 0.6c11 Latest: 1.1.6) even though I just did the upgrade.... so I suspect that may be the root cause, still baffled how to fix,, and I don't want to dig myself in deeper without some guidance!

On Wednesday, October 9, 2013 3:45:44 PM UTC-5, Tom Brander wrote:
Uh OH did not fix now majorly hosed up... it seems the setup tools upgrade messed up other stuff
  I tried pip installing upgrade stevedore based on the error message below.. and it errored out.
HELP!!

Now when I open a terminal I get: ..

stevedore.extension Could not load 'user_scripts': (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 75, in _load_plugins
    invoke_kwds,
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 87, in _load_one_plugin
    plugin = ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2107, in load
    if require: self.require(env, installer)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2120, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 580, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension Could not load 'project': (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 75, in _load_plugins
    invoke_kwds,
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 87, in _load_one_plugin
    plugin = ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2107, in load
    if require: self.require(env, installer)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2120, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 580, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension Could not load 'user_scripts': (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 75, in _load_plugins
    invoke_kwds,
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 87, in _load_one_plugin
    plugin = ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2107, in load
    if require: self.require(env, installer)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2120, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 580, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
tom <at> tom-sam:~$ 

On Wednesday, October 9, 2013 3:17:15 PM UTC-5, Tom Brander wrote:
Never mind! upgraded setuptools pip install --upgrade setuptools fixed the issue

On Wednesday, October 9, 2013 2:55:01 PM UTC-5, Tom Brander wrote:
On my main system Python using Ubuntu 12.10 and pip 1.4 
Does not give me much to go on??
Somewhat concerned that my main Python installation could be borked in some strange way although all seems ok for now..

Any suggestions appreciated!
EG:
pip list
I get a list of the packages up to here then:

sessioninstaller (0.0.0)
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 80, in run
    self.run_listing(options)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 127, in run_listing
    self.output_package_listing(installed_packages)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 136, in output_package_listing
    if dist_is_editable(dist):
  File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 347, in dist_is_editable
    req = FrozenRequirement.from_dist(dist, [])
  File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 194, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

--
You received this message because you are subscribed to the Google Groups "virtualenv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-virtualenv+unsubscribe <at> googlegroups.com.
To post to this group, send email to python-virtualenv <at> googlegroups.com.
Visit this group at http://groups.google.com/group/python-virtualenv.
For more options, visit https://groups.google.com/groups/opt_out.
Tom Brander | 9 Oct 23:18 2013
Picon

Re: Getting assertion error with pip list, how to fix?

got brave and deleted a leftover egg file in /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg-info
And I seem to be back on track, sorry for the noise... Hopefully if someone else has something similar it may help

On Wednesday, October 9, 2013 3:55:44 PM UTC-5, Tom Brander wrote:
Weird pip list -o shows setuptools (Current: 0.6c11 Latest: 1.1.6) even though I just did the upgrade.... so I suspect that may be the root cause, still baffled how to fix,, and I don't want to dig myself in deeper without some guidance!

On Wednesday, October 9, 2013 3:45:44 PM UTC-5, Tom Brander wrote:
Uh OH did not fix now majorly hosed up... it seems the setup tools upgrade messed up other stuff
  I tried pip installing upgrade stevedore based on the error message below.. and it errored out.
HELP!!

Now when I open a terminal I get: ..

stevedore.extension Could not load 'user_scripts': (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 75, in _load_plugins
    invoke_kwds,
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 87, in _load_one_plugin
    plugin = ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2107, in load
    if require: self.require(env, installer)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2120, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 580, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension Could not load 'project': (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 75, in _load_plugins
    invoke_kwds,
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 87, in _load_one_plugin
    plugin = ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2107, in load
    if require: self.require(env, installer)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2120, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 580, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension Could not load 'user_scripts': (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
stevedore.extension (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 75, in _load_plugins
    invoke_kwds,
  File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 87, in _load_one_plugin
    plugin = ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2107, in load
    if require: self.require(env, installer)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2120, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 580, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('setuptools>=0.7'))
tom <at> tom-sam:~$ 

On Wednesday, October 9, 2013 3:17:15 PM UTC-5, Tom Brander wrote:
Never mind! upgraded setuptools pip install --upgrade setuptools fixed the issue

On Wednesday, October 9, 2013 2:55:01 PM UTC-5, Tom Brander wrote:
On my main system Python using Ubuntu 12.10 and pip 1.4 
Does not give me much to go on??
Somewhat concerned that my main Python installation could be borked in some strange way although all seems ok for now..

Any suggestions appreciated!
EG:
pip list
I get a list of the packages up to here then:

sessioninstaller (0.0.0)
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 80, in run
    self.run_listing(options)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 127, in run_listing
    self.output_package_listing(installed_packages)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/list.py", line 136, in output_package_listing
    if dist_is_editable(dist):
  File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 347, in dist_is_editable
    req = FrozenRequirement.from_dist(dist, [])
  File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 194, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

--
You received this message because you are subscribed to the Google Groups "virtualenv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-virtualenv+unsubscribe <at> googlegroups.com.
To post to this group, send email to python-virtualenv <at> googlegroups.com.
Visit this group at http://groups.google.com/group/python-virtualenv.
For more options, visit https://groups.google.com/groups/opt_out.
Thomas Güttler | 11 Oct 14:09 2013
Picon

pip -l --> link from global site-packages

there are some libraries which are not easily installed in a virtualenv.

Example: gtk: http://stackoverflow.com/questions/3580520/python-virtualenv-gtk-2-0

Manually creating symlinks works, but it's not nice.

It would be great if pip could create the symlinks. Example:

pip -l ....

This would be make it possible to include this in a requirements.txt file:

-e git+https://mygitserver/repos/...
-l ....

What do you think about this feature?

   Thomas

Simon Cross | 11 Oct 14:13 2013
Picon

Re: pip -l --> link from global site-packages

I'd really like it in some form.

Whether putting -l in requirements files makes sense I'm not sure
about, but I'd really like to be able to cherry pick some requirements
from my system Python.

Schiavo
Simon

cpm | 15 Oct 02:25 2013
Picon

Re: Receiving "ERROR: virtualenv is not compatible with this system or executable" when creating new virtualenv on mac osx snow leopard

Thanks Alex, this definitely got me on the right track. I ended up re-installing python 2.7 via homebrew and everything seems to work now if I do the following:

I re-downloaded virtualenv 1.10.1 from pypi (via the green download button there, not via pip on the command line) and put it in my home directory.

I then ran the command below (where 'path/to/project' is the path to whatever directory you intend to create the virtualenv in):

python virtualenv-1.10.1/virtualenv.py path/to/project

This successfully created a new virtualenv in the specified directory which seems to function as normal.


-Chris

On Saturday, September 28, 2013 2:50:53 PM UTC-4, Alex Staenke wrote:
Hi Chris,

had the exact same error message.
I tried to use python 2.7.5 instead of the original 2.6. 
I think in my case the error came from a previous virtualenv session that I had created before.
It used 2.6 and after typing "source bin/activate" some paths seem to have been set

After quiting Terminal and doing everything again in a "clean" Terminal window everything worked fine.

Alex


Am Mittwoch, 16. Januar 2013 06:27:42 UTC+1 schrieb cpm:
Hi,

I've been trying to get virtualenv working again ever since I installed python 2.7 on my mac running snow leopard. The python installation itself works fine (standalone and with every package I've tried except virtualenv), it just throws the following error when I run the command mkvirtualenv --python=python2.7 mynewenv (note: using virtualenvwrapper, but I get the same error even when not using virtualenvwrapper). Both virtualenv and virtualenvwrapper installed successfully via pip, also setuptools-0.6c11-py2.7.egg installed successfully into /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg

$ mkvirtualenv --python=python2.7 mynewenv
Running virtualenv with interpreter /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
New python executable in mynewenv/bin/python
ERROR: The executable mynewenv/bin/python is not functioning
ERROR: It thinks sys.prefix is u'/System/Library/Frameworks/Python.framework/Versions/2.7' (should be u'/Users/chris/.virtualenvs/mynewenv')
ERROR: virtualenv is not compatible with this system or executable


I've done quite a bit of googling on this and it looks like this has been a somewhat known issue in the past, but I haven't been able to find a working solution. I've tried suggestions like the one here but they haven't worked for me. It seems like the error might be stemming from the virtualenv.py script itself, since virtualenv looks like it's expecting sys.prefix to be the location of the new python 2.7 within the virtualenv (/Users/chris/.virtualenvs/mynewenv) but is finding sys.prefix to instead be set to the original location (/System/Library/Frameworks/Python.framework/Versions/2.7).

Has anyone here experienced this or is able shed some light on possible solutions or workarounds? Any ideas would be great! 

Thanks!
-Chris

--
You received this message because you are subscribed to the Google Groups "virtualenv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-virtualenv+unsubscribe <at> googlegroups.com.
To post to this group, send email to python-virtualenv <at> googlegroups.com.
Visit this group at http://groups.google.com/group/python-virtualenv.
For more options, visit https://groups.google.com/groups/opt_out.
Thomas Güttler | 15 Oct 15:09 2013
Picon

pip: cert failed, but curl works

Hi,

I have installed the root CA at the pip client. And curl can access (and validate) it.

But pip failes to check the cert.

http://stackoverflow.com/questions/19377045/pip-cert-failed-but-curl-works

If you search the web, you get the advice to downgrade. Is there no better solution?

#### here the stackoverflow question:

We installed the our root cert on the client, and the https connection works for curl.

But if we try to use pip, it fails:

Could not fetch URL https://installserver:40443/pypi/simple/pep8/:
There was a problem confirming the ssl certificate:
<urlopen error [Errno 1] _ssl.c:499: error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>

The cert is on the client. See:

(foo_fm_qti)foo_fm_qti <at> vis-work:~$ curl -v https://installserver:40443/pypi/simple/pep8/
* About to connect() to installserver port 40443 (#0)
*   Trying 127.0.0.1... connected
* Connected to installserver (127.0.0.1) port 40443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
   CApath: /etc/ssl/certs/
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS alert, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
*    subject: C=DE; ST=Sachsen; L=Chemnitz; O=FOO-COM GmbH; OU=DV; CN=gray.foo-com.lan; emailAddress=info <at> foo-com.de
*    start date: 2013-09-09 10:47:50 GMT
*    expire date: 2019-05-24 10:47:50 GMT
*    subjectAltName: installserver matched
*    issuer: C=DE; ST=Sachsen; L=Chemnitz; O=FOO-COM GmbH; CN=FOO-COM Root CA; emailAddress=info <at> foo-com.de
*    SSL certificate verify ok.
 > GET /pypi/simple/pep8/ HTTP/1.1

Version: pip 1.4.1

Donald Stufft | 15 Oct 15:12 2013

Re: pip: cert failed, but curl works

Did you pass the ca-bundle into pip? It doesn't use the system certs.

On Oct 15, 2013, at 9:09 AM, Thomas Güttler <hv <at> tbz-pariv.de> wrote:

> Hi,
> 
> I have installed the root CA at the pip client. And curl can access (and validate) it.
> 
> But pip failes to check the cert.
> 
> http://stackoverflow.com/questions/19377045/pip-cert-failed-but-curl-works
> 
> If you search the web, you get the advice to downgrade. Is there no better solution?
> 
> #### here the stackoverflow question:
> 
> We installed the our root cert on the client, and the https connection works for curl.
> 
> But if we try to use pip, it fails:
> 
> Could not fetch URL https://installserver:40443/pypi/simple/pep8/:
> There was a problem confirming the ssl certificate:
> <urlopen error [Errno 1] _ssl.c:499: error:14090086:SSL
> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
> 
> The cert is on the client. See:
> 
> (foo_fm_qti)foo_fm_qti <at> vis-work:~$ curl -v https://installserver:40443/pypi/simple/pep8/
> * About to connect() to installserver port 40443 (#0)
> *   Trying 127.0.0.1... connected
> * Connected to installserver (127.0.0.1) port 40443 (#0)
> * successfully set certificate verify locations:
> *   CAfile: none
>  CApath: /etc/ssl/certs/
> * SSLv3, TLS handshake, Client hello (1):
> * SSLv3, TLS alert, Client hello (1):
> * SSLv3, TLS handshake, Server hello (2):
> * SSLv3, TLS handshake, CERT (11):
> * SSLv3, TLS handshake, Server key exchange (12):
> * SSLv3, TLS handshake, Server finished (14):
> * SSLv3, TLS handshake, Client key exchange (16):
> * SSLv3, TLS change cipher, Client hello (1):
> * SSLv3, TLS handshake, Finished (20):
> * SSLv3, TLS change cipher, Client hello (1):
> * SSLv3, TLS handshake, Finished (20):
> * SSL connection using DHE-RSA-AES256-SHA
> * Server certificate:
> *    subject: C=DE; ST=Sachsen; L=Chemnitz; O=FOO-COM GmbH; OU=DV; CN=gray.foo-com.lan; emailAddress=info <at> foo-com.de
> *    start date: 2013-09-09 10:47:50 GMT
> *    expire date: 2019-05-24 10:47:50 GMT
> *    subjectAltName: installserver matched
> *    issuer: C=DE; ST=Sachsen; L=Chemnitz; O=FOO-COM GmbH; CN=FOO-COM Root CA; emailAddress=info <at> foo-com.de
> *    SSL certificate verify ok.
> > GET /pypi/simple/pep8/ HTTP/1.1
> 
> Version: pip 1.4.1
> 
> -- 
> You received this message because you are subscribed to the Google Groups "virtualenv" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to python-virtualenv+unsubscribe <at> googlegroups.com.
> To post to this group, send email to python-virtualenv <at> googlegroups.com.
> Visit this group at http://groups.google.com/group/python-virtualenv.
> For more options, visit https://groups.google.com/groups/opt_out.

-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA


Gmane