-
Notifications
You must be signed in to change notification settings - Fork 3k
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
tmp is on a different filesystem: 'OSError: [Errno 18] Invalid cross-device link' #103
Comments
diff --git a/pip.py b/pip.py
full_path)
self.dist.project_name)
|
Hmm, one problem is that we depend on the auto-creation of directories that I'm also concerned about the loss of file metadata (permissions etc) that it We could try to create our own temp directory somewhere close to the Not quite sure what to do here, input welcome.
|
Further discussion: http://groups.google.com/group/python- virtualenv/browse_thread/thread/18f5c08bd599288b
|
There has been some discussion on list of this issue: How portable does this need to be in terms of python versions? shutil.copytree from python 2.5 handles copy then copystat which should
|
I've worked around this by taking advantage of the fact that the tempfile export TMPDIR= to use a local tmp directory, and things go fine.
|
Oops, sorry that anonymous, was me.
|
Issue #35 was marked as a duplicate of this issue. device
|
Ouch. #35 brings up the case of something called AFS where apparently Patch on #35 is at http://lass.lfod.us/~will/pip-renames.diff -- I may end up doing both: try putting the save_dir in site-packages to allow device
|
use shutil.move for rollback-save (fixes #27) If TMPDIR is on a different filesystem, this has the potential to lose file → [Author: Carl Meyer Age: 16 months ago use shutil.move for rollback-save (fixes 27) If TMPDIR is on a different oserror
|
Issue #52 was marked as a duplicate of this issue.
|
see discussion also here pypa/pip#103
This issue still occurs with pip 8.1.2 and python 3.5.2 See the following output from an attempt to install
My
|
This is still an issue on pip 9.0.1. Why is this closed? |
I also get this error with pip 9.0.1 when trying to install ipywidgets |
I also get this error. Can it be addressed please. Especially when it has a fix in comments already. |
I am having this problem when trying to upgrade pip from 9.0.3 to 10.0.1 |
Same problem here,is this unfixed since 2011 ??? My /tmp is a separate filesystem and flagged noexec, as is the long standing best security practice for /tmp ! why not automatically use a local ( $pwd/tmp ) TMPDIR when /tmp is noexec and / or on a different filesystem ? |
I did eventually solve this problem on my end. For me, this was happening because I was running @neofutur, what exactly where you doing to cause this error? It is possible that you did something similar to me. |
I think I am having a similar error, although I am not sure if I still have the original error or if I am encountering a new error in the process of fixing the last error:
Rather frustrating - I don't have root privs on this machine. Jeff |
Please look at #5599. It's an issue with how Debian repackages pip. |
diff --git a/pip.py b/pip.py
--- a/pip.py
+++ b/pip.py
@@ -4714,7 +4714,7 @@
new_dir = os.path.dirname(new_path)
logger.info('Removing file or directory %s' % full_path)
self._moved_paths.append((prefix, path))
The text was updated successfully, but these errors were encountered: