Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add a flag to skip .so file strip. #2

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

Merged
tobilg merged 1 commit into tobilg:master from blimmer:add-flag-to-strip-so-strip
May 27, 2020

Conversation

Copy link
Contributor

@blimmer blimmer commented May 27, 2020

This allows dependencies with compiled binaries, such as psycopg2-binary to work properly in the Lambda environment after building.

When the .so files are stripped, the Lambda function will fail with this exception:

[ERROR] Runtime.ImportModuleError: Unable to import module 'main': libpq-3d107b13.so.5.11: ELF load command address/offset not properly aligned

I've tested this change on my project and can confirm that it works as expected for my project.

I came to this conclusion by taking a look at serverless-python-requirements which provides this option and specifically mentions the ELF load command error I was receiving: https://github.com/UnitedIncome/serverless-python-requirements#option-not-to-strip-binaries

Also, thank you for this project! It has been very useful 😄

Copy link
Owner

tobilg commented May 27, 2020

Thanks a lot @blimmer! I made one small comment, could you please check?

Copy link
Contributor Author

blimmer commented May 27, 2020

Hey @tobilg - no problem. I don't see any comments on the files or the commit. Could you point me in the right direction? I'm happy to take a look.

Copy link
Owner

tobilg commented May 27, 2020

@blimmer sorry, this somehow got stuck in the GitHub App

This allows dependencies with compiled binaries, such as psycopg2-binary to work properly in the Lambda environment after building.
@blimmer blimmer force-pushed the add-flag-to-strip-so-strip branch from b24d884 to 175a1eb Compare May 27, 2020 18:51
Copy link
Contributor Author

blimmer commented May 27, 2020

No problem! Update made.

@tobilg tobilg merged commit bba9d83 into tobilg:master May 27, 2020
Copy link
Owner

tobilg commented May 27, 2020

Thanks a lot @blimmer!

Copy link
Contributor Author

blimmer commented May 27, 2020

No problem - thanks for the fast review and, more generally, this project!

tobilg reacted with heart emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@tobilg tobilg tobilg approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /