[PD] py/mysql

Charles Henry czhenry at gmail.com
Wed Jun 9 21:39:18 CEST 2010


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 having the init_mysql function.  I also
am running a 32-bit application on a 64-bit capable machine.

Chuck

On Wed, Jun 9, 2010 at 12:45 PM, Dafydd Hughes <dafydd61 at gmail.com> wrote:
> 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:
>
> py - No namespace available
> Traceback (most recent call last):
>  File "/Users/dafydd/Documents/pd/Sound Sorter/db_add.py", line 1, in <module>
>    import MySQLdb
>  File "build/bdist.macosx-10.6-universal/egg/MySQLdb/__init__.py", line 19, in <module>
>  File "build/bdist.macosx-10.6-universal/egg/_mysql.py", line 7, in <module>
>  File "build/bdist.macosx-10.6-universal/egg/_mysql.py", line 6, in __bootstrap__
> ImportError: dynamic module does not define init function (init_mysql)
>
> I've done some searching and it sounds like this might be an issue with 32bit vs 64 bit builds, but I have no idea where to start. I'm on a macbook pro i7 (64 bit, right?). Would Pd have an effect here? Have I screwed something up?
>
> Sorry to be so vague - using the py/python/mysql combination is pretty new to me.
>
> cheers
> dafydd
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>



More information about the Pd-list mailing list