[Bug 830540] Re: virtualenv don't work

Patryk Zawadzki patrys at pld-linux.org
Sun Aug 21 18:52:44 CEST 2011


This is because we have Python compiled in "system install" mode. This
adds some optimizations like hardcoding system paths instead of trying
to guess them at runtime. There is a compile-time flag that changes the
behavior but I don't recall its name.

-- 
You received this bug notification because you are subscribed to PLD
Linux.
https://bugs.launchpad.net/bugs/830540

Title:
  virtualenv don't work

Status in PLD Linux Distribution:
  New

Bug description:
  $ /usr/bin/virtualenv --distribute --no-site-packages x
  New python executable in x/bin/python
  Installing distribute......
    Complete output from command /tmp/0/x/bin/python -c "#!python
  \"\"\"Bootstra... main(sys.argv[1:])
  " --always-copy -U distribute:
    Traceback (most recent call last):
    File "<string>", line 18, in <module>
  ImportError: No module named time
  ----------------------------------------
  ...Installing distribute...done.
  Traceback (most recent call last):
    File "/usr/bin/virtualenv", line 9, in <module>
      load_entry_point('virtualenv==1.6.1', 'console_scripts', 'virtualenv')()
    File "/usr/share/python2.7/site-packages/virtualenv.py", line 795, in main
      never_download=options.never_download)
    File "/usr/share/python2.7/site-packages/virtualenv.py", line 892, in create_environment
      search_dirs=search_dirs, never_download=never_download)
    File "/usr/share/python2.7/site-packages/virtualenv.py", line 593, in install_distribute
      search_dirs=search_dirs, never_download=never_download)
    File "/usr/share/python2.7/site-packages/virtualenv.py", line 562, in _install_req
      cwd=cwd)
    File "/usr/share/python2.7/site-packages/virtualenv.py", line 863, in call_subprocess
      % (cmd_desc, proc.returncode))
  OSError: Command /tmp/0/x/bin/python -c "#!python
  \"\"\"Bootstra... main(sys.argv[1:])
  " --always-copy -U distribute failed with error code 1

  $ rpm -qf /usr/bin/virtualenv
  python-virtualenv-1.6.1-1.noarch

To manage notifications about this bug go to:
https://bugs.launchpad.net/pld-linux/+bug/830540/+subscriptions


More information about the pld-bugs mailing list