[Pythonmac-SIG] PIL problem: conflict between _imagingtk & _tkinter

Jinfeng Liu logical_j@yahoo.com
Tue, 26 Feb 2002 12:00:24 -0800 (PST)


Hi everyone. I'm a new comer.

I'm using PIL and need the ImageTk interface. Due to
some kind of name space conflict, python crashes:

dyld: python multiple definitions of symbol _TclAccess
/usr/local/lib/python2.2/lib-dynload/_tkinter.so
definition of _TclAccess
/usr/local/lib/python2.2/site-packages/PIL/_imagingtk.so
definition of _TclAccess

I got this problem previously using python2.2b1. Now
I'm using python2.2. The problem is still there but
python interpretor doesn't crash. Instead it always
refuses to load the 2nd module:

>>> import _tkinter
>>> import _imagingtk
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: Failure linking new module

I'm using python2.2 Tcl/Tk 8.4a3, PIL 1.1.2, GCC2.95.2
on OS X 10.1. The same problem also appeared with
python2.1. 

Does anyone have ideas how to fix it?

Thanks.


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com