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

[Migrated] Matplotlib not working on lambda due to use of local kiwisolver instead of manylinux #573

Open
jneves opened this issue Feb 20, 2021 · 0 comments

Comments

@jneves
Copy link
Contributor

jneves commented Feb 20, 2021

Originally from: Miserlou/Zappa#1499 by aldarund

Context

I have deployed my django app using zappa. During deploy it said - matplotlib==2.2.2: Using locally cached manylinux wheel . But the problem is that when i import it on lambda it fails with

File "/var/task/matplotlib/_layoutbox.py", line 23, in <module> import kiwisolver as kiwi ModuleNotFoundError: No module named 'kiwisolver'

I have checked uploaded zip file and i see that zappa bundled my local kiwisolver.cp36-win_amd64.pyd which obv wont work on lambda...
On pypi i see that manylinux wheel available for kiwisolver kiwisolver-1.0.1-cp36-cp36m-manylinux1_x86_64.whl but zappa dont use it.

Expected Behavior

Use kiwisolver manylinux wheel

Actual Behavior

Use of local version of kiwisolver package that is build for local platform ( win64) kiwisolver.cp36-win_amd64.pyd

Your Environment

zappa 0.45.1
windows
python 3.6

Is there a workaround for this??

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

2 participants