Getting peewee to work on elastic beanstalk

点点圈 提交于 2019-12-02 04:24:32

Sorry I forgot I asked this. I eventually solved this issue by ssh'ing into the instance and installing MySQL-Python using easy_install instead of pip.

Basically I went to the python virtual environment direction at:

opt/python/run/venv/bin

and installed version 1.2.3 using easy_install:

sudo ./easy_install MySQL-Python==1.2.3

I checked to see it was installed by trying to import MySQLdb in the virtual environment's python:

./python

>>>import MySQLdb
>>>

and it worked for me. Then I reset the server by pushing to it again with the elastic beanstalk command line tool:

git aws.push

and that's about it. Somewhat annoying to have to do it, but it seems to continue to work when a new instance is started up.

Thanks, Alex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!