Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtualenv not entering #212

Closed
emanuele-f opened this issue Feb 27, 2014 · 3 comments
Closed

virtualenv not entering #212

emanuele-f opened this issue Feb 27, 2014 · 3 comments

Comments

@emanuele-f
Copy link
Contributor

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

@emanuele-f
Copy link
Contributor Author

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

@AphonicChaos
Copy link

Wasn't this fixed by #201 ?

@FeralBytes
Copy link
Contributor

Seems resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants