[Pythonmac-SIG] Re: [Image-SIG] PIL 1.1.4 breaks Python 2.3 on
Mac OS X 10.3 Panther
Bill Janssen
janssen at parc.com
Thu Oct 30 22:34:02 EST 2003
> Do you have any kind of non default settings? UFS, NFS, etc. homedir?
I'm not sure what a setting is, much less what the default ones are.
My homedir is on an NFS-mounted UFS partition, though. Never bothered
me with Jaguar.
> Have you tried turning off Fink?
Not sure what you mean -- fink has no active processes on this
machine. And /sw isn't on my path or sys.path anywhere.
> Is there an _imaging.so anywhere on your computer?
Yes, several. But only one on the sys.path for /usr/bin/python.
That's the one I built (and re-built, and re-built, and ...) from
source. Don't blame these unless you can tell me why Python is
finding them instead of the "right" one.
/Library/Python/2.3/PIL/_imaging.so
/private/tmp/Imaging-1.1.4/build/lib.darwin-7.0.0-Power_Macintosh-2.3/_imaging.so
/sw/lib/python2.3/site-packages/PIL/_imaging.so
/Temporary Items/Imaging-1.1.3/build/lib.darwin-6.6-Power Macintosh-2.2/_imaging.so
/Temporary Items/Imaging-1.1.4/build/lib.darwin-7.0.0-Power_Macintosh-2.3/_imaging.so
/usr/lib/python2.2/site-packages/PIL/_imaging.so
/usr/local/lib/python2.3/site-packages/PIL/_imaging.so
> Are you using OS X 10.3/Xcode 7B85?
Yes.
> Can you compile/run other modules?
Well, the only other one I've tried is Medusa, but that's Python-only.
Can you suggest a candidate?
> What's wrong with the PIL that's in Jack's PackageManager, or mine?
> Both of them should work, though you may have to move them to the right
> place post-install.
I'm working with a secure application, and need to build from source
-- internal guidelines.
Hmmm, that gives me the bright idea of trying "python -v". What's FixTk?
Bill
% python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site.py
import site # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/os.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/os.py
import os # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/os.pyc
import posix # builtin
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/posixpath.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/posixpath.py
import posixpath # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/posixpath.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/stat.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/stat.py
import stat # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/stat.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/UserDict.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/UserDict.py
import UserDict # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/UserDict.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/copy_reg.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/copy_reg.py
import copy_reg # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/copy_reg.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/types.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/types.py
import types # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/types.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/warnings.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/warnings.py
import warnings # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/warnings.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/linecache.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/linecache.py
import linecache # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/linecache.pyc
Python 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/PIL/Image.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/PIL/Image.py
import Image # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/PIL/Image.pyc
# /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/FixTk.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/FixTk.py
import FixTk # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/FixTk.pyc
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort
%
Bill
More information about the Pythonmac-SIG
mailing list