python - Passing Python3 to virtualenvwrapper throws up ImportError -
i'm trying use virtualenvwrapper make python 3 based virtualenv. however,i'm when pass optional interpreter argument, i'm seeing error. i'm running ubuntu 15.04. tried reinstalling virtualenv , virtualenvwrapper without success. help!
$ mkvirtualenv scriptcutter --python=/usr/bin/python3 running virtualenv interpreter /usr/bin/python3 traceback (most recent call last):   file "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 8, in <module>     import base64   file "/usr/lib/python3.4/base64.py", line 9, in <module>     import re   file "/usr/lib/python3.4/re.py", line 336, in <module>     import copyreg   file "/usr/local/lib/python2.7/dist-packages/copyreg/__init__.py", line 7, in <module>     raise importerror('this package should not accessible on python 3. ' importerror: package should not accessible on python 3. either trying run python-future src folder or installation of python-future corrupted. error in sys.excepthook: traceback (most recent call last):   file "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook     if not enabled():   file "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled     import re   file "/usr/lib/python3.4/re.py", line 336, in <module>     import copyreg   file "/usr/local/lib/python2.7/dist-packages/copyreg/__init__.py", line 7, in <module>     raise importerror('this package should not accessible on python 3. ' importerror: package should not accessible on python 3. either trying run python-future src folder or installation of python-future corrupted.  original exception was: traceback (most recent call last):   file "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 8, in <module>     import base64   file "/usr/lib/python3.4/base64.py", line 9, in <module>     import re   file "/usr/lib/python3.4/re.py", line 336, in <module>     import copyreg   file "/usr/local/lib/python2.7/dist-packages/copyreg/__init__.py", line 7, in <module>     raise importerror('this package should not accessible on python 3. ' importerror: package should not accessible on python 3. either trying run python-future src folder or installation of python-future corrupted. 
i come across same issue, after downgrade virtualenv 12.0.2, problem disappears.
Comments
Post a Comment