M
moerchendiser2k3
Hi,
I have a problem with Python and the Python Image Library to get it
work on OSX 64 bit. Maybe anyone can help me? I started Python in 64
bit mode and called Image.open(...).load() and got:
ImportError: The _imaging C module is not installed
Yes, it seems PIL is not available in 64 bit on my system, but I can't
compile it in any way. Is there a tutorial or something like that
which explains how I can compile it in 64 bit? I found a workaround
where I added this function to the setup.py
OrigExtension = Extension
def Extension(*args, **kwargs):
extra_args = ['-arch', 'x86_64']
kwargs['extra_compile_args'] = extra_args + kwargs.get
('extra_compile_args', [])
kwargs['extra_link_args'] = extra_args + kwargs.get('extra_link_args',
[])
return OrigExtension(*args, **kwargs)
without success. Can anyone help me? Thanks...
Cheers, Googler
I have a problem with Python and the Python Image Library to get it
work on OSX 64 bit. Maybe anyone can help me? I started Python in 64
bit mode and called Image.open(...).load() and got:
ImportError: The _imaging C module is not installed
Yes, it seems PIL is not available in 64 bit on my system, but I can't
compile it in any way. Is there a tutorial or something like that
which explains how I can compile it in 64 bit? I found a workaround
where I added this function to the setup.py
OrigExtension = Extension
def Extension(*args, **kwargs):
extra_args = ['-arch', 'x86_64']
kwargs['extra_compile_args'] = extra_args + kwargs.get
('extra_compile_args', [])
kwargs['extra_link_args'] = extra_args + kwargs.get('extra_link_args',
[])
return OrigExtension(*args, **kwargs)
without success. Can anyone help me? Thanks...
Cheers, Googler