[New-bugs-announce] [issue7998] MacPython 2.7a3 posix_spawn error for build using --with-framework-name

Tom Loredo report at bugs.python.org
Tue Feb 23 08:29:49 CET 2010

New submission from Tom Loredo <loredo at astro.cornell.edu>:

Build Py-2.7a3 on Snow Leopard OS 10.6.2 with a non-default framework name:

./configure --prefix=/usr/local/tmp --enable-framework --with-framework-name=PythonAlpha  --enable-universalsdk=/ --with-universal-archs=intel

"make" succeeds, "make test" isn't perfect but is okay:

$ make test
347 tests OK.
1 test failed:
33 tests skipped:
    test_al test_bsddb test_bsddb3 test_cd test_cl test_codecmaps_cn
    test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr
    test_codecmaps_tw test_curses test_dl test_epoll test_gl
    test_imageop test_imgfile test_largefile test_linuxaudiodev
    test_ossaudiodev test_pep277 test_py3kwarn test_smtpnet
    test_socketserver test_startfile test_sunaudiodev test_timeout
    test_tk test_ttk_guionly test_urllib2net test_urllibnet
    test_winreg test_winsound test_zipfile64
1 skip unexpected on darwin:
make: *** [test] Error 1

But after "make install" the installed python fails:

$ which python
$ python
python: posix_spawn: python: Unknown error: 0

The same failure occurs if I directly execute python, python2.7, python-32, and the "w" versions in the framework with a full path, or with the /usr/local/tmp/bin paths.

On the other hand, if I build with the same config but omitting the framework name change:

./configure --prefix=/usr/local/tmp --enable-framework --enable-universalsdk=/ --with-universal-archs=intel

the command line interpreter is now fine:

$ which python
$ python
Python 2.7a3 (r27a3:78020, Feb 23 2010, 02:07:19) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin

By the way, in either case, python-32 (and its variants) are in the
framework but are *not* linked under the prefix (e.g., here they are
not in /usr/local/tmp/bin).  I don't know if this is intentional or not; it seems undesirable to me.

assignee: ronaldoussoren
components: Installation, Macintosh
messages: 99902
nosy: ronaldoussoren, tloredo
severity: normal
status: open
title: MacPython 2.7a3 posix_spawn error for build using --with-framework-name
type: behavior
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list