[Pythonmac-SIG] Re: More on installer 2.3b2-1 (followup with debug output)

Russell E. Owen rowen at cesmail.net
Wed Jul 2 18:06:58 EDT 2003


In article <p05210600bb291bf3ad6c@[128.95.99.44]>,
 Russell E Owen <owen at astro.washington.edu> wrote:
>...
> This time the Package Manager does not run at all when I double click 
> it. It launches and quits with no explanation. The following is 
> writen to Console.log:
> 
> running sitecustomize.py
> Traceback (most recent call last):
>    File 
> "/Applications/MacPython-2.3/PackageManager.app/Contents/MacOS/PackageManager"
> , 
> line 17, in ?
>      os.execve(executable, sys.argv, os.environ)
> OSError: [Errno 2] No such file or directory
> 
> (the first line is expected, I print that myself in my sitecustomize.py).
>...
> 
> In summary, things are worse this time. No package manager means no 
> _tkinter and hence no Tkinter.

Comments:
*** I didn't move anything before running into these problems
(I see Jan de Leeuw is having the same problem
and you asked him that).

*** I added the requested print statements, specifically, I added:
print "execdir = %r" % (execdir,)
print "executable = %r" % (executable,)
print "sys.argv = %r" % (sys.argv,)
print "sys.prefix = %r" % (sys.prefix,)
print "os.environ = %r" % (os.environ,)
 right before the last line in the file:
os.execve(executable, sys.argv, os.environ)

The resulting Console output is (again, the first line is expected):

running sitecustomize.py
execdir = '/Applications/MacPython-2.3/PackageManager.app/Contents/MacOS'
executable = '/Applications/MacPython-2.3/PackageManager.app/Contents/MacOS/python.exe'
sys.argv = ['/Applications/MacPython-2.3/PackageManager.app/Contents/MacOS/PackageManager', '/Applications/MacPython-2.3/PackageManager.app/Contents/Resources/PackageManager.py', '-psn_0_4980737']
sys.prefix = '/Library/Frameworks/Python.framework/Versions/2.3'
os.environ = {'DYLD_LIBRARY_PATH': '/Applications/MacPython-2.3/PackageManager.app/Contents/Frameworks', 'SHELL': '/bin/tcsh', 'PYTHONSTARTUP': '/Users/rowen/pythonstartup.py', 'PYTHONPATH': '/Applications/MacPython-2.3/PackageManager.app/Contents/Resources', 'DYLD_FRAMEWORK_PATH': '/Applications/MacPython-2.3/PackageManager.app/Contents/Frameworks', 'SSH_AUTH_SOCK': '/tmp/501/nl.uu.phil.SSHAgent.socket', 'PYTHONEXECUTABLE': '/Applications/MacPython-2.3/PackageManager.app/Contents/MacOS/python.exe', 'DISPLAY': ':0.0', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', 'USER': 'rowen', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin:/Users/rowen', 'HOME': '/Users/rowen', 'PYTHONDOCS': '/Archives\xa5/UnixSoftware/Python Docs html-2.2.2/'}
Traceback (most recent call last):
  File "/Applications/MacPython-2.3/PackageManager.app/Contents/MacOS/PackageManager", line 22, in ?
    os.execve(executable, sys.argv, os.environ)
OSError: [Errno 2] No such file or directory

Sorry about the long lines, but I turned off wrapping. If it's garbled, I saved it as a file and would be happy to email that.

*** _tkinter was actually installed (I probably forgot to move Aqua Tcl/Tk
out of /Library/Frameworks first).
This is a relief since I need it and had no idea how to
manually add it to the binary installation.

I hope the debugging output is helpful. Let me know if you want any additional tests.

Regards,

-- Russell




More information about the Pythonmac-SIG mailing list