Tuesday, August 31, 2010

Re: PIL on 10.6 = PAIN

To work with PIL and other librairies a little bit weird and difficult
to install the best way is to install Macport and after that:

port install py26-pil

and you'll need to use the python of the macport installation:

$ /opt/local/bin/python2.6

It's the samething on linux, i'm alway using the PIL package from my distro...

On Tue, Aug 31, 2010 at 7:10 PM, Bill Freeman <ke1g.nh@gmail.com> wrote:
> This sounds more like libjpeg isn't on the library load path, a
> system, rather than python, setting.
>
> I haven't done this with a Mac, but PIL has been troublesome on *nix
> servers for us as well.
>
> The common problems for us don't sound like your problem.  [Some
> versions of PIL install as "Imaging" rather than PIL.  If libjpeg
> isn't installed first, including development data (headers, stub
> library (called import library on Windows)) when your packaging system
> separates them, when you first build PIL, you can rebuild it until you
> are blue in the face and it won't pick up libjpeg that you installed
> later - need to totally remove PIL and rebuild]
>
> You seem to have successfully built to use libjpeg, but it isn't
> there.  I can think of three possibilities:
>
> 1. It really isn't there, maybe the reverse problem of installing a
> "development" package but not the main one.
>
> 2. It's there, but it doesn't match the version your _imagning.so was
> built against.
>
> 3. It's there, but the library loader hasn't been told about it.  On
> linux this means findable via ld.conf (or ld.so.conf) and ldconfig has
> been run since.  Package installation scripts usually take care of
> this, but it sometimes needs to be done by hand, if you're just, for
> example, unpacking a tarball.  I don't know the equivalent for osx.
>
> Good luck.
>
> Bill
>
> On Tue, Aug 31, 2010 at 12:41 PM, keynesiandreamer
> <keynesiandream@gmail.com> wrote:
>> Howdy!
>>
>> I have been working with Django/Pinax on a 10.6.4 system with python
>> 2.6.6 and have had no luck getting PIL to work. I have looked through
>> about 10-15 paged including ones listed on this group with no results.
>> Currently the error I am getting is:
>> The _imaging C module is not installed
>>
>> I have verified _imaging.so is in the file system. So it seems like a
>> syspath issue. I tried verifying that in the python prompt:
>>
>>>>> import _imaging
>> dlopen("/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
>> lib/python2.6/site-packages/PIL/_imaging.so", 2);
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>> ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/
>> Versions/2.6/lib/python2.6/site-packages/PIL/_imaging.so, 2): Symbol
>> not found: _jpeg_resync_to_restart
>>  Referenced from: /opt/local/Library/Frameworks/Python.framework/
>> Versions/2.6/lib/python2.6/site-packages/PIL/_imaging.so
>>  Expected in: flat namespace
>>  in /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
>> python2.6/site-packages/PIL/_imaging.so
>>
>> Any help would be greatly appreciated, too many hours stuck on this
>> with no results.. :-(
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

--
Mathieu Leduc-Hamel

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment