Pd, Python, MySQL

I’ve spent a good chunk of the last few days getting Python running in Pd. Thomas Grill has written an external that allows you to wrap up Python code. It’s really beautiful, and I love Python, even though I’m a complete novice.

It’s been an adventure though. Pd forces Python to work in 32-bits, which means it needs a 32-bit version of MySQL, as well as a 32-bit build of the MySQL library for Python. On a 64-bit computer that becomes a bit of an issue.

So far I’ve got it working flawlessly within Pd, but trying to import MySQLdb from a straight up .py file (which should be easier) doesn’t work – says I’ve got the wrong architecture. Luckily I’m not planning on doing too much db work outside of Pd right now.