[Pythonmac-SIG] Interpreter not initialized
Scott Frankel
leknarf at pacbell.net
Fri Jun 5 09:04:36 CEST 2009
I'm not sure I can upgrade to python26. Meanwhile, if I understand
your otool suggestion correctly, I've gotten seemingly ambiguous
results. (See below.)
Macports has installed the pyqt libs deep in its directory structure.
Pointing otool to QtCore.so, for example, returned a Python that's
neither /System nor the Macports deep installation.
Am I using otool incorrectly? Or interpreting the results incorrectly?
Thanks again!
Scott
% otool -L /opt/local/var/macports/software/py25-pyqt4/4.4.4_0/opt/
local/lib/python2.5/site-packages/PyQt4/QtCore.so
/opt/local/var/macports/software/py25-pyqt4/4.4.4_0/opt/local/lib/
python2.5/site-packages/PyQt4/QtCore.so:
/opt/local/Library/Frameworks/Python.framework/Versions/2.5/Python
(compatibility version 2.5.0, current version 2.5.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 111.1.1)
On Jun 4, 2009, at 11:37 PM, Dane Springmeyer wrote:
> Hey Scott,
>
> Essentially the problem results (like you note) from the system
> python (or some other python version) linking to a macports library.
> That python version then differs from the python version your are
> running from the interpreter.
>
> In general I've noticed this has been a big problem for macports and
> python25. Upgrading to python26 from macports often can help.
>
> Beyond that trying to figure out exactly what is linking to what is
> the next step, and the 'otool' command comes in very handy for this.
>
> For example, try pointing 'otool' at your pyqt lib like:
>
> $ otool -L /opt/local/lib/<name of pyqtlib>
>
> The resulting list will likely should linking to the /system python.
> If you can't upgrade to py26-pyqt then consider filing a bug with
> macports.
>
> The last trick is to use the 'install_name_tool' to actually
> manually (brute force) fix the linking from the /system python to
> the macports python.
>
> Dane
>
>
> On Jun 4, 2009, at 11:04 PM, Scott Frankel wrote:
>
>>
>> I'm using py2app for the first time to build a PyQt app. I get the
>> following error msg when I launch the app:
>>
>> Fatal Python error: Interpreter not initialized (version mismatch?)
>>
>> I've downloaded macports and installed its python25, pyqt, &c.
>> I've issued the command, sudo python_select python25, and checked
>> that python25 is selected with python_select -s.
>>
>> From searching the net and the archives, it's likely that the
>> system python is seeping into the build process somewhere. The
>> info I've read says that python_select should take care of the
>> problem.
>>
>> Any other suggestions?
>> Thanks in advance!
>> Scott
>>
>>
>> OSX 10.5.5
>> py25-py2app-devel @0.4.2_1
>> MacPorts-1.7.1-10.5-Leopard
>>
>>
>> _______________________________________________
>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
More information about the Pythonmac-SIG
mailing list