(aws-lambda-python): Unable to build PythonLayer on Windows platform. #19059
Labels
@aws-cdk/aws-lambda-python
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
p1
What is the problem?
I have created a PythonLayer with a requirements.txt file. It's working on MAC platforms but on Windows we have some issues. Docker is able to download all dependencies, and tries copy to output folder asset-output/python, but it seems the folder is not created: "asset-outputpython". So docker recursively copies the original folder and exit after some time.
See in the log files.
Reproduction Steps
Simple PythonLayerVersion added to lambda with a requirements.txt file in it.
What did you expect to happen?
Successful Layer build
What actually happened?
Docker doesn't copy downloaded dependencies under asset-output/python it recursively copies folders and exited after a while.
I checked cdk soruce, and I think this command is invoked:
'python -m pip install -r requirements.txt -t /asset-output/python && cp -rT /asset-input/ /asset-output/python',
CDK CLI Version
2.12
Framework Version
No response
Node.js Version
16.14.0
OS
Windows
Language
Python
Language Version
Python 3.9
Other information
The text was updated successfully, but these errors were encountered: