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 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: But if I select a table (in Filemaker via the ODBC connection) Filemaker crashes, every time. Have no idea what was different this time, but it is working... http://intelishade.net/error-loading/error-loading-mysqldb-module-image-not-found.html
Did find: /Library/Python/2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.8-intel.egg/_mysql.so: mach-o, but wrong architecture It's running on Mac OS 10.8.2, with Python 2.7.2, and MySQL 5.5.28 Thanks for any advice. VERSIONER_PYTHON_PREFER_32_BIT will have no affect on it. Kind Regards, Dick [7 Sep 2010 12:23] Tonci Grgin Dick, I don't seem to find anything c/ODBC related in a crash... I'm not sure what the "right way" to solve this problem is, but, could you post the output of running mysql_config?
I sound like a quote from your article. can someone explain what I am doing wrong? I think if you get the 64-bit MySQL build, your problem will go away. Ah, but the source code is developed for and tested on Linux, and has apparently never been test-built on Mac OS X by the maintainers. The usual python setup.py buildsudo python
Gregory says: May 21, 2009 at 7:42 pm This post may have just saved my life. Peter Vince says: May 28, 2009 at 6:35 am Again, thanks so much for the post - but I have no immediate interest in "Django" so using the "settings.py" to set I spent several hours doing everything I thought I could do… and finally your solution worked. shacker says: May 28, 2009 at 7:48 am Peter - I'm not saying you need to be using Django, I'm saying that whatever app or util you're using to connect to
Ravi on September 14, 2011 at 9:39 am said: I did all this, but when i import PIL, it says " from PIL import Image ImportError: No module named PIL" and Katie Merth says: July 26, 2011 at 11:28 am Your update for Snow Leopard finally helped me overcome my hurdles! Makes me feel less squeamish about upgrading. You should now be able to launch a Python shell and type: >>> import MySQLdb and get no errors.
Physically locating the server Basic Change Set Question Can Communism become a stable economic strategy? Can you try creating a virtualenv environment and installing MySQLdb in there? JImmy Gitonga says: April 30, 2010 at 10:38 am Shacker, you were right - again ;). Dec 17 '11 at 6:06 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Chances are that the Python you are using (the Apple-supplied Python
Yay! Then build and install again. Error Loading Mysqldb Module Dlopen No Suitable Image Found How to avoid instantiating object inside a loop? In all of Mac-dom, there are few experiences more painful than trying to get Python tools to talk to a MySQL database.
thanks shacker says: January 2, 2012 at 12:55 pm Daniel, have you verified that that's the actual path to mysql.sock on your system? this contact form And you realize that MySQL now provides an official python-mysql binding that should work out-of-the-box? Furthermore I cannot simply copy /tmp/mysql.sock to /opt/local/var/run/mysql5/mysqld.sock (I get "Operation not supported on socket"). I just found many recommendations saying to install xcode, but they never said how to link the xcode C libraries for compiling programs from source in the terminal.
Not the answer you're looking for? And I had to go back to XAMPP and install the development package to get the development header files. ip96-62:mysite groverf$ python manage.py syncdb Traceback (most recent call last): File "manage.py", line 10, in
It's a symlink: does it end in "x86_64"? In this instance you need ensure that 64 bit version of MySQL Python is installed and being used, if not you may see an error message like the following:ERROR: ImportError: ("couldn't There are many ways you can run into problems when you pick and choose components from different sources.
FYI… I'm using an install of mySQL packaged with XAMPP. What other path could be set that is confusing it? –PhoebeB Jun 17 '10 at 23:59 Oh, that's estrange. If you see dyld: Library not loaded, then export DYLD_LIBRARY_PATH=/usr/local/mysql/lib share|improve this answer edited Oct 26 '12 at 8:35 Marko 8,119102653 answered Mar 17 '12 at 0:14 talent 1 add a So: $ cd /opt/local/lib/python2.5/site-packages # Copy two dirs and three files to system's site-packages dir sudo cp -r MySQL_python-1.2.2-py2.5.egg-info /Library/Python/2.5/site-packages sudo cp -r MySQLdb /Library/Python/2.5/site-packages sudo cp -r _mysql* /Library/Python/2.5/site-packages 4)
Jordan Hudson says: August 28, 2013 at 4:09 pm This absolutely saved me, mainly the part about copying the macports build of mysqldb, I had been struggling with the i386 that Is there any job that can't be automated? Does the Chosen Disciple perk work outside of VATS? Check This Out Nothing.
In my case: DYLD_LIBRARY_PATH ||| /usr/local/mysql/lib/ For the Mac users with similar issues, this tutorial is great: http://gpiot.com/mac-os-x-lion-the-perfect-setup-for-python-django/ share|improve this answer answered Jul 11 '13 at 23:49 Francois Constant 2,74611123 add Thank you. Just amazing that the problem has lasted this long. I've added my solution at the end of this post.
Deleted everything again and tried building from a download, using instructions cd34.com/blog/tag/mysql-python and it still recreates the (&&*&^ /Users/phoebebr/.python-eggs/MySQL_python-1.2.3c1-py2.6-macosx-10.6-universal.egg-tmp.