-
Notifications
You must be signed in to change notification settings - Fork 57
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
Cannot uninstall packages using pip in cloned venvs #14
Comments
Sorry, I don't think I got/saw a notification email for this issue. I'll see if I can reproduce and dig into what's going on. |
weirdly, I can't reproduce this.
this is using a standard pip installed virtualenv and virtualenvwrapper on OSX, maybe it's something to do with ubuntu's packaged versions, perhaps they have slight differences to them? it's not unheard of. I don't have an ubuntu machine to test on presently. what happens if you use a pip installed virtualenv and a pip installed virtualenvwrapper instead of the ubuntu packaged versions? do you still get the same issue? |
virtualenvwrapper versions tested were |
FWIW, I tried to reproduce it on ubuntu 13.10, system virtualenv version 1.11, and I was unable to reproduce as well |
The problem for me is that shebang lines aren't updated in various scripts in the cloned virtualenv. Following on from my example above:
|
Uhm, here it might be worthwhile to raise an exception or output something to stderr I think that having shebangs that point to a python in a symlinked directory might also be a problem if moving the virtualenv from the symlink path, but this is probably not what is going wrong in this case |
Think the problem stems from there being symlinks from |
I had this same issue, resolved by deleting the symlinks in local, and pointing them to the destination virtualenv. |
This patch might fix this issue, though I'm not familiar w/ the usage of "local" directory in Linux(?).
|
thanks. is that rmtree safe? could we be deleting things that may not be replaced by the would it be safer to iterate through the symlinks in local and simply update the target location? there is symlink rewriting code in clonevirtualenv already. |
You're right. In Thus, the best/correct solution is copy-modifiy-paste the code from |
Note that package upgrade is also broken, not just uninstall. |
The symlink problem seems to be fixed by #17 |
Example below uses virtualenv-clone HEAD, virtualenvwrapper 3.4-2 (Ubuntu 13.10 package) and virtualenv 1.10.1-1:
yet
The text was updated successfully, but these errors were encountered: