Author mark.dickinson
Recipients janssen, mark.dickinson, pitrou, ronaldoussoren, tarek, vstinner
Date 2010-08-03.19:49:33
SpamBayes Score 3.66364e-11
Marked as misclassified No
Message-id <1280864976.93.0.592339498448.issue8447@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce this locally;  it appears to have something to do with distutils and symlinks:

If I do:

ln -s /Users/dickinsm/python/svn/release26-maint/python.exe /Users/dickinsm/Documents/python.exe

and then try to execute the symlink, I get:


newton:~ dickinsm$ ~/Documents/python.exe
'import site' failed; use -v for traceback
Python 2.6.5+ (release26-maint:83685M, Aug  3 2010, 19:48:56) 
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

The '-v' output includes:

# /Users/dickinsm/python/svn/release26-maint/Lib/distutils/text_file.pyc matches /Users/dickinsm/python/svn/release26-maint/Lib/distutils/text_file.py
import distutils.text_file # precompiled from /Users/dickinsm/python/svn/release26-maint/Lib/distutils/text_file.pyc
'import site' failed; traceback:
Traceback (most recent call last):
  File "/Users/dickinsm/python/svn/release26-maint/Lib/site.py", line 525, in <module>
    main()
  File "/Users/dickinsm/python/svn/release26-maint/Lib/site.py", line 504, in main
    addbuilddir()
  File "/Users/dickinsm/python/svn/release26-maint/Lib/site.py", line 115, in addbuilddir
    s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
  File "/Users/dickinsm/python/svn/release26-maint/Lib/distutils/util.py", line 98, in get_platform
    cfgvars = get_config_vars()
  File "/Users/dickinsm/python/svn/release26-maint/Lib/distutils/sysconfig.py", line 525, in get_config_vars
    func()
  File "/Users/dickinsm/python/svn/release26-maint/Lib/distutils/sysconfig.py", line 382, in _init_posix
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/local/lib/python2.6/config/Makefile (No such file or directory)
History
Date User Action Args
2010-08-03 19:49:37mark.dickinsonsetrecipients: + mark.dickinson, ronaldoussoren, janssen, pitrou, vstinner, tarek
2010-08-03 19:49:36mark.dickinsonsetmessageid: <1280864976.93.0.592339498448.issue8447@psf.upfronthosting.co.za>
2010-08-03 19:49:33mark.dickinsonlinkissue8447 messages
2010-08-03 19:49:33mark.dickinsoncreate