-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
error with virtualenv and python 3.4a1 #463
Comments
Oh, one possible factor is that I'm running virtualenv from my user-directory: hubert:tmp$ which virtualenv It also fails from tox, but I don't know if tox uses that same virtualenv executable or not. |
I don't think it's just you. I have a similar setup and problem. |
I can also reproduce, with identical stack trace. |
The problem is that virtualenv isn't copying over the "operator" module. |
I am having this problem too on OS X 10.8.5
|
collections in 3.4 is a module and we're not recursively copying it. |
Investigating. |
I will have a PR shortly... |
Ah I just did the same, also pulling in all the 3.3 modules. I'll merge mine thanks for the PR though |
Cool, good to see it fixed! |
This should be marked resolved? |
I have seen what seems the same error on python 3.4/ubuntu 14.04. Is this the same error? Shouldn't this be fixed?
|
Hmmm, yeah it seems like pnasrat@8ce3fcf (line 133 in particular) fixes this. I wonder if your |
@msabramo |
@gawry: That doesn't have the fix:
1.11.1 changelog:
Note that this has @pnasrat's commit 8ce3fcf, which changes the so therefore I would suggest that you upgrade to the latest version of virtualenv (at least 1.11.1 but might as well go with the latest probably):
and see if that fixes the problem. |
for some reason pip install --upgrade virtualenv was not getting the most recent version. Now it's working. Thanks! |
@msabramo I tried I fixed my Ubuntu 14.04 by doing the following:
Now I'm able to create virtualenvs for python3 again using:
Some bits stolen from the Pyramid guys here: Pylons/pyramid#1188 |
There is a potential bug in the virtualenv residing in RHEL 7.3 version. The bug is listed here: pypa/virtualenv#463 So inorder to overcome this issue, a work around created. JIRA: SB-8485 Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
There is a potential bug in the virtualenv residing in RHEL 7.3 version. The bug is listed here: pypa/virtualenv#463 So inorder to overcome this issue, a work around created. JIRA: SB-8485 Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
There is a potential bug in the virtualenv residing in RHEL 7.3 version. The bug is listed here: pypa/virtualenv#463 So inorder to overcome this issue, a work around created. JIRA: SB-8485 Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
There is a potential bug in the virtualenv residing in RHEL 7.3 version. The bug is listed here: pypa/virtualenv#463 So inorder to overcome this issue, a work around created. JIRA: SB-8485 Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
el7 now ships python36-virtualenv-15.1.0-4 which contains the fix of pypa/virtualenv#463 Signed-off-by: Kefu Chai <kchai@redhat.com>
el7 now ships python36-virtualenv-15.1.0-4 which contains the fix of pypa/virtualenv#463 Signed-off-by: Kefu Chai <kchai@redhat.com>
el7 now ships python36-virtualenv-15.1.0-4 which contains the fix of pypa/virtualenv#463 Signed-off-by: Kefu Chai <kchai@redhat.com>
el7 now ships python36-virtualenv-15.1.0-4 which contains the fix of pypa/virtualenv#463 Signed-off-by: Kefu Chai <kchai@redhat.com>
I'm having trouble getting virtualenv to work with python 3.4a1. It's entirely possible this has something to do with my setup, although I don't think I have anything unusual installed. It does work with 2.6-3.3.
hubert:tmp$ uname -a
Darwin hubert.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
hubert:~$ virtualenv --version
1.10.1
hubert:tmp$ which python3.4
/usr/local/bin/python3.4
hubert:tmp$ python3.4 --version
Python 3.4.0a1
hubert:tmp$ virtualenv --python=/usr/local/bin/python3.4 testenv34
Running virtualenv with interpreter /usr/local/bin/python3.4
Using base prefix '/Library/Frameworks/Python.framework/Versions/3.4'
New python executable in testenv34/bin/python3.4
Also creating executable in testenv34/bin/python
Failed to import the site module
Traceback (most recent call last):
File "/private/tmp/testenv34/bin/../lib/python3.4/site.py", line 703, in
main()
File "/private/tmp/testenv34/bin/../lib/python3.4/site.py", line 670, in main
virtual_install_main_packages()
File "/private/tmp/testenv34/bin/../lib/python3.4/site.py", line 553, in virtual_install_main_packages
f = open(os.path.join(os.path.dirname(file), 'orig-prefix.txt'))
File "/private/tmp/testenv34/bin/../lib/python3.4/locale.py", line 17, in
import re
File "/private/tmp/testenv34/bin/../lib/python3.4/re.py", line 124, in
import functools
File "/private/tmp/testenv34/bin/../lib/python3.4/functools.py", line 21, in
from collections import namedtuple
File "/private/tmp/testenv34/bin/../lib/python3.4/collections/init.py", line 8, in
all += collections.abc.all
AttributeError: 'module' object has no attribute 'abc'
ERROR: The executable testenv34/bin/python3.4 is not functioning
ERROR: It thinks sys.prefix is '/private/tmp' (should be '/private/tmp/testenv34')
ERROR: virtualenv is not compatible with this system or executable
The text was updated successfully, but these errors were encountered: