Tearing my hair out - Python Imaging Library

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
alistair
Posts: 109
Joined: Fri Jul 14, 2006 11:25 pm

Tearing my hair out - Python Imaging Library

Post by alistair »

Hi

I'm trying to get Python Imaging (PIL) to work with JPEG. I'm also trying to do this in a way that lets me embed PIL and libjpeg (if not statically linked) into my plugin, so that it's easy for folks without the two installed on their server Mac to work with it.

I've spent the last two days fighting linker issues, and I've got it working on Python 2.7.2, but when run within Indigo I get an error:

Traceback (most recent call last):
File "plugin.py", line 48, in <module>
<type 'exceptions.ImportError'>: dlopen(/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/FooPlugin.indigoPlugin/Contents/Server Plugin/PIL/_imaging.so, 2): Symbol not found: _jpeg_resync_to_restart
Referenced from: /Library/Application Support/Perceptive Automation/Indigo 5/Plugins/FooPlugin.indigoPlugin/Contents/Server Plugin/PIL/_imaging.so
Expected in: flat namespace
in /Library/Application Support/Perceptive Automation/Indigo 5/Plugins/FooPlugin.indigoPlugin/Contents/Server Plugin/PIL/_imaging.so

Can anyone give me any pointers? Has anyone already solved this problem?....

Solve the problem, win a free sandwich :D

-Alistair
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Tearing my hair out - Python Imaging Library

Post by matt (support) »

First, I commend you on trying to get the libraries embedded into your plugin so users don't have to try to install them.

Did you see this thread? It specifically mentions the error you are seeing. Sounds like the PIL cannot find the dynamically linked JPEG library. Since it is dynamically linked to the JPEG library, I'm not sure if getting it embedded into the plugin folder structure will work or not. It might be possible though (real helpful, I know).

Note also that Indigo uses python 2.5 for all plugins since that is the most recent version available on the minimum OS Indigo requires.
Image
Locked

Return to “Extending Indigo with Plugins and Python”