New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #18567 (closed defect: worksforme)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by macsforever2000@…

  • keywords python25 python26 python 30 added
  • owner changed from macports-tickets@… to arthur@…
  • port set to py25-virtualenv

Changed 3 years ago by blb@…

See also ticket #12369, specifically comment 17.

Changed 3 years ago by jezdez@…

  • cc jezdez@… added

Cc Me!

Changed 3 years ago by jezdez@…

Changed 3 years ago by anthony.theocharis@…

Also related,  #14844, and the associated mailing list entries on  python-virtualenv and  macports-users

Changed 3 years ago by anthony.theocharis@…

  • cc anthony.theocharis@… added

Cc Me!

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Changed 3 years ago by blb@…

Does this work now with python25 2.5.4_5, which has the various core modules reintegrated?

Changed 3 years ago by macsforever2000@…

WFM

$ virtualenv-2.5 mydemo --no-site-packages
New python executable in mydemo/bin/python
Installing setuptools............done.

Changed 3 years ago by macsforever2000@…

  • status changed from new to closed
  • resolution set to worksforme
Note: See TracTickets for help on using tickets.