On Mar 19, 2005, at 2:42 PM, OpenMacNews wrote:

Hi all,

i'm building a local instance of Python v2.4.1c2 on a 'virgin install' of fully-updated OSX 10.3.8. w/ XCode 1.5

'configure' is successful w/


./configure \ --with-prefix=/usr/local/pythontest \ --enable-framework=/usr/local/pythonframe \ --with-threads \ --with-cxx=g++ \ --enable-ipv6 \ --enable-toolbox-glue

but a subsequent

        make frameworkinstall

FAILS at:

/usr/bin/install -c -m 644 ./Mac/Tools/IDE/Wtraceback.py /usr/local/pythonframe/Python.framework/Versions/2.4/Mac/Tools/IDE
/usr/bin/install -c -m 644 ./Mac/Tools/IDE/Wwindows.py /usr/local/pythonframe/Python.framework/Versions/2.4/Mac/Tools/IDE
./python.exe ./Mac/scripts/cachersrc.py -v /usr/local/pythonframe/Python.framework/Versions/2.4/lib/python2.4/ plat-mac /usr/local/pythonframe/Python.framework/Versions/2.4/Mac/Tools
Traceback (most recent call last):
File "./Mac/scripts/cachersrc.py", line 7, in ?
import macresource
File "/Volumes/g4_PORTS/usr/ports/Python-2.4.1c2/Lib/plat-mac/ macresource.py", line 6, in ?
import MacOS
ImportError: No module named MacOS
make[1]: *** [installmacsubtree] Error 1
make: *** [frameworkinstallmaclib] Error 2


I've found limited prior reference to this "ImportError: No module named MacOS
"), @:


        http://mail.python.org/pipermail/pythonmac-sig/2004-March/010709.html

but, afaik, there was no resolution ...

any suggestions as to what's broken here?

Works here, with 2.4.1c1 anyway.. but there have been no relevant changes that I know of. Most of the arguments you specify to configure are already on by default or have no effect. The --prefix argument has no effect, the symlinks are hardcoded to be installed to /usr/local/bin, and the framework contains everything else. I'm not totally sure that enable-toolbox-glue is on by default, but I think it is. I used it anyway:


% mkdir -p ~/src/Python-2.4.1c1/_panther
% cd ~/src/Python-2.4.1c1/_panther
% ../configure \
    --enable-toolbox-glue \
    --enable-framework=/Users/bob/python-2.4.1c1/Frameworks
% make
% sudo make frameworkinstall

worked fine for me.

-bob

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to