macOS - Docker build - OSError: [Errno 18] Invalid cross-device link
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
For some reason that happened to me as well, but running terraform plan && terraform apply immediately again, it went away. Really weird.
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.
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
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'
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.