#18567: py25-virtualenv - 1.3.2 - --no-site-packages broken due to non-standard macports module install ------------------------------+--------------------------------------------- Reporter: krunk7@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: ------------------------------+--------------------------------------------- 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 }}} -- Ticket URL: <http://trac.macports.org/ticket/18567> MacPorts <http://www.macports.org/> Ports system for Mac OS