Mark Dickinson <dicki...@gmail.com> added the comment: 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) ---------- nosy: +mark.dickinson, tarek _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8447> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com