python - ImproperlyConfigured: Error loading MySQLdb module pycharm -


i'm getting error when trying launch project, think there mismatch in architecture of mysql python version? can't point out wrong, , how fix it.

thank you

improperlyconfigured: error loading mysqldb module: dlopen(/library/python/2.7/site-packages/mysql_python-1.2.4b4-py2.7-macosx-10.8-intel.egg/_mysql.so, 2): no suitable image found.  did find:     /library/python/2.7/site-packages/mysql_python-1.2.4b4-py2.7-macosx-10.8-intel.egg/_mysql.so: mach-o, wrong architecture  process finished exit code 1 

in pycharm, make sure point correct path mysql. if it's running in console not in pycharm; check environment variables. on top navigation, next green arrow, click on arrow pointing down / edit configuration in env variables add path mysql. in case:

dyld_library_path ||| /usr/local/mysql/lib/ 

for mac users similar issues, tutorial great: http://gpiot.com/mac-os-x-lion-the-perfect-setup-for-python-django/


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -