-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
#776 fix for libmysqlclient.so.18 error when using slim_handler #789
Conversation
Added include to zappa_settings Added ctypes to handler to load the selected libraries directly to PYTHONPATH
added a check to see if include was in the settings file.
Added empty list for default if user did not include it in the settings file or was not using slim_handler
Does not set include if users did set it.
For got parthenese :)
Okay, this looks like we're on the right track. Two things:
|
That make sense, I’ll add those tonight. I will include the defaults for MySQL-Python and mysqlclient. I was concerned about the coveralls test and resultant reduction in coverage.
TimJ
… On Apr 14, 2017, at 12:18 PM, Rich Jones ***@***.***> wrote:
Okay, this looks like we're on the right track.
Two things:
Can we include some sane defaults for INCLUDE so that MySQL and others affected by this in lambda-packages all work out of the box?
Please change the print statements to print() so that we don't have to update them when P3 drops.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#789 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABvUMxvysR9Pnq1pcBDnBOws6_32gaF2ks5rv6pYgaJpZM4M9FCl>.
|
Added a default library so this problem is not encountered when shipping Changed comments to be python 3 compatible
removed extra space.
Added a check for slim_handler Added default library for MySQL-python
I've merged this in now, thank you for going in on this! Just as a style point, you included a line of exceptionally ugly code:
Since it's already a list, we can simply cast it to a string:
I've gone ahead and changed this already, but in future it's generally good to try to keep the code as short, readable and WTF-free as possible! Thanks again, |
Thanks. I appreciate the opportunity and the feedback.
TimJ
… On Apr 16, 2017, at 1:41 PM, Rich Jones ***@***.***> wrote:
I've merged this in now, thank you for going in on this!
Just as a style point, you included a line of exceptionally ugly code:
settings_s += "INCLUDE=[" + ','.join(("'","'")).join(self.stage_config.get('include', [])).join(("'","'")) + "]\n"
Since it's already a list, we can simply cast it to a string:
include = self.stage_config.get('include', [])
if len(include) >= 1:
settings_s += "INCLUDE=" = str(include) + '\n'
I've gone ahead and changed this already, but in future it's generally good to try to keep the code as short, readable and WTF-free as possible!
Thanks again,
R
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Added include to zappa_settings
Added ctypes to handler to load the selected libraries directly to
PYTHONPATH
Description
This PR fixes the issue where Django using MySQLdb looks for libmysqlclient.so.18 and could not find it in any path when using the slim_handler. I creates a setting in the zappa_settings file for the specific library to add at handler init.
GitHub Issues
#776