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

macOS - Docker build - OSError: [Errno 18] Invalid cross-device link #69

Open
niranjan94 opened this issue Nov 16, 2020 · 4 comments
Open

Comments

@niranjan94
Copy link
Contributor

When building a lambda using docker on macOS, the following error is raised.

OSError: [Errno 18] Invalid cross-device link: '/tmp/pip-target-aypwuoa4/lib/python/pandas' -> '/var/task/pandas'

The requirements.txt is

pandas==1.0.3
scipy==1.4.1
nltk==3.4.5
joblib==0.14.1
@kimmoahokas
Copy link

For some reason that happened to me as well, but running terraform plan && terraform apply immediately again, it went away. Really weird.

@fbuters
Copy link

fbuters commented Nov 25, 2020

I am experiencing a similar issue here. Interestingly, the error on the invalid cross-device link for me occurs at a random python package, while sometimes the build is actually successful. At the moment I have no solution other than "try until it works", which is not really satisfying.

@lcylwik
Copy link

lcylwik commented Dec 3, 2020

I have the same issue:
OSError: [Errno 18] Invalid cross-device link: '/tmp/pip-target-u3i7dyip/lib/python/google' -> '/var/task/google'

Do you have any solution? @niranjan94

@macimovic
Copy link

Same issue OSError: [Errno 18] Invalid cross-device link: '/opt/conda/lib/python3.7/site-packages/pkg_resources' -> '/tmp/pip-uninstall-1k2j_mjl/opt/conda/lib/python3.7/site-packages/pkg_resources'

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

No branches or pull requests

6 participants