terraform-aws-lambda icon indicating copy to clipboard operation
terraform-aws-lambda copied to clipboard

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

Open niranjan94 opened this issue 6 years ago β€’ 7 comments

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

niranjan94 avatar Nov 16 '20 16:11 niranjan94

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

kimmoahokas avatar Nov 19 '20 14:11 kimmoahokas

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.

fbuters avatar Nov 25 '20 11:11 fbuters

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

lcylwik avatar Dec 03 '20 16:12 lcylwik

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'

macimovic avatar Mar 26 '21 11:03 macimovic

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

github-actions[bot] avatar Dec 30 '24 00:12 github-actions[bot]

This issue was automatically closed because of stale in 10 days

github-actions[bot] avatar Jan 10 '25 00:01 github-actions[bot]

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.

github-actions[bot] avatar Feb 09 '25 02:02 github-actions[bot]