Skip to content

virtualenv not entering #212

Closed
Closed

Description

@emanuele-f

When I add pure python package dependecies and run distribute script I get

Installing collected packages: eyeD3, suds, python-magic
  Found existing installation: eyeD3 0.6.18
    Uninstalling eyeD3:
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 241, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python2.7/site-packages/pip/req.py", line 1294, in install
    requirement.uninstall(auto_confirm=True)
  File "/usr/lib/python2.7/site-packages/pip/req.py", line 525, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/usr/lib/python2.7/site-packages/pip/req.py", line 1639, in remove
    renames(path, new_path)
  File "/usr/lib/python2.7/site-packages/pip/util.py", line 294, in renames
    shutil.move(old, new)
  File "/usr/lib/python2.7/shutil.py", line 302, in move
    os.unlink(src)
OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/eyeD3-0.6.18-py2.7.egg-info'

It seems like virtual env is not entered, probably a subshell related issue

Activity

  1. emanuele-f commented on Feb 27, 2014

    @emanuele-f
    ContributorAuthor

    Changing line 724 of distribute script:

    724,726c724,725
    <     try source venv/bin/activate
    <     try pip install --target "$SITEPACKAGES_PATH" --download-cache "$PACKAGES_PATH" -r requirements.txt
    <     deactivate
    ---
    >   try bash -c "source venv/bin/activate && env CC=/bin/false CXX=/bin/false $PIP install --target '$SITEPACKAGES_PATH' --download-cache '$PACKAGES_PATH' -r requirements.txt"
    > 
    881a881
    >
    

    works for me

  2. AphonicChaos commented on Feb 28, 2014

    @AphonicChaos

    Wasn't this fixed by #201 ?

  3. FeralBytes commented on Feb 13, 2015

    @FeralBytes
    Contributor

    Seems resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions