Re: [Pythonmac-SIG] pyObjC and Plugins
On Thu, 2007-03-01 at 15:32 -0800, Steve Freitas wrote: > Rats. I installed pyobjc 1.4.1a0 from SVN (right over the top of 1.4, > using "python setup.py bdist_mpkg --open"), and that didn't fix it > either. I'm using py2app 0.3.6.dev_r54 and setuptools 0.6c5, and I'm on > PPC, but other than that there are no differences in versions. So now I've done easy_install ==dev for everything and that didn't change anything. Ronald, do you think your latest alteration might have anything to do with this? Any tips on where I can look for clues why this is failing? Thanks, Steve ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] pyObjC and Plugins
On Thu, 2007-03-01 at 07:34 -0800, Dethe Elza wrote: > Hmmm, I think I must have been a few revs behind. When I svn up'd to > HEAD and tried again it built and loaded. > > Here's my setup: > macholib-1.1-py2.5.egg > modulegraph-0.7-py2.5.egg > py2app-0.3.6.dev_r53-py2.5.egg > setuptools-0.6c3-py2.5.egg > bdist_mpkg-0.4.2-py2.5.egg > pyobjc-1.4.1a0 > Python 2.5 > OS X (10.4.8) Intel > > example built from latest pyobjc svn. Rats. I installed pyobjc 1.4.1a0 from SVN (right over the top of 1.4, using "python setup.py bdist_mpkg --open"), and that didn't fix it either. I'm using py2app 0.3.6.dev_r54 and setuptools 0.6c5, and I'm on PPC, but other than that there are no differences in versions. I know everything's landing in Python 2.5 and building from there (when I type "python" at the prompt, it fires up my 2.5 install, whether I'm root or steve), so I don't think my stock Python 2.3 is causing any problems. py2app version 2.x has never been anywhere near this machine, so I think I'm okay there. I just tried the SillyBalls example, and I got this: 2007-03-01 15:30:09.335 System Preferences[1540] ScreenSaverModules: can't get principalClass for /Users/steve/Library/Screen Savers/SillyBalls.saver 2007-03-01 15:30:09.336 System Preferences[1540] *** +[NSPrefPaneBundle bundleAtPathIsNativeForSystem:]: selector not recognized 2007-03-01 15:30:09.337 System Preferences[1540] Exception raised during posting of notification. Ignored. exception: *** +[NSPrefPaneBundle bundleAtPathIsNativeForSystem:]: selector not recognized Steve ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] pyObjC and Plugins
Hmmm, I think I must have been a few revs behind. When I svn up'd to HEAD and tried again it built and loaded. Here's my setup: macholib-1.1-py2.5.egg modulegraph-0.7-py2.5.egg py2app-0.3.6.dev_r53-py2.5.egg setuptools-0.6c3-py2.5.egg bdist_mpkg-0.4.2-py2.5.egg pyobjc-1.4.1a0 Python 2.5 OS X (10.4.8) Intel example built from latest pyobjc svn. HTH --Dethe On 1-Mar-07, at 2:48 AM, Steve Freitas wrote: > Hi Dethe, > > I attempted it again and unfortunately got the same error. > > I actually decided to do a fresh 10.4.8 install, did Xcode, Python 2.5 > and setuptools 0.6c5. I installed PyObjC 1.4 from source (the stable > download off the website), and told it to skip installing py2app. I > then > used easy_setup to install py2app==dev, which this time took care > of all > the dependencies, though I think it didn't take those from dev. Did > "python setup.py py2app" to the example, copied the result out of > dist/ > to ~/Library/PreferencePanes, clicked on it and it died with: > > = Thursday, March 1, 2007 2:45:39 AM US/Pacific = > 2007-03-01 02:45:41.627 System Preferences[1880] [NSPrefPaneBundle > instantiatePrefPaneObject] (/Users/steve/Library/PreferencePanes/Shell > Environment.prefPane): principalClass is nil. > > If you have any further ideas, I'd love to hear 'em. > > Thanks, > > Steve > "No lesson seems to be so deeply inculcated by experience of life as that you should never trust experts. If you believe doctors, nothing is wholesome; if you believe theologians, nothing is innocent; if you believe soldiers, nothing is safe." --Lord Salisbury, 19th century British prime minister ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] pyObjC and Plugins
Hi Steve, My first thought was to make sure that you were getting the python you just build when you type "python" at the command-line. I've had problems like this before when I had the wrong python in my Path. Then I thought, what if the problem is with the example code? I know I've built that example in the past--I have it running and just used the code yesterday to figure out how to set environmental variables globally in OS X for a friend. So I tried building and installing it, and I got the same problem you did. I haven't had a chance to pore over the log files or svn blame yet, but I would recommend a) trying a different example, and b) looking through the svn history to see what has changed recently in the EnvironmentalPrefs code. The only really recent change was when Ronald added a bundle identifier, but reverting to an version before that has the same problem so the change must be earlier. I have to get the kids (and myself) ready for the day, but I'll check in later if I figure anything else out. --Dethe On 1-Mar-07, at 2:48 AM, Steve Freitas wrote: > Hi Dethe, > > I attempted it again and unfortunately got the same error. > > I actually decided to do a fresh 10.4.8 install, did Xcode, Python 2.5 > and setuptools 0.6c5. I installed PyObjC 1.4 from source (the stable > download off the website), and told it to skip installing py2app. I > then > used easy_setup to install py2app==dev, which this time took care > of all > the dependencies, though I think it didn't take those from dev. Did > "python setup.py py2app" to the example, copied the result out of > dist/ > to ~/Library/PreferencePanes, clicked on it and it died with: > > = Thursday, March 1, 2007 2:45:39 AM US/Pacific = > 2007-03-01 02:45:41.627 System Preferences[1880] [NSPrefPaneBundle > instantiatePrefPaneObject] (/Users/steve/Library/PreferencePanes/Shell > Environment.prefPane): principalClass is nil. > > If you have any further ideas, I'd love to hear 'em. > > Thanks, > > Steve > It's like I'm living my own version of the Singularity. I both revel in it and am scared by it. I want to figure out how to crawl into a moment and expand it out so that I can fully experience it, but at the same time know that the rapid flow of events makes it's own experience. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] pyObjC and Plugins
Hi Dethe, I attempted it again and unfortunately got the same error. I actually decided to do a fresh 10.4.8 install, did Xcode, Python 2.5 and setuptools 0.6c5. I installed PyObjC 1.4 from source (the stable download off the website), and told it to skip installing py2app. I then used easy_setup to install py2app==dev, which this time took care of all the dependencies, though I think it didn't take those from dev. Did "python setup.py py2app" to the example, copied the result out of dist/ to ~/Library/PreferencePanes, clicked on it and it died with: = Thursday, March 1, 2007 2:45:39 AM US/Pacific = 2007-03-01 02:45:41.627 System Preferences[1880] [NSPrefPaneBundle instantiatePrefPaneObject] (/Users/steve/Library/PreferencePanes/Shell Environment.prefPane): principalClass is nil. If you have any further ideas, I'd love to hear 'em. Thanks, Steve ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] pyObjC and Plugins
On Wed, 2007-02-28 at 22:24 -0800, Dethe Elza wrote: > Hi Steve, > > At some point py2app went from being bundled as part of PyObjC to > being a separate install. I think at that time there was a > requirement to uninstall the old py2app before installing the new > one. I don't guarantee that is the solution to the problem you're > having, but it's a possibility (your problem sounds very much like > what I was facing, and this fixed it for me). Instructions for > uninstalling (and reinstalling) py2app are here: > > http://svn.pythonmac.org/py2app/py2app/trunk/doc/ > index.html#uninstalling-py2app-0-2-x-or-earlier Okay, I ignored that since I was never on 0.2 or earlier. That is, I think I wasn't. Now I remember it being part of an pyobjc install at one point... Okay, I'll go do that. > Also, while it may help to remove older versions of and altgraph, > bdist_mpkg, macholib, modulegraph, I'm pretty sure you don't have to > install them explicitly. They should come along as part of the > py2app install, if I recall correctly. The link above is to the > py2app docs, so you should be able to find all the info there. Perhaps another clue that something was wrong: When I did my py2app installation from svn, it wasn't bringing the prereqs with it. I'll check that out. > Good luck, and let us know how it goes! Thanks for the help, Dethe! Steve ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] pyObjC and Plugins
Hi Steve, At some point py2app went from being bundled as part of PyObjC to being a separate install. I think at that time there was a requirement to uninstall the old py2app before installing the new one. I don't guarantee that is the solution to the problem you're having, but it's a possibility (your problem sounds very much like what I was facing, and this fixed it for me). Instructions for uninstalling (and reinstalling) py2app are here: http://svn.pythonmac.org/py2app/py2app/trunk/doc/ index.html#uninstalling-py2app-0-2-x-or-earlier Also, while it may help to remove older versions of and altgraph, bdist_mpkg, macholib, modulegraph, I'm pretty sure you don't have to install them explicitly. They should come along as part of the py2app install, if I recall correctly. The link above is to the py2app docs, so you should be able to find all the info there. Good luck, and let us know how it goes! --Dethe On 28-Feb-07, at 10:11 PM, Steve Freitas wrote: > Hi all, > > I've spent all evening unsuccessfully trying to get the > EnvironmentPrefs > plugin working on my setup, and I hope you can help. I keep getting > this: > > 2007-02-28 21:56:58.918 System Preferences[522] *** -[NSBundle load]: > Error loading code /Users/steve/Library/PreferencePanes/Shell > Environment.prefPane/Contents/MacOS/Shell Environment for > bundle /Users/steve/Library/PreferencePanes/Shell > Environment.prefPane, > error code 2 (link edit error code 0, error number 0 ()) > 2007-02-28 21:56:58.918 System Preferences[522] [NSPrefPaneBundle > instantiatePrefPaneObject] (/Users/steve/Library/PreferencePanes/Shell > Environment.prefPane): principalClass is nil. > > I found this earlier thread... > > http://mail.python.org/pipermail/pythonmac-sig//2006-October/ > 018298.html > > ...in which apparently upgrading to a later version of py2app fixed by > Ronald Oussoren did the trick. However, doing the same hasn't fixed it > for me, and I'm guessing in the flurry of reinstallations I left > something out. > > I installed Python 2.5 from Python.org on a fresh install of 10.4.8. I > installed, from source, pyObjC 1.4. I did easy_install [module] > ==dev for > altgraph, bdist_mpkg, macholib, modulegraph and py2app. > print altgraph.__version__, bdist_mpkg.__version__, \ > macholib.__version__, modulegraph.__version__, py2app.__version__ > 0.6.8 0.4.2 1.2 0.7.1 0.3.6 > > Now, I did a lot of uninstallation and reinstallation of all of these > pieces, and it's possible something from an old install is still > hanging > around, since my uninstallation technique consisted of rm -Rf. > However, > I'm not yet ready to try a fresh 10.4.8 installation again without > someone telling me that's the only way. > > At various points in my console I also got the "ImportError: No module > named linecache", but not on every attempt -- I'm not sure why. I've > been careful to close and reopen System Preferences between each > attempt, and I delete build/ and dist/ in the EnvironmentPrefs dir as > well. If anyone could suggest something, I'd sure appreciate it. > > Thanks! > > Steve > > ___ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig "Everyone has gotten so hung up on the legality of this they've forgotten the ethics." --Paul Saffo, on the H-P Scandal ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] pyObjC and Plugins
Hi all, I've spent all evening unsuccessfully trying to get the EnvironmentPrefs plugin working on my setup, and I hope you can help. I keep getting this: 2007-02-28 21:56:58.918 System Preferences[522] *** -[NSBundle load]: Error loading code /Users/steve/Library/PreferencePanes/Shell Environment.prefPane/Contents/MacOS/Shell Environment for bundle /Users/steve/Library/PreferencePanes/Shell Environment.prefPane, error code 2 (link edit error code 0, error number 0 ()) 2007-02-28 21:56:58.918 System Preferences[522] [NSPrefPaneBundle instantiatePrefPaneObject] (/Users/steve/Library/PreferencePanes/Shell Environment.prefPane): principalClass is nil. I found this earlier thread... http://mail.python.org/pipermail/pythonmac-sig//2006-October/018298.html ...in which apparently upgrading to a later version of py2app fixed by Ronald Oussoren did the trick. However, doing the same hasn't fixed it for me, and I'm guessing in the flurry of reinstallations I left something out. I installed Python 2.5 from Python.org on a fresh install of 10.4.8. I installed, from source, pyObjC 1.4. I did easy_install [module]==dev for altgraph, bdist_mpkg, macholib, modulegraph and py2app. >>> print altgraph.__version__, bdist_mpkg.__version__, \ macholib.__version__, modulegraph.__version__, py2app.__version__ 0.6.8 0.4.2 1.2 0.7.1 0.3.6 Now, I did a lot of uninstallation and reinstallation of all of these pieces, and it's possible something from an old install is still hanging around, since my uninstallation technique consisted of rm -Rf. However, I'm not yet ready to try a fresh 10.4.8 installation again without someone telling me that's the only way. At various points in my console I also got the "ImportError: No module named linecache", but not on every attempt -- I'm not sure why. I've been careful to close and reopen System Preferences between each attempt, and I delete build/ and dist/ in the EnvironmentPrefs dir as well. If anyone could suggest something, I'd sure appreciate it. Thanks! Steve ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig