I am attempting to migrate an SQL database with 'flask-migrate'. However, after initializing the db I run flask db migrate
resulting in the following:
ImportError: dlopen(/Users/eointraynor/Envs/my-wenv/lib/python2.7/site-packages/_mysql.so, 2): Library not loaded: /usr/local/mysql/lib/libmysqlclient_r.16.dylib
Referenced from: /Users/eointraynor/Envs/my-wenv/lib/python2.7/site-packages/_mysql.so
However, there is a later version of that library in that directory: libmysqlclient.20.dylib
.
I'm not exactly sure what the root cause of this is, so am uncertain about how to approach a solution.
I have my dependencies inside a virtualenvwrapper and am also working with:
- Flask-SQLAlchemy
- MySQL-python
- SQLAlchemy