[Pythonmac-SIG] installer and .profile
I just noticed a small issue with the new universal installer. It adds a path to the python bin folder to the user's ~/.profile. 1. The Apple-default bash shell doesn't read .profile (doesn't for me). (I think tcsh does, but I always used .login back then) 2. If it doesn't exist, .profile gets created with root ownership, since the installer must autorize to install. 3. Symlinks to the python binaries are installed in /usr/local/bin anyways. So really the installer should check if /usr/lcoal/bin is in the user's path. Since a user can choose their shell, maybe it shouldn't be trying to add to the user's path, but just tell the user that's what they need to do. Or if there is some way for the installer to figure out the user's default shell (I know it's a setting in the netinfo database for each user), the installer could intelligently edit the correct shell init (ie .bash_profile). - William Kyngesburye [EMAIL PROTECTED] http://www.kyngchaos.com/ Those people who most want to rule people are, ipso-facto, those least suited to do it. - A rule of the universe, from the HitchHiker's Guide to the Galaxy ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] installer and .profile
On Apr 24, 2006, at 9:55 AM, Ronald Oussoren wrote: On Monday, April 24, 2006, at 04:37PM, William Kyngesburye [EMAIL PROTECTED] wrote: I just noticed a small issue with the new universal installer. It adds a path to the python bin folder to the user's ~/.profile. 1. The Apple-default bash shell doesn't read .profile (doesn't for me). (I think tcsh does, but I always used .login back then) Bash does read .profile, unless a .bash_profile exists. Ah, well, I was always a little confused by all the levels of shell init scripts. 2. If it doesn't exist, .profile gets created with root ownership, since the installer must autorize to install. That's a bug. Since a user can choose their shell, maybe it shouldn't be trying to add to the user's path, but just tell the user that's what they need to do. Or if there is some way for the installer to figure out the user's default shell (I know it's a setting in the netinfo database for each user), the installer could intelligently edit the correct shell init (ie .bash_profile). The script is smart enough to edit the shell configuration of the users shell. I guess this would be a bug also, then? I have a .bash_profile, yet it added the .profile instead of editing my .bash_profile. And BTW. we have documentation about what the user should do to add the right directory to their PATH. It turns out most users don't read the documentation or are unix-illiterate enough to not being able to perform the changes that are required. Automating this task is a lot friendlier to those users. Not in the readme that is on the installer disk image. If it's in the documentation after install, at least that much should be duplicated in the readme since it's an install thing. Or at least mention in the readme what the installer does in the user's environment (some people might get a little touchy about having user files quietly modified by an installer). - William Kyngesburye [EMAIL PROTECTED] http://www.kyngchaos.com/ History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history. - Hitchhiker's Guide to the Galaxy ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Fwd: MacPython icon mockup
On 24-apr-2006, at 3:37, Bob Ippolito wrote: On Apr 23, 2006, at 5:20 PM, Jacob Rus wrote: Donovan Preston wrote: What about something more like the Help Indexer in /Developer/ Applications/Utilities. A little more stylized and less photorealistic. Should look better at smaller sizes. Yeah, building on Brendan Simons' idea of what a Help Indexer-esque Applet Builder.app icon should look like, here's what I've come up with: http://hcs.harvard.edu/~jrus/python/prettified-py-icons.png +1, I like it! Same here. Let's stop here. I'll see if I can do a new release of the universal build this week that includes these icons. Ronald -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Fwd: MacPython icon mockup
It's amazing what a nice, shiny, new icon can do for morale. I'm breathing better already. (And I'm not even being ironic.) That's a sixteen-ton weight off my chest. Charles Hartman On Apr 24, 2006, at 1:18 AM, Jacob Rus wrote: Zachery Bir wrote: Bob Ippolito wrote: +1, I like it! Moi, aussi. Put a fork in it, it's done! Ok, the fork is in. http://hcs.harvard.edu/~jrus/python/python-icons.zip P.S. two of the icons have drop states. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] spaces
kevin parks wrote: The world isn't gonna end but i am still 100% -0 on this proposal... It won't kill me either, but FWIW: -1 I guess that's what I get for being more a *nix guy than a Mac Guy. -CHB -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Compiling Numeric for OSX-intel
I use the old Numeric package quite a bit (numpy is just not ready for primetime) and stupid me, I didn't check if it was available before I installed the Universal binary package for python 2.4.3. Rather than moving backwards, I'd like to try getting it to compile. However, I can't seem to find the cvs/svn with the most recent configuration files. Where are those? I'd also like to install numarray, numpy, and scipy. (numpy won't compile due to can't locate file for : -lcc_dynamic; this was also a problem for the sources of numarray and Numeric) I'm running a MacBookPro with 10.4.6. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Compiling Numeric for OSX-intel
On Apr 23, 2006, at 4:28 PM, Jeremy Gore wrote: I use the old Numeric package quite a bit (numpy is just not ready for primetime) and stupid me, I didn't check if it was available before I installed the Universal binary package for python 2.4.3. Rather than moving backwards, I'd like to try getting it to compile. However, I can't seem to find the cvs/svn with the most recent configuration files. Where are those? I'd also like to install numarray, numpy, and scipy. (numpy won't compile due to can't locate file for : -lcc_dynamic; this was also a problem for the sources of numarray and Numeric) I'm running a MacBookPro with 10.4.6. Are you sure you have the latest Xcode installed with the 10.4u SDK? -lcc_dynamic sounds like compiler mismatch or something. -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] New wiki entry on Universal libraries and extensions
Daniel Lord wrote: I made good on my threat and wrote it up. Thanks for writing this up. Maybe it should be part of: http://pythonmac.org/wiki/UniversalPackages or at least linked there. please review my content and let's get anything incorrect fixed. For now, I've just fixed a couple typos and formatting errors. My primary comment is that you're discussing building a Universal package, but keeping the external libs installed with the standard make install. I haven't tried your scheme yet, but usually that results in dynamic libs being built, sometimes by themselves, and sometimes along with the static libs. The trick here is that you can sometimes get the dynamic libs instead of the static ones when you link. Either way, it will work fine on your system, but there's really no point in building a Universal Package if you're not trying to distribute it (or a Py2App bundle built with it) That's why I put the static libs I build into a a special place inside my home directory -- I can be sure that's what's getting linked. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Compiling Numeric for OSX-intel
Bob Ippolito wrote: On Apr 23, 2006, at 4:28 PM, Jeremy Gore wrote: I use the old Numeric package quite a bit (numpy is just not ready for primetime) and stupid me, I didn't check if it was available before I installed the Universal binary package for python 2.4.3. Rather than moving backwards, I'd like to try getting it to compile. I'm running a MacBookPro with 10.4.6. Are you sure you have the latest Xcode installed with the 10.4u SDK? -lcc_dynamic sounds like compiler mismatch or something. Yes, it should work. Better yet, let's try to get a universal package built. When you've resolved this, please update the Numeric section on: http://pythonmac.org/wiki/UniversalPackages -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Applets?
Hi all, Along with the icon discussion (they look great, by the way) There has been a lot of mention of BuildApplet and Py2Applet, etc. I'm a bit confused as to what actually exists. This is my understanding -- someone please clarify if I'm wrong: BuildApplication: Builds a complete *.app bundle, including the entire python interpreter, etc. Is is not longer being maintained, and may or may not work in a given instance. BuildApplet: Builds a *.app bundle that does not include python, and thus looks and acts like a real application, but requires a complete appropriate python installation. Also no longer maintained, and may or may not work. Py2App: Builds a complete *.app bundle (like BuildApplication) that includes everything but python if the system python is used, and includes everything if another python is used. It is more robust than BuildApplication and is being maintained with a version supporting the Universal build released. Py2Applet: This does not exist. If it did, it would be like BuildApplet, but using the Py2App code base. My understanding is that Bob I. (author of Py2App) has no need for such a thing, and has thus not written it. He has indicated that he will accept patches, however. (Have I got that right, Bob?) Oh, and BuildApplication and BuildApplet are not going to be included in future versions. Thanks for any clarification. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Compiling Numeric for OSX-intel
Bob Ippolito wrote: On Apr 23, 2006, at 4:28 PM, Jeremy Gore wrote: I use the old Numeric package quite a bit (numpy is just not ready for primetime) and stupid me, I didn't check if it was available before I installed the Universal binary package for python 2.4.3. Rather than moving backwards, I'd like to try getting it to compile. However, I can't seem to find the cvs/svn with the most recent configuration files. Where are those? I'd also like to install numarray, numpy, and scipy. (numpy won't compile due to can't locate file for : -lcc_dynamic; this was also a problem for the sources of numarray and Numeric) I'm running a MacBookPro with 10.4.6. Are you sure you have the latest Xcode installed with the 10.4u SDK? -lcc_dynamic sounds like compiler mismatch or something. It's a scipy-specific issue. We add that library when compiling against g77-built libraries, and up until recently, it also showed up when using gfortran. It should be fixed now in recent SVN checkouts of numpy. -- Robert Kern [EMAIL PROTECTED] I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
Hi Trent, Bob, etc. Sorry for the late reply. It's been a busy week. I've altered wxPython's downloads page to hopefully be clearer and more up-to- date. As for the ANSI/Unicode issue, I made Unicode a little more prominent but ANSI still gets quite a lot of downloads, so I'm hesitant to make it hard to get to. But I've made the Unicode builds the first ones so as to encourage those who don't know/care to just click on Unicode, so if that does make a big difference in the number of people who download ANSI, we can re-evaluate moving it later. (I simply don't know how many people actually need the ANSI build for their app to work...) I also added the Universal binaries pre-release build, along with a note explaining the Tiger-only issue and giving a blueprint for lipo'ing the PPC and Universal builds if anyone wants to try that to see if it works on Panther. ;-) (I don't have time to attempt it right now.) URL is here: http://wxpython.org/downloads.php Thanks, Kevin On Apr 17, 2006, at 1:26 PM, Trent Mick wrote: [Trent] wxPython on the Mac seems to be painful right now. [Kevin Ollivier wrote] Suggestions and contributions welcome! :-) My apologies, I was being unfairly brief. Some suggestions: - A review of the Mac OS X-related text on http://www.wxpython.org/download.php Some of that info is misleading: '''wxPythonOSX needs a Framework build of Python 2.3, also known as MacPython-OSX.''' To be fair explaining the myriad Python's out there for Mac OS X is hard. This sentence though connotes the wrong thing: that wxPython is only available for Python 2.3. '''If you would like to try Python 2.4.x on Panther or Tiger then you can get an installer here''' Again, to be fair, giving a download link for the current Python for Mac OS X (whatever that really means) is a moving target. There *is* a Python installer at that link, but it is no longer a recommended one. As well, some mention of the x86 arch issues would be helpful for users. Okay, *one* suggestion. :) I don't currently use wxPython at all. 1. You need to get the correct build for your version of Python. For ActivePython 2.4.x or MacPython 2.4.x that means getting one of the builds with -py24 in the package name. Of course, this is pretty much the same as with every other (binary) Python extension, isn't it? Yes, I didn't mean to imply that wxPython is special here. 2. They have ansi and unicode builds. From what I can tell the ansi builds are probably only useful for Mac OS X 10.2.x compatibility. If you are using Mac OS X 10.3 (Jaguar) or greater then I'd stick with the unicode builds. The ansi builds are for people who haven't considered Unicode support when building their wxPython apps, and thus might have issues when their data is automatically converted to and from Unicode. In ansi mode, it just passes the actual 'bytes' around, so the user is in total control over how the data is encoded. It took me a couple days of auditing my codebase before I got everything working with Unicode, and while I'm glad I did, up until that point I (and users of my app) were doing just fine with ANSI builds. But yes, in general, Unicode is the recommended build on OS X, or any modern platform for that matter. If that is the case then I'd suggest having the link to the unicode build the only obvious one. Those requiring ANSI builds can be pointed to the SF.net Files page and/or a Unicode vs. ANSI wiki page. The current http://wiki.wxpython.org/index.cgi/UnicodeBuild, which *is* linked to there, probably already does a good job here. There aren't any Intel-only binaries, but packages containing Universal binaries (built using the Universal MacPython Framework) was finished up late last week and are just awaiting being uploaded to the wxPython SF site. So it should be pretty soon. That's good news. Unfortunately I was also able to *install* it on Mac OS X 10.4/ Intel but it doesn't work (importing wx fails) because the binary modules in wx are for ppc while the running Python is x86. Right. About the only thing we could do at this point is to add a command-line check on the architecture of the Python binary and bomb out if it's incorrect. I could go ahead and add such a test, although I think the OS X Installer will just give a generic you are not allowed to install this package message, which is arguably just as confusing to the user We could also add ppc to the filename, though I think it will easily be missed. Yah, Apple's packaging tools are a pain. Great for braindead simple stuff, but quite limiting for anything custom. Trent -- Trent Mick [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Fwd: MacPython icon mockup
Ronald Oussoren wrote: +1, I like it! Same here. Let's stop here. Agree. Great work. Time to hit the presses. :) has -- http://freespace.virgin.net/hamish.sanderson/ ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
Kevin Ollivier wrote: Hi Trent, Bob, etc. Sorry for the late reply. It's been a busy week. I've altered wxPython's downloads page to hopefully be clearer and more up-to- date. As for the ANSI/Unicode issue, I made Unicode a little more prominent but ANSI still gets quite a lot of downloads, so I'm hesitant to make it hard to get to. But I've made the Unicode builds the first ones so as to encourage those who don't know/care to just click on Unicode, so if that does make a big difference in the number of people who download ANSI, we can re-evaluate moving it later. (I simply don't know how many people actually need the ANSI build for their app to work...) I also added the Universal binaries pre-release build, along with a note explaining the Tiger-only issue and giving a blueprint for lipo'ing the PPC and Universal builds if anyone wants to try that to see if it works on Panther. ;-) (I don't have time to attempt it right now.) URL is here: http://wxpython.org/downloads.php Thanks, Kevin Thanks for all that, Kevin. Nice touch putting the uninstaller for the PREvious version in with the new distro. I would have been searching my drive all day to find the old uninstaller. :-) -- Cheers, Lou Pecora Code 6362 Naval Research Lab Washington, DC 20375 USA Ph: +202-767-6002 email: [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
Excellent! Problem, though -- a bone-dumb one, I'm quite sure, but I'm living proof that the unsavvy can run into it: On my Intel iMac I downloaded and installed 1. the Universal-MacPython-2.4.3.dmg (it made a new Applications/ MacPython 2.4 folder, beside my existing Applications/MacPython-2.4 folder) 2. the wxPython2.6-osx-unicode-2.6.3.2rc1-universal10.4-py2.4.dmg In the Terminal python gives me the expected version, but import wx gives: Python 2.4.3 (#1, Mar 30 2006, 11:02:16) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type help, copyright, credits or license for more information. import wx Traceback (most recent call last): File stdin, line 1, in ? File //Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/wx-2.6-mac-unicode/wx/__init__.py, line 42, in ? from wx._core import * File //Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/wx-2.6-mac-unicode/wx/_core.py, line 4, in ? import _core_ ImportError: Failure linking new module: /Library/Frameworks/ Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac- unicode/wx/_core_.so: Library not loaded: /usr/local/lib/wxPython- unicode-2.6.3.2/lib/libwx_macud-2.6.0.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_core_.so Reason: image not found Charles Hartman P.S. I had /usr/local/bin in my path before. Now I've got: PATH=/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/ local/bin:/ . . . On Apr 24, 2006, at 3:04 PM, Kevin Ollivier wrote: Hi Trent, Bob, etc. Sorry for the late reply. It's been a busy week. I've altered wxPython's downloads page to hopefully be clearer and more up-to- date. As for the ANSI/Unicode issue, I made Unicode a little more prominent but ANSI still gets quite a lot of downloads, so I'm hesitant to make it hard to get to. But I've made the Unicode builds the first ones so as to encourage those who don't know/care to just click on Unicode, so if that does make a big difference in the number of people who download ANSI, we can re-evaluate moving it later. (I simply don't know how many people actually need the ANSI build for their app to work...) I also added the Universal binaries pre-release build, along with a note explaining the Tiger-only issue and giving a blueprint for lipo'ing the PPC and Universal builds if anyone wants to try that to see if it works on Panther. ;-) (I don't have time to attempt it right now.) URL is here: http://wxpython.org/downloads.php Thanks, Kevin On Apr 17, 2006, at 1:26 PM, Trent Mick wrote: [Trent] wxPython on the Mac seems to be painful right now. [Kevin Ollivier wrote] Suggestions and contributions welcome! :-) My apologies, I was being unfairly brief. Some suggestions: - A review of the Mac OS X-related text on http://www.wxpython.org/download.php Some of that info is misleading: '''wxPythonOSX needs a Framework build of Python 2.3, also known as MacPython-OSX.''' To be fair explaining the myriad Python's out there for Mac OS X is hard. This sentence though connotes the wrong thing: that wxPython is only available for Python 2.3. '''If you would like to try Python 2.4.x on Panther or Tiger then you can get an installer here''' Again, to be fair, giving a download link for the current Python for Mac OS X (whatever that really means) is a moving target. There *is* a Python installer at that link, but it is no longer a recommended one. As well, some mention of the x86 arch issues would be helpful for users. Okay, *one* suggestion. :) I don't currently use wxPython at all. 1. You need to get the correct build for your version of Python. For ActivePython 2.4.x or MacPython 2.4.x that means getting one of the builds with -py24 in the package name. Of course, this is pretty much the same as with every other (binary) Python extension, isn't it? Yes, I didn't mean to imply that wxPython is special here. 2. They have ansi and unicode builds. From what I can tell the ansi builds are probably only useful for Mac OS X 10.2.x compatibility. If you are using Mac OS X 10.3 (Jaguar) or greater then I'd stick with the unicode builds. The ansi builds are for people who haven't considered Unicode support when building their wxPython apps, and thus might have issues when their data is automatically converted to and from Unicode. In ansi mode, it just passes the actual 'bytes' around, so the user is in total control over how the data is encoded. It took me a couple days of auditing my codebase before I got everything working with Unicode, and while I'm glad I did, up until that point I (and users of my app) were doing just fine with ANSI builds. But yes, in general, Unicode is the recommended build on OS X, or any
Re: [Pythonmac-SIG] Applets?
Bob Ippolito wrote: Technically the current name is py2applet, but it has the standalone app behavior. So Py2applet is just a new name for Py2app? Why the name change? I kind of liked the App vs. Applet Distinction, and would like to have a way to do either. I'd like to slap a GUI on it that lets you tweak settings and generate a setup.py or just build the app, but that's not in the cards any time soon. To bad, it's a great idea. If it ever happens, and if I (or someone else) every makes the don't bundle in python version, it could be a check-box in the GUI. How would you build the GUI? PyObjC? -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
On Apr 24, 2006, at 3:52 PM, Charles Hartman wrote: import wx Traceback (most recent call last): File stdin, line 1, in ? File //Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/wx-2.6-mac-unicode/wx/__init__.py, line 42, in ? from wx._core import * File //Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/wx-2.6-mac-unicode/wx/_core.py, line 4, in ? import _core_ ImportError: Failure linking new module: /Library/Frameworks/ Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac- unicode/wx/_core_.so: Library not loaded: /usr/local/lib/wxPython- unicode-2.6.3.2/lib/libwx_macud-2.6.0.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_core_.so Reason: image not found I've discovered that I don't have /usr/local/lib/wxPython-unicode-2.6.3.2/lib/libwx_macud-2.6.0.dylib though I *do* haved /usr/local/lib/wxPython-unicode-2.6.3.2rc1/lib/libwx_macud-2.6.0.dylib So something in the installer is out of kilter. What's the best way to fix? I don't want to screw it up worse . . . Charles Hartman ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Applets?
On 24-apr-2006, at 20:31, Christopher Barker wrote: Hi all, Along with the icon discussion (they look great, by the way) There has been a lot of mention of BuildApplet and Py2Applet, etc. I'm a bit confused as to what actually exists. This is my understanding -- someone please clarify if I'm wrong: BuildApplication: Builds a complete *.app bundle, including the entire python interpreter, etc. Is is not longer being maintained, and may or may not work in a given instance. IIRC it is even worse than that, it may not have been ported from OS9 at all. BuildApplet: Builds a *.app bundle that does not include python, and thus looks and acts like a real application, but requires a complete appropriate python installation. Also no longer maintained, and may or may not work. This builds an application bundle that contains a single python file and depends on the installed python and site-packages to run. Oh, and BuildApplication and BuildApplet are not going to be included in future versions. I'm entertaining the thought of dropping BuildApplet. But as it solves a real need I might improve it instead (mostly testing and better documentation). Ronald ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Applets?
On Apr 24, 2006, at 12:54 PM, Christopher Barker wrote: Bob Ippolito wrote: Technically the current name is py2applet, but it has the standalone app behavior. So Py2applet is just a new name for Py2app? Why the name change? I kind of liked the App vs. Applet Distinction, and would like to have a way to do either. No. py2applet is the drag and drop application (and command-line utility) that tries to make an application out of a bunch of junk you pass to it (script, icon, plist, data files, etc.). It's a lot like BuildApplet in theory, it just happens to make a stand-alone application instead of something tiny. I'd like to slap a GUI on it that lets you tweak settings and generate a setup.py or just build the app, but that's not in the cards any time soon. To bad, it's a great idea. If it ever happens, and if I (or someone else) every makes the don't bundle in python version, it could be a check-box in the GUI. How would you build the GUI? PyObjC? Yes. -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
Charles Hartman wrote: I did the obvious: sudo mv /usr/local/lib/wxPython-unicode-2.6.3.2rc1 /usr/local/lib/ wxPython-unicode-2.6.3.2 and it seems to work. Did I create havoc somewhere else? probably not, but in general, you should use a sym link, rather than a re-name: sudo ln -s /usr/local/lib/wxPython-unicode-2.6.3.2rc1 /usr/local/lib/wxPython-unicode-2.6.3.2 however, it looks like you're installing the new Universal build of wxPython into ActivePython. It may well work, but I think the Universal wxPython was built with and designed for the UniversalBuild at: http://pythonmac.org/packages/py24-fat/ I don't think ActivePython has a Universal Build yet. That may explain a few of your oddities. By the way, we should put a copy of the wxPython dmg on http://pythonmac.org as well as on the wxPython site. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Applets?
Ronald Oussoren wrote: I'm entertaining the thought of dropping BuildApplet. But as it solves a real need I might improve it instead (mostly testing and better documentation). I also think it solves a real need. But I'd probably rather see it based on the Py2App code. I don't know that code, but I can't imagine it's that hard to have not include any files in the Python Framework tree, but otherwise behave the same. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
Hi Charles, On Apr 24, 2006, at 3:13 PM, Charles Hartman wrote: On Apr 24, 2006, at 4:59 PM, Christopher Barker wrote: Charles Hartman wrote: I did the obvious: sudo mv /usr/local/lib/wxPython-unicode-2.6.3.2rc1 /usr/local/ lib/ wxPython-unicode-2.6.3.2 and it seems to work. Did I create havoc somewhere else? probably not, but in general, you should use a sym link, rather than a re-name: sudo ln -s /usr/local/lib/wxPython-unicode-2.6.3.2rc1 /usr/local/ lib/wxPython-unicode-2.6.3.2 however, it looks like you're installing the new Universal build of wxPython into ActivePython. It may well work, but I think the Universal wxPython was built with and designed for the UniversalBuild at: Something is very screwy here. Because I've been waiting for wxPython before trying the Universal, I followed links, not from here, but from wxpython.org/download.php (You will need the Universal MacPython available from Python.org) which took me to www.python.org/ download/releases/2.4.3 where there is a link to Universal- MacPython-2.4.3.dmg. I assumed I was getting Ronald's build. Is it ActiveState's??? Perhaps -- to put it calmly -- there should a note to this effect? I don't think so. I think I need to go back and check the build scripts, as I may not have added the rc1 in every place that I need to. It really should be in the directory name that gets installed. (I'm surprised it worked on my machine, though.) I'll take a look at it later today. Sorry for the trouble! Kevin Can I now just download the one from pythonmac.org (Universal- MacPython-2.4.3-2006-04-07.dmg) and install it, and expect things to work? If you ask me (or even if you don't) this is a fiasco of links. Yes, I was clicking a little cavlierly. But I've been a bystander through a lot of this -- and if I can end up with the wrong (and in a way non- functioning) universal build if Python for Mac, we've got, I submit, a problem for new users. Charles Hartman http://pythonmac.org/packages/py24-fat/ I don't think ActivePython has a Universal Build yet. That may explain a few of your oddities. By the way, we should put a copy of the wxPython dmg on http:// pythonmac.org as well as on the wxPython site. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
Charles Hartman wrote: I assumed I was getting Ronald's build. Is it ActiveState's??? The title of this thread is Installing wxPython with ActivePython and OSX ActivePython is ActiveState's Python, which is why I thought you were using it. Perhaps it's only the thread title that's wrong. Sorry if I confused you! If you ask me (or even if you don't) this is a fiasco of links. It is a bit, but once we have the critical packages working with the Universal build, I think it can settle down. I find the ActiveState thing a bit annoying - are they really adding any value? Maybe they are, as I haven't tried it, I don't know. I'll go try the Universal wxPython now, and report back. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
Thanks to Chris, Kevin, and Bob. Yes, I should have changed the thread name. I stayed with it because it's where Kevin posted the good news about wxPython. Maybe I'm missing something, but isn't it awfully silly to have these competing versions around, with names and apparent pedigrees similar enough so that, for instance, if somebody stumbles onto this list asking about problems with this new Universal binary of Python 2.4 I just installed, it won't take two rounds of messages even to find out what version it is? How anyone could guess that pythonmac.org/ packages has the current best while the one at python.org/download/ releases is obsolete, is beyond me. This is not doing any good for all the fine bring-in-the-newbies work that's been going on (revivified website, spanking new icons, etc). I can happily report, though, that *either* Universal build of Python- for-the-Macintosh 2.4 seems to work with the pre-release Universal of wxPython 2.6.3.2 -- after something's done to fix the lib location. Charles Hartman On Apr 24, 2006, at 7:24 PM, Bob Ippolito wrote: On Apr 24, 2006, at 3:13 PM, Charles Hartman wrote: On Apr 24, 2006, at 4:59 PM, Christopher Barker wrote: Charles Hartman wrote: I did the obvious: sudo mv /usr/local/lib/wxPython-unicode-2.6.3.2rc1 /usr/local/ lib/ wxPython-unicode-2.6.3.2 and it seems to work. Did I create havoc somewhere else? probably not, but in general, you should use a sym link, rather than a re-name: sudo ln -s /usr/local/lib/wxPython-unicode-2.6.3.2rc1 /usr/local/ lib/wxPython-unicode-2.6.3.2 however, it looks like you're installing the new Universal build of wxPython into ActivePython. It may well work, but I think the Universal wxPython was built with and designed for the UniversalBuild at: Something is very screwy here. Because I've been waiting for wxPython before trying the Universal, I followed links, not from here, but from wxpython.org/download.php (You will need the Universal MacPython available from Python.org) which took me to www.python.org/ download/releases/2.4.3 where there is a link to Universal- MacPython-2.4.3.dmg. I assumed I was getting Ronald's build. Is it ActiveState's??? Perhaps -- to put it calmly -- there should a note to this effect? Do not download from python.org. Unless they've updated it recently, that's the unoptimized (about twice as slow on either platform) older version with a couple errata. Can I now just download the one from pythonmac.org (Universal- MacPython-2.4.3-2006-04-07.dmg) and install it, and expect things to work? That's the most recent Unviersal Python, but I'm not sure if you can expect wxPython to work or not :) -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
On Apr 24, 2006, at 4:47 PM, Charles Hartman wrote: Thanks to Chris, Kevin, and Bob. Yes, I should have changed the thread name. I stayed with it because it's where Kevin posted the good news about wxPython. Maybe I'm missing something, but isn't it awfully silly to have these competing versions around, with names and apparent pedigrees similar enough so that, for instance, if somebody stumbles onto this list asking about problems with this new Universal binary of Python 2.4 I just installed, it won't take two rounds of messages even to find out what version it is? How anyone could guess that pythonmac.org/packages has the current best while the one at python.org/download/releases is obsolete, is beyond me. This is not doing any good for all the fine bring-in-the-newbies work that's been going on (revivified website, spanking new icons, etc). Well no kidding. I don't personally have access to the python.org server and neither does Ronald. I don't think either of us asked for it to be posted there, it wasn't ready at the time. I'm not sure who's supposed to fix it either. -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
On Apr 24, 2006, at 7:53 PM, Bob Ippolito wrote: On Apr 24, 2006, at 4:47 PM, Charles Hartman wrote: Thanks to Chris, Kevin, and Bob. Yes, I should have changed the thread name. I stayed with it because it's where Kevin posted the good news about wxPython. Maybe I'm missing something, but isn't it awfully silly to have these competing versions around, with names and apparent pedigrees similar enough so that, for instance, if somebody stumbles onto this list asking about problems with this new Universal binary of Python 2.4 I just installed, it won't take two rounds of messages even to find out what version it is? How anyone could guess that pythonmac.org/packages has the current best while the one at python.org/download/releases is obsolete, is beyond me. This is not doing any good for all the fine bring-in-the-newbies work that's been going on (revivified website, spanking new icons, etc). Well no kidding. I don't personally have access to the python.org server and neither does Ronald. I don't think either of us asked for it to be posted there, it wasn't ready at the time. I'm not sure who's supposed to fix it either. I've filed a site bug report on python.org. Charles ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX
Well no kidding. I don't personally have access to the python.org server and neither does Ronald. I don't think either of us asked for it to be posted there, it wasn't ready at the time. I'm not sure who's supposed to fix it either. I do. I'll see what can be done. I favor taking pointers off the releases page and pointing it to the downloads page. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] pycrypto and gcc 4
Yesterday I attempted to install the pycrypto package. setup.py build invoked gcc, which threw a huge number of errors on signedness. As it was taco time, I left for the day. Today, I read through some lists and the signedness errors for gcc v4 sounded benign so I ran the build again. This time it sailed through without errors. Feeling bold and a bit light on coffee, I set aside the obvious concerns and ran setup.py install. No errors were raised. Alas, my bubble of ignorance was burst rather quickly by IDLE. import Crypto.Cipher fails on ImportError: No module named Crypto. Crypto and other files are in site-packages. I have the Universal-MacPython-2.4.3-2006-04-07 installed on Mac OS 10.4.6 PPC. I thought (hoped) that since pycrypto setup builds from source I would slip through without a problem. Ah, well, so, what to do next? TIA, - Mark ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] pycrypto and gcc 4
I forgot to mention one important fact: the test.py included in pycrypto ran fine, and raised no errors, when I ran it immediately following the build/install efforts. On Apr 24, 2006, at 5:52 PM, Mark Phillips wrote: Yesterday I attempted to install the pycrypto package. setup.py build invoked gcc, which threw a huge number of errors on signedness. As it was taco time, I left for the day. Today, I read through some lists and the signedness errors for gcc v4 sounded benign so I ran the build again. This time it sailed through without errors. Feeling bold and a bit light on coffee, I set aside the obvious concerns and ran setup.py install. No errors were raised. Alas, my bubble of ignorance was burst rather quickly by IDLE. import Crypto.Cipher fails on ImportError: No module named Crypto. Crypto and other files are in site-packages. I have the Universal-MacPython-2.4.3-2006-04-07 installed on Mac OS 10.4.6 PPC. I thought (hoped) that since pycrypto setup builds from source I would slip through without a problem. Ah, well, so, what to do next? TIA, - Mark ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] New wiki entry on Universal libraries and extensions
On Apr 24, 2006, at 11:14, Christopher Barker wrote: My primary comment is that you're discussing building a Universal package, but keeping the external libs installed with the standard make install. I haven't tried your scheme yet, but usually that results in dynamic libs being built, sometimes by themselves, and sometimes along with the static libs. The trick here is that you can sometimes get the dynamic libs instead of the static ones when you link. Either way, it will work fine on your system, but there's really no point in building a Universal Package if you're not trying to distribute it (or a Py2App bundle built with it) Good point. In fact, though I was able to compile 'FAT' static libs, the shared libs are all just i386--I just now checked. BUt I linked against the static lib so things are fine this time, but more care in the future to ensure the shared libs are not found would be prudent and I'll take note of it. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] [PSF-Board] New artwork for the OSX port
Hi. p.s. how do people like the new logo over in pythonmac land? It's okay, but our version[1, 2] is shinier. ;) [1]: http://hcs.harvard.edu/~jrus/python/python-logo-glassy.png [2]: http://hcs.harvard.edu/~jrus/python/prettified-py-icons.png The standard contribution form filled out by the originator should suffice. See http://www.python.org/psf/contrib/ for details. So I'm supposed to sign the form and fax/mail it in? What kind of attribution would you like? I'll definitely add a readme file to the distribution that mentions you designed these icons. Anything else is open for discussion. That seems fine. Is there some file that lists all the people who have contributed in other ways to the Mac Python distributions? It seems that right now the readme only has some links to websites. In IDLE.app, the application menu only has a general About Tcl Tk, though PythonLauncher.app does seem to have an about box crediting Jack Jansen, and the now defunct PythonIDE.app has an about box crediting Just Van Rossum. There are surely more people than those two involved in getting Mac Python into users' hands. -Jacob On Apr 23, 2006, at 8:06 AM, Ronald Oussoren wrote: Jacob, This is the reply I got from the PSF w.r.t. the icons. Tim Parkin, who created the new python.org logo, also gave permission to use the logo in the icons (see the second message). What kind of attribution would you like? I'll definitely add a readme file to the distribution that mentions you designed these icons. Anything else is open for discussion. Ronald Begin forwarded message: From: Steve Holden [EMAIL PROTECTED] Date: 22 april 2006 22:46:15 GMT+02:00 To: Ronald Oussoren [EMAIL PROTECTED] Subject: Re: [PSF-Board] New artwork for the OSX port Ronald Oussoren wrote: Hi, Guido forwarded me to you for this. Over on the pytonmac-sig we've almost reached consensus on some new artwork for the OSX port. These are icons for python files and several applications that use the new python.org logo. I'm wondering what the preconditions are for getting these into the python distribution. Does the author/artist have to donate them to the PSF or are there other rules? The standard contribution form filled out by the originator should suffice. It grants the PSF permission to republish under the Python license agreement. Nothing else should be required. See http://www.python.org/psf/contrib/ for details. regards Steve Begin forwarded message: From: Tim Parkin [EMAIL PROTECTED] Date: 22 april 2006 21:48:11 GMT+02:00 To: [EMAIL PROTECTED] Subject: re: python logo icon etc Hi, I noticed the post on python-dev about the new logo/icons.. I need to pass ownership over to the PSF at some point (nobody has told me how yet) but being as I currently own license I could officially say 'yes please use them' :-) I don't think anyone is going to have any objection but it would be best to post to psf anyway. Cheers Tim p.s. how do people like the new logo over in pythonmac land? ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig