lambda-packages icon indicating copy to clipboard operation
lambda-packages copied to clipboard

Django 2.2 + mysqlclient

Open rolexsanches opened this issue 6 years ago • 2 comments

The new Django 2.2 Version vs Zappa Precompiled mysqlclient (1.3.12) package is incompatible with new Django (AWS Lambda): image

image Information found in: https://docs.djangoproject.com/en/2.2/releases/2.2/

Thanks

rolexsanches avatar Apr 15 '19 22:04 rolexsanches

Is this package even supported anymore? I understand that this isn't the preferred method of distributing binaries, and that it may be a maintenance problem, but currently this is the default recommended way of making Zappa work with MySQL on Lambda, and there are no documented workarounds.

In the absence of solutions (or even documented workarounds) my only option was to fork this repository and add it to requirements.txt git+https://github.com/celeduc/lambda-packages@mysqlclient#egg=lambda-packages. This means that the full lambda-packages repo is cloned which is extremely slow and inefficient.

@Miserlou I really respect and appreciate the work you do on Zappa. This particular issue is a real blocker. If you could weigh in with a solution or a way forward I would greatly appreciate it.

celeduc avatar May 07 '19 09:05 celeduc

See also #95 #96 #100

celeduc avatar May 07 '19 09:05 celeduc

@natemoo-re mind taking a look?

matthewp avatar Apr 15 '21 18:04 matthewp

Thanks a ton for opening this issue! Should have a fix out shortly.

I forgot that we're not running postcss-preset-env to automatically create the fallback values.

natemoo-re avatar Apr 15 '21 18:04 natemoo-re