[PD] py/mysql

2010-06-09 Thread Dafydd Hughes
Hey everybody It's been a while - I hope everybody's good. Having a bit of an issue, and hoping somebody can help. I'm trying to use py in pd-extended 0.41.4 to add to a mysql db table using MySQLdb. The python script works fine on its own, but once I get it into py I get the following errors:

Re: [PD] py/mysql

2010-06-09 Thread Charles Henry
I am just now debugging a completely different application at work (CellProfiler Analyst), and trying to figure out this same error. The application is pre-compiled, and the *.pyc files are put into site-packages.zip. It retrieves the correct files from the archive, but then complains about not

Re: [PD] py/mysql

2010-06-09 Thread Charles Henry
Okay, my situation has been somewhat different, after all. I am running into architecture related problems with libraries. In particular, I was able to diagnose the problem using the file and dyldinfo commands. The library you (probably) need to find is _mysql.so and take a look at what the

Re: [PD] py/mysql

2010-06-09 Thread Dafydd Hughes
Thanks for your help, Charles. Yes - it turned out to be an architecture thing. It looks like Pd forces Python into 32-bits, and so mysql needs to be 32 bit, as well as MySQLdb. Once I reinstalled the server and rebuilt the library all 32-bit, it worked like a charm. Is there a 64-bit osx