[MacPorts] #16511: zeroinstall-injector fails with pygtk problem
#16511: zeroinstall-injector fails with pygtk problem ------------------------------+--------------------------------------------- Reporter: wsc9tt@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: pygtk | Port: zeroinstall-injector ------------------------------+--------------------------------------------- The zeroinstall-injector package builds and installs fine but here is a sample from running it: mbp ~ $ 0launch --gui Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /site-packages/zeroinstall/0launch-gui/0launch-gui", line 11, in <module> import pygtk; pygtk.require('2.0') ImportError: No module named pygtk It appears to be missing some dependency. This is from a fresh install of macports on a Leopard machine. -- Ticket URL: <http://trac.macports.org/ticket/16511> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Comment(by wsc9tt@gmail.com): Interesting. The first half of the problem is that zeroinstall was using the wrong python. I don't have /opt/local/bin first in my path so it appears that 0install was relaunching python without using the macports version that is depends on. It either got the mac's /usr/bin/python or fink's /sw/bin/python2.5 When launching with the right PATH I get something like this: mbp ~ $ PATH=/opt/local/bin:$PATH 0launch --gui The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec(). Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug. The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec(). Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug. The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec(). Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug. The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec(). Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug. The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec(). Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug. where it then has a fault in python. -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@gmail.com | Owner: afb@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Changes (by blb@macports.org): * owner: macports-tickets@lists.macosforge.org => afb@macports.org -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@gmail.com | Owner: afb@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Comment(by afb@macports.org): Replying to [comment:2 wsc9tt@…]:
Interesting. The first half of the problem is that zeroinstall was using the wrong python.
I don't have /opt/local/bin first in my path so it appears that 0install was relaunching python without using the macports version that is depends on. It either got the mac's /usr/bin/python or fink's /sw/bin/python2.5
Yes, you need to have MacPorts in your PATH. Will look at the Leopard problem later. -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@gmail.com | Owner: afb@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Comment(by wsc9tt@gmail.com): Not just in your PATH, but first in your PATH. That is a bug IMHO. But it may be a bug with zeroinstall, I will test on linux. -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@gmail.com | Owner: afb@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Comment(by afb@macports.org): I meant first in your PATH, so that it won't use any other pythons... I'm sure that it would fail on Linux too, if you installed it for one Python and then put another one first in your PATH. More of a general Python bug, but. The other fork/exec problem is due to more strict enforcing in Leopard: http://developer.apple.com/releasenotes/CoreFoundation/CoreFoundation.html I don't really see launch doing any tricky stuff before calling the exec, but it's possible that some of the string/path functions call CoreFoundation. -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@… | Owner: afb@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Changes (by afb@…): * status: new => closed * resolution: => worksforme Comment: No activity, closing bug. -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------+---------------------------------------------- Reporter: wsc9tt@… | Owner: afb@… Type: defect | Status: reopened Priority: Normal | Component: ports Version: 1.6.0 | Resolution: Keywords: pygtk | Port: zeroinstall-injector -----------------------------+---------------------------------------------- Changes (by wsc9tt@…): * status: closed => reopened * resolution: worksforme => Comment: Funny, new machine, Snow Leopard, fresh install of MacPorts and one of the first things I tried is this: $ PATH=/opt/local/bin:$PATH 0launch http://dl.dropbox.com/u/4893/feeds/sshuttle.xml Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /site-packages/zeroinstall/0launch-gui/0launch-gui", line 13, in <module> import pygtk; pygtk.require('2.0') ImportError: No module named pygtk And a google search tells me I have already reported this bug. ;-) -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@… | Owner: afb@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Changes (by jmr@…): * cc: wsc9tt@… (removed) Old description:
The zeroinstall-injector package builds and installs fine but here is a sample from running it:
mbp ~ $ 0launch --gui Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /site-packages/zeroinstall/0launch-gui/0launch-gui", line 11, in <module> import pygtk; pygtk.require('2.0') ImportError: No module named pygtk
It appears to be missing some dependency.
This is from a fresh install of macports on a Leopard machine.
New description: The zeroinstall-injector package builds and installs fine but here is a sample from running it: {{{ mbp ~ $ 0launch --gui Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /site-packages/zeroinstall/0launch-gui/0launch-gui", line 11, in <module> import pygtk; pygtk.require('2.0') ImportError: No module named pygtk }}} It appears to be missing some dependency. This is from a fresh install of macports on a Leopard machine. -- -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@… | Owner: afb@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Comment(by afb@…): If you run `pygtk-demo`, does that work OK ? -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@… | Owner: afb@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Comment(by afb@…): Another way to get the same problem (besides not having MacPorts first in your $PATH), is to not have any `python` program (that is, not having run `python_select python25`) Zero Install assumes that it can use "#!/usr/bin/env python" Guess it should be patched to run python with the absolute path and version to avoid these problems, something like: `#!/opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python` -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@… | Owner: afb@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Changes (by afb@…): * status: reopened => closed * resolution: => fixed Comment: Fixed, r70137. -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@… | Owner: afb@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Comment(by wsc9tt@…): Thanks. I was about to tell you that creating a symlink for 'python' in /opt/local/bin and putting that first on the path works. But now it works. Now it seems my feed is busted... ;-) -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16511: zeroinstall-injector fails with pygtk problem -----------------------------------+---------------------------------------- Reporter: wsc9tt@… | Owner: afb@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: pygtk Port: zeroinstall-injector | -----------------------------------+---------------------------------------- Comment(by afb@…): Replying to [comment:14 wsc9tt@…]:
Thanks. I was about to tell you that creating a symlink for 'python' in /opt/local/bin and putting that first on the path works.
Yeah, that is what `python_select` does for you. If you don't run it, you end up with Apple's python. -- Ticket URL: <http://trac.macports.org/ticket/16511#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts