Error Loading Mysqldb Module Dlopen No Suitable Image Found
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up python manage.py sql is throwing a no suitable image found exception up vote 2 down vote favorite I have macbook pro running OS X 10.7 on Intel processor. I have installed Django 1.3.1, MySQL-python 1.2.3. All the packages installed fine. When I execute command "python manage.py sql poll", I'm running into the following exception. Traceback (most recent call last): File "manage.py", line 14, in
Python MySQL database connector for Python programming Brought to you by: adustman Summary Files Reviews Support Wiki MySQLdb1 MySQLdb2 MySQLdb-SVN Tickets ▾ Bugs Patches Feature Requests News Discussion Donate Create Topic Stats Graph Forums Help 817 Open Discussion 162 Help Formatting Help wrong architecture error Forum: Open Discussion Creator: Ralph Grove Created: 2012-11-15 Updated: 2013-07-16 Ralph Grove - 2012-11-15 I just installed mysql-python, and am getting this error when I try to run it. The same error also pops up when I try to run django commands that access the database. http://stackoverflow.com/questions/8542673/python-manage-py-sql-is-throwing-a-no-suitable-image-found-exception python tests/test_MySQLdb_capabilities.py Traceback (most recent call last): File "tests/test_MySQLdb_capabilities.py", line 4, in
using 32-bit http://brewokr.blogspot.com/2015/05/forcing-django-to-use-32-bit-python.html MySQL and calling python with 'arch -i386'. https://bugs.mysql.com/bug.php?id=56435 Py scripts outside of Django are correctly querying MySQL etc. However, when I try to fire up Django and invoke the development server, I'm getting the error I was getting previously error loading when using 64-bit Python:django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_mysql.so, 2): no suitable image found. Did find: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_mysql.so: mach-o, but wrong architectureIn my .bash_profile I have alias python='arch -i386 python2.7' export VERSIONER_PYTHON_PREFER_64_BIT=no export VERSIONER_PYTHON_PREFER_32_BIT=yesSo I don't understand how Django is error loading mysqldb invoking python and why it isn't honoring what I have in .bash_profile. What do I need to change in Django to get it to invoke 32-bit Python? The full traceback when I do 'python manage.py runserver' is:Traceback (most recent call last): File "manage.py", line 14, in
Can't repeat Impact on me: None Category:Connector / ODBC Severity:S1 (Critical) Version:5.1 OS:Mac OS X (Version 10.6) Assigned to: Tags: Filemaker 11, ODBC Connector, OSX 10.6 View Add Comment Files Developer Edit Submission View Progress Log Contributions [1 Sep 2010 6:31] Dick Impens Description: I've installed the OSX 10.6 driver, but every time I try to connect (in Filemaker Pro 11 via ODBC) I get this error message. I've set up a system-dsn and added the server, user, password and database parameters in ODBC manager of OS X. This seems to work ok, but as soon as I add a ODBC datasource to Filemaker, selecting the system-dsn I've created and adding the username and password this error occurs; ODBC-fout: [iODBC][Driver Manager]dlopen(/usr/local/lib/libmyodbc5.so, 6): no suitable image found. Did find: /usr/local/lib/libmyodbc5.so: mach-o, but wrong architecture [iODBC][Driver Manager]Specified driver could not be loaded I cannot find any solution to this.... can someone explain what I am doing wrong? How to repeat: Just try to add a the ODBC Source to any Filemaker file, this error occurs. [1 Sep 2010 6:36] Tonci Grgin Hi Dick and thanks fore your report. Unfortunately, I do not have MAC box nor anyone has FileMaker to test with. I will, however, assign Sveta here but, imo, you should look into BugsDB and check many reports with similar synopsis. [1 Sep 2010 7:02] Dick Impens Hi Tonci, Thanks for your fast reply. I've searched the BugDB, only one result, but no solution. I've even searched via google, no results so far. Hope Sveta can give me some answers... Regards, Dick [1 Sep 2010 11:19] Sveta Smirnova Thank you for the feedback. Unfortunately I only have Mac OSX 10.4, not 10.6, therefore can not test. 10.4 driver works fine. But which package do you use? Please send us filename of the file you downloaded. [1 Sep 2010 12:02] Dick Impens Hi Sveta, Thank you for your fast reply. I've downloaded: Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive Connector-ODBC Filename: mysql-connector-odbc-5.1.7-osx10.6-x86-64bit.dmg and installed it on Mac OS 10.6.4 with all the latest updates. Kind regards, Dick. [7 Sep 2010 6:32] Tonci Grgin Dick, I'd say you really need 32bit c/ODBC as almost all of the clients out there are *32bit*. This