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

Bug: Issues with building local dependencies for python3.11 runtimes #6481

Closed
mndeveci opened this issue Dec 21, 2023 · 1 comment
Closed
Labels
area/build sam build command python Pull requests that update Python code stage/waiting-for-release Fix has been merged to develop and is waiting for a release type/bug

Comments

@mndeveci
Copy link
Contributor

AWS SAM CLI's Native Linux ZIP distribution might be failing to build python3.11 local dependencies if local environment has Python 3.11.5 or greater versions. You might be affected by this issue if you are;

  • Using Native Linux ZIP distribution
  • Have an AWS Lambda function which uses python3.11 runtime which has local dependencies
  • Build environment has Python 3.11.5+ versions

AWS SAM CLI's Native Linux ZIP distribution is been built by PyInstaller tool. As of now, it is been built by Python 3.11.3 version.

With the Python 3.11.5 version, there was a backward incompatible change introduced in CPython which is causing failures during method calls if standard libraries are mixed (see here and here).

This is currently affecting external pip command calls to build Python 3.11 functions since PyInstaller adds the LD_LIBRARY_PATH into environment variables, which causes mixing standard python libraries. See their documentation for more details; https://pyinstaller.org/en/stable/runtime-information.html#ld-library-path-libpath-considerations.

We are currently working on the fix for the issue, as a workaround you might downgrade Python3.11 installation to 3.11.4 for now.

Thanks for your understanding.

@mndeveci mndeveci added type/bug area/build sam build command python Pull requests that update Python code labels Dec 21, 2023
@mndeveci mndeveci added the stage/waiting-for-release Fix has been merged to develop and is waiting for a release label Jan 2, 2024
Copy link
Contributor

github-actions bot commented Jan 4, 2024

Patch is released in v1.106.0. Closing

@github-actions github-actions bot closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build sam build command python Pull requests that update Python code stage/waiting-for-release Fix has been merged to develop and is waiting for a release type/bug
Projects
None yet
Development

No branches or pull requests

1 participant