(aws-lambda-python-alpha): I'm failing to bundle a Python 3.12 function using pipenv. #30170
Labels
@aws-cdk/aws-lambda-python
bug
This issue is a bug.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
effort/small
Small work item – less than a day of effort
p1
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
When trying to export the Pipfile to requirements.txt, I encounter the following error:
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
Expected Behavior
I expect to successfully bundle.
Current Behavior
Reproduction Steps
I'm using the following stack.
When I run cdk synth with the Pipfile placed in the src entry point, it results in an error.
Possible Solution
There is the following description in the Dockerfile.
I think it would be fine to upgrade the version of pipenv, as Python 3.6 is no longer supported by Lambda.
The same error was present up to pipenv==2023.3.20, but it seems that from pipenv==2023.4.20 onwards, the error does not occur
Additional Information/Context
No response
CDK CLI Version
2.141.0 (build 3d1c06e)
Framework Version
No response
Node.js Version
v18.16.0
OS
Windows (WSL2)
Language
TypeScript
Language Version
Typescript (5.4.5)
Other information
No response
The text was updated successfully, but these errors were encountered: