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

Invalid ELF header with Dragnet PyPi Wheel #102

Open
blundell opened this issue Apr 1, 2020 · 0 comments
Open

Invalid ELF header with Dragnet PyPi Wheel #102

blundell opened this issue Apr 1, 2020 · 0 comments

Comments

@blundell
Copy link

blundell commented Apr 1, 2020

Trying to use the Wheel files in an AWS Lambda but get this error:

Unable to import module 'myprj/__init__': /var/task/dragnet/blocks.so: invalid ELF header

Apparently the problem is because AWS Lambda's run on Linux and the dragnet import was built on another platform (mac os, according to the name dragnet-2.0.4-cp27-cp27m-macosx_10_14_x86_64.whl).

A work around is explained here: https://tg4.solutions/how-to-resolve-invalid-elf-header-error/

Any chance of a fix? i.e the wheel here: https://pypi.org/project/dragnet/#files can be updated to support all platforms.

Here is an example of a wheel that works on all platforms: https://pypi.org/project/requests/#files (requests-2.23.0-py2.py3-none-any.whl)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant