Opened 16 years ago
Closed 15 years ago
#18567 closed defect (worksforme)
py25-virtualenv - 1.3.2 - --no-site-packages broken due to non-standard macports module install
Reported by: | krunk7@… | Owned by: | arthur@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | python25 python26 python 30 | Cc: | jezdez@…, anthony.theocharis@… |
Port: | py25-virtualenv |
Description
It appears that macports has btoken out several modules normally included in a standard install of Python.
For example, the md5 module is installed as a site-package. Thus when you pass the --no-site-packages to virtualenv, it does not find these modules
Steps to reproduce error:
$ sudo port install py25-virtualenv $ virtualenv mydemo --no-site-packages New python executable in rtmrienv/bin/python Installing setuptools............ Complete output from command rtmrienv/bin/python -c "#!python \"\"\"Bootstrap setuptoo... " /opt/local/Library/Frameworks/...5.egg: Traceback (most recent call last): File "<string>", line 59, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/md5.py", line 6, in <module> from hashlib import md5 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/hashlib.py", line 133, in <module> md5 = __get_builtin_constructor('md5') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor import _md5 ImportError: No module named _md5 ---------------------------------------- ...Installing setuptools...done. Traceback (most recent call last): File "/opt/local/bin/virtualenv", line 8, in <module> load_entry_point('virtualenv==1.3.2', 'console_scripts', 'virtualenv')() File "/opt/local/lib/python2.5/site-packages/virtualenv.py", line 420, in main unzip_setuptools=options.unzip_setuptools) File "/opt/local/lib/python2.5/site-packages/virtualenv.py", line 685, in create_environment install_setuptools(py_executable, unzip=unzip_setuptools) File "/opt/local/lib/python2.5/site-packages/virtualenv.py", line 295, in install_setuptools cwd=cwd) File "/opt/local/lib/python2.5/site-packages/virtualenv.py", line 481, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command rtmrienv/bin/python -c "#!python \"\"\"Bootstrap setuptoo... " /opt/local/Library/Frameworks/...5.egg failed with error code 1
Change History (10)
comment:1 Changed 16 years ago by mf2k (Frank Schima)
Keywords: | python25 python26 python 30 added |
---|---|
Owner: | changed from macports-tickets@… to arthur@… |
Port: | py25-virtualenv added |
comment:2 Changed 16 years ago by blb@…
comment:4 Changed 16 years ago by jezdez@…
FYI, I attached a patch for the python25 port at http://trac.macports.org/attachment/ticket/12369/python25-reenable-libs.diff
comment:5 Changed 16 years ago by anthony.theocharis@…
Also related, #14844, and the associated mailing list entries on python-virtualenv and macports-users
comment:8 Changed 15 years ago by blb@…
Does this work now with python25 2.5.4_5, which has the various core modules reintegrated?
comment:9 Changed 15 years ago by mf2k (Frank Schima)
WFM
$ virtualenv-2.5 mydemo --no-site-packages New python executable in mydemo/bin/python Installing setuptools............done.
comment:10 Changed 15 years ago by mf2k (Frank Schima)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
See also ticket #12369, specifically comment 17.