virtualenv doesn't work if nonsystem python is in path

Bug #737734 reported by John Ehresman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-virtualenv (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python-virtualenv

Since the first line of /usr/bin/virtualenv is #!/usr/bin/env python, virtualenv is trying to run the python I built and put into /usr/local/bin and fails since the virtualenv isn't available to that python (nor should it be). It fails with

Traceback (most recent call last):
  File "/usr/bin/virtualenv", line 2, in <module>
    import virtualenv
ImportError: No module named virtualenv

I actually know how to make things work, but /usr/bin/virtualenv should work regardless of if /usr/local/bin/python is first in my path. I'd expect it to use the system python -- what ubuntu installs should work regardless of what I put into /usr/local/bin (within reason).

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: python-virtualenv 1.4.9-3
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic x86_64
Architecture: amd64
Date: Fri Mar 18 14:20:46 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-virtualenv

Revision history for this message
John Ehresman (jpe) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-virtualenv - 1.7.1.2-1

---------------
python-virtualenv (1.7.1.2-1) unstable; urgency=low

  [ Clint Byrum ]
  * New upstream release. (LP: #986227)
  * d/p/pep3147-dist-packges.patch - Dropped, applied upstream
  * d/p/remove_syspath0_on_reinvoke.patch - Dropped, applied upstream

  [ Stefano Rivera ]
  * system-python.patch: Use /usr/bin/python in the shebang
    (Closes: #663228, LP: #737734)
  * cleanup_tmpdirs.patch: Cleanup temporary working directories
    (Closes: #661272)
    - rebuild_script.patch: Include rebuild_script.py. The tmpdir patch
      touches some embedded files.
    - Rebuild virtualenv.py during package build.
  * Bumped standards version to 3.9.3 (no changes needed).
  * Add myself to Uploaders.
  * Wrap long lists in debian/control.

 -- Stefano Rivera <email address hidden> Sun, 22 Apr 2012 17:34:40 +0200

Changed in python-virtualenv (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.