From wlmyers@mac.com Thu May 1 04:19:58 2003 From: wlmyers@mac.com (Willard Myers) Date: Wed, 30 Apr 2003 23:19:58 -0400 Subject: [Pythonmac-SIG] Fwd: [Scipy-chaco] scipy/chaco package for OSX In-Reply-To: Message-ID: On Tuesday, Apr 29, 2003, at 19:24 America/New_York, Lance Boyle wrote: > This message appeared a few days ago on the scipy-chaco list. I hope > the author doesn't mind me forwarding it to this list. This encouraged me to try once more. I did manage to get the install to complete, with the same error report from scipy.test() as in the Whitaker email. Here are a few hints: (1) Be sure to do a fink selfupdate-cvs first. (2) Do a binary install of the atlas package before doing the scipy-py23 source install. (The atlas source install invariably fails for me, which causes the scipy source install to also fail -- and there is no scipy binary install). (3) SciPy pulls in a huge number of other packages (30 in my case); be prepared to give up hours of your life. (4) Don't forget that fink installs in the /sw tree, rather than within Jack's wonderful framework Python. Now you have two copies of 2.3b1 on your disk; one with scipy and the other with everything else :-< I'm concerned by the test failures: Ran 739 tests in 5.766s FAILED (failures=70, errors=2) While some errors appear to be trivial, others are certainly not, and *many* packages have no tests. Bill From bugbee@seanet.com Thu May 1 07:58:38 2003 From: bugbee@seanet.com (bugs) Date: Wed, 30 Apr 2003 23:58:38 -0700 Subject: [Pythonmac-SIG] 2.3b1 installer suggestions Message-ID: <55D7487E-7BA2-11D7-91EC-000393DB272E@seanet.com> Jack, A couple of suggestions for 2.3b1... 1. The dmg download has OSX in its name. Perhaps the OS9 version could have OS9 in it's name? ...to help avoid confusion. Both installers worked fine. 2. I disabled my previous framework and /Application folders. The OSX installer loaded new folders. I made no changes to /usr/local/* but noticed /usr/local/bin with new copies of python python2.3 pythonw and pythonw2.3. I suppose I should ask... Does this mean we will no longer need to do a non-framework build? If so, that is a Good Thing. And then... How about an installer option to 'disable' /usr/bin/python? That too could be a Good Thing. 3. The PackageManager didn't work. Looking at PackageManager.py, line 83, there is no URL. Is this intentional for this beta? 4. Tkinter was only partially installed and in apparant contradiction with your note the other day suggesting Tk would be installed by PackageManager. (Framework lib/Python2.3/lib-tk was fully populated. _tkinter.so was not in lib-dynlib. Adding _tkinter.so and tweaking Tkinter.py (str wrap, line 1572) and a few of my simple Tkinter pgms worked fine.) Larry From Jack.Jansen@oratrix.com Thu May 1 13:56:16 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Thu, 1 May 2003 14:56:16 +0200 Subject: [Pythonmac-SIG] Re: 2.3b1 installer suggestions In-Reply-To: <55D7487E-7BA2-11D7-91EC-000393DB272E@seanet.com> Message-ID: <4B947721-7BD4-11D7-BD7E-000A27B19B96@oratrix.com> On donderdag, mei 1, 2003, at 08:58 Europe/Amsterdam, bugs wrote: > Jack, > > A couple of suggestions for 2.3b1... > > 1. The dmg download has OSX in its name. Perhaps the OS9 version > could have OS9 in it's name? ...to help avoid confusion. Both > installers worked fine. Good idea. I'll make a note for myself for the next release. > 2. I disabled my previous framework and /Application folders. The OSX > installer loaded new folders. I made no changes to /usr/local/* but > noticed /usr/local/bin with new copies of python python2.3 pythonw and > pythonw2.3. I suppose I should ask... Does this mean we will no > longer need to do a non-framework build? If so, that is a Good Thing. Indeed, if you have a framework Python there's little reason to also install a non-framework one. This has always been the case, at least if you installed from source. > And then... How about an installer option to 'disable' > /usr/bin/python? That too could be a Good Thing. Hmm... No, I think I don't want to do this. What the installer (or something else?) could check is that /usr/local/bin is on your $PATH, and that it comes before /usr/bin. Would that be good enough? Who should check this? I'm thinking that we may want an application similar to OS9 EditPythonPrefs that allows you to set all sorts of Python preferences (probably by mucking with ~/.MacOSX/environment.plist). > 3. The PackageManager didn't work. Looking at PackageManager.py, line > 83, there is no URL. Is this intentional for this beta? It should work... It should open the default database, which is (from Lib/plat-mac/pimp.py): DEFAULT_PIMPDATABASE="http://www.cwi.nl/~jack/pimp/pimp-%s.plist" % distutils.util.get_platform() Do you get an error message? An empty package window? Nothing? > 4. Tkinter was only partially installed and in apparant contradiction > with your note the other day suggesting Tk would be installed by > PackageManager. (Framework lib/Python2.3/lib-tk was fully populated. > _tkinter.so was not in lib-dynlib. Adding _tkinter.so and tweaking > Tkinter.py (str wrap, line 1572) and a few of my simple Tkinter pgms > worked fine.) Sorry, you're right. Tkinter.py and lots of other Tk stuff is installed by default, the only thing missing is _tkinter.so, which will be installable by the Package Manager. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From larry.bugbee@boeing.com Thu May 1 15:52:30 2003 From: larry.bugbee@boeing.com (Bugbee, Larry) Date: Thu, 1 May 2003 07:52:30 -0700 Subject: [Pythonmac-SIG] Re: 2.3b1 installer suggestions Message-ID: <8CFC81BC2CC2A74F88BAB7180F00B779FA79B0@XCH-NW-29.nw.nos.boeing.com> > And then... How about an installer option to 'disable'=20 > /usr/bin/python? That too could be a Good Thing. Hmm... No, I think I don't want to do this. What the installer (or=20 something else?) could check is that /usr/local/bin is on your $PATH,=20 and that it comes before /usr/bin. Would that be good enough? Who=20 should check this? I'm thinking that we may want an application similar = to OS9 EditPythonPrefs that allows you to set all sorts of Python=20 preferences (probably by mucking with ~/.MacOSX/environment.plist). Disable, path resequencing... I really dunno. Novice users will not = understand either, although a case could be made that they should. I = guess I still prefer disable because I cannot think of any real reason = the /usr/bin version has to be there. I don't believe even Apple uses = it, and if we are truely backward compatible... And changing the dir = order in the path _could_ affect other stuff. I agree changing the dir = order makes the most sense but because the *nix community historically = has had it the other way, are we asking for problems? I don't know. = ...and the Novice surely doesn't. Anybody? > 3. The PackageManager didn't work. Looking at PackageManager.py, = line=20 > 83, there is no URL. Is this intentional for this beta? It should work... It should open the default database, which is (from=20 Lib/plat-mac/pimp.py): DEFAULT_PIMPDATABASE=3D"http://www.cwi.nl/~jack/pimp/pimp-%s.plist" %=20 distutils.util.get_platform() Do you get an error message? An empty package window? Nothing? No package window. The errors scrolled by very fast in a new window and = then was dismissed... Problem 1. I altered PackageManager.py so I could = could see the messages in Terminal, and 'None' was the url. Launching = from Terminal may have bypassed any -D argv stuff... I just don't know. = I'll try again tonight. From mwh@python.net Thu May 1 16:05:05 2003 From: mwh@python.net (Michael Hudson) Date: Thu, 01 May 2003 16:05:05 +0100 Subject: [Pythonmac-SIG] Re: 2.3b1 installer suggestions In-Reply-To: <8CFC81BC2CC2A74F88BAB7180F00B779FA79B0@XCH-NW-29.nw.nos.boeing.com> ("Bugbee, Larry"'s message of "Thu, 1 May 2003 07:52:30 -0700") References: <8CFC81BC2CC2A74F88BAB7180F00B779FA79B0@XCH-NW-29.nw.nos.boeing.com> Message-ID: <2mznm6907y.fsf@starship.python.net> "Bugbee, Larry" writes: > Disable, path resequencing... I really dunno. Novice users will not > understand either, although a case could be made that they should. > I guess I still prefer disable because I cannot think of any real > reason the /usr/bin version has to be there. I don't believe even > Apple uses it, and if we are truely backward compatible... And > changing the dir order in the path _could_ affect other stuff. I > agree changing the dir order makes the most sense but because the > *nix community historically has had it the other way, are we asking > for problems? I don't know. ...and the Novice surely doesn't. > > Anybody? Moving or deleting /usr/bin/python would be a get-your-knives-and-pitchforks-out type of mistake. For example I imagine it would break if there are any scripts starting #!/usr/bin/python and I think it would also break any pyobjc packages that are built against the apple installed python. Cheers, M. -- > I wouldn't want to live without readline, but some of the > things it does call for the application of thumbscrews. -- me on python-dev From larry.bugbee@boeing.com Thu May 1 16:21:06 2003 From: larry.bugbee@boeing.com (Bugbee, Larry) Date: Thu, 1 May 2003 08:21:06 -0700 Subject: [Pythonmac-SIG] Re: 2.3b1 installer suggestions Message-ID: <8CFC81BC2CC2A74F88BAB7180F00B779E06806@XCH-NW-29.nw.nos.boeing.com> I agree. How about /usr/bin/python being relinked to /usr/local/bin/python? -----Original Message----- From: Michael Hudson [mailto:mwh@python.net] Sent: Thursday, May 01, 2003 8:05 AM To: pythonmac-sig@python.org Subject: Re: [Pythonmac-SIG] Re: 2.3b1 installer suggestions "Bugbee, Larry" writes: > Disable, path resequencing... I really dunno. Novice users will not > understand either, although a case could be made that they should. > I guess I still prefer disable because I cannot think of any real > reason the /usr/bin version has to be there. I don't believe even > Apple uses it, and if we are truely backward compatible... And > changing the dir order in the path _could_ affect other stuff. I > agree changing the dir order makes the most sense but because the > *nix community historically has had it the other way, are we asking > for problems? I don't know. ...and the Novice surely doesn't. > > Anybody? Moving or deleting /usr/bin/python would be a get-your-knives-and-pitchforks-out type of mistake. For example I imagine it would break if there are any scripts starting=20 #!/usr/bin/python and I think it would also break any pyobjc packages that are built against the apple installed python. Cheers, M. --=20 > I wouldn't want to live without readline, but some of the=20 > things it does call for the application of thumbscrews. -- me on python-dev _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig From mwh@python.net Thu May 1 16:54:07 2003 From: mwh@python.net (Michael Hudson) Date: Thu, 01 May 2003 16:54:07 +0100 Subject: [Pythonmac-SIG] Re: 2.3b1 installer suggestions In-Reply-To: <8CFC81BC2CC2A74F88BAB7180F00B779E06806@XCH-NW-29.nw.nos.boeing.com> ("Bugbee, Larry"'s message of "Thu, 1 May 2003 08:21:06 -0700") References: <8CFC81BC2CC2A74F88BAB7180F00B779E06806@XCH-NW-29.nw.nos.boeing.com> Message-ID: <2mwuha8xy8.fsf@starship.python.net> "Bugbee, Larry" writes: > I agree. > > How about /usr/bin/python being relinked to /usr/local/bin/python? In general I think mucking with system installed software is a mistake. Mucking with the user's environment seems much safer... Cheers, M. -- 7. It is easier to write an incorrect program than understand a correct one. -- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html From owen@astro.washington.edu Thu May 1 17:58:47 2003 From: owen@astro.washington.edu (Russell E Owen) Date: Thu, 1 May 2003 09:58:47 -0700 Subject: [Pythonmac-SIG] framework and nonframework python Message-ID: >>2. I disabled my previous framework and /Application folders. The >>OSX installer loaded new folders. I made no changes to >>/usr/local/* but noticed /usr/local/bin with new copies of python >>python2.3 pythonw and pythonw2.3. I suppose I should ask... Does >>this mean we will no longer need to do a non-framework build? If >>so, that is a Good Thing. > >Indeed, if you have a framework Python there's little reason to also >install a non-framework one. This has always been the case, at least >if you installed from source. Just to add my two bits: it is certainly true that one *need* not do anything but a framework build. That gives you both the framework applications and also a unix command line Python. Very nice! On the other hand, some GUI developers may find both kinds of builds useful. I use Tkinter and have both Aqua Tkinter (via the Framework build) and X11 Tkinter (via a separate non-framework build). Thus I can see how both MacOS X and unix users will see my application. It's great! It also means I can type ./myfile.py and have the #!/usr/local/bin/python "shbang" line actually do something sensible with Tk scripts. Last I tried this was impossible with Aqua Tk due to deficiencies in MacOS X (the resulting GUI windows could not be brought to the front and several variations of the shbang line that tried to reach into the framework build didn't work any better). -- Russell From bob@redivi.com Thu May 1 18:41:37 2003 From: bob@redivi.com (Bob Ippolito) Date: Thu, 1 May 2003 13:41:37 -0400 Subject: [Pythonmac-SIG] framework and nonframework python In-Reply-To: Message-ID: <28AC802F-7BFC-11D7-B544-000A95686CD8@redivi.com> On Thursday, May 1, 2003, at 12:58 America/New_York, Russell E Owen wrote: >>> 2. I disabled my previous framework and /Application folders. The >>> OSX installer loaded new folders. I made no changes to /usr/local/* >>> but noticed /usr/local/bin with new copies of python python2.3 >>> pythonw and pythonw2.3. I suppose I should ask... Does this mean >>> we will no longer need to do a non-framework build? If so, that is >>> a Good Thing. >> >> Indeed, if you have a framework Python there's little reason to also >> install a non-framework one. This has always been the case, at least >> if you installed from source. > > Just to add my two bits: it is certainly true that one *need* not do > anything but a framework build. That gives you both the framework > applications and also a unix command line Python. Very nice! > > On the other hand, some GUI developers may find both kinds of builds > useful. I use Tkinter and have both Aqua Tkinter (via the Framework > build) and X11 Tkinter (via a separate non-framework build). Thus I > can see how both MacOS X and unix users will see my application. It's > great! > > It also means I can type ./myfile.py and have the > #!/usr/local/bin/python "shbang" line actually do something sensible > with Tk scripts. Last I tried this was impossible with Aqua Tk due to > deficiencies in MacOS X (the resulting GUI windows could not be > brought to the front and several variations of the shbang line that > tried to reach into the framework build didn't work any better). You could use the same framework python and just have two different folders in your PYTHONPATH, one for Carbon/Cocoa GUI extensions and one for X11 extensions and just toggle your path depending on what you're trying to look at. -bob From oussoren@cistron.nl Thu May 1 20:23:42 2003 From: oussoren@cistron.nl (Ronald Oussoren) Date: Thu, 1 May 2003 21:23:42 +0200 Subject: [Pythonmac-SIG] Re: 2.3b1 installer suggestions In-Reply-To: <8CFC81BC2CC2A74F88BAB7180F00B779FA79B0@XCH-NW-29.nw.nos.boeing.com> Message-ID: <6B8D0AC2-7C0A-11D7-B9AA-0003931CFE24@cistron.nl> On Thursday, May 1, 2003, at 16:52 Europe/Amsterdam, Bugbee, Larry wrote: > > And then... How about an installer option to 'disable' > > /usr/bin/python? That too could be a Good Thing. > > Hmm... No, I think I don't want to do this. What the installer (or > something else?) could check is that /usr/local/bin is on your $PATH, > and that it comes before /usr/bin. Would that be good enough? Who > should check this? I'm thinking that we may want an application > similar > to OS9 EditPythonPrefs that allows you to set all sorts of Python > preferences (probably by mucking with ~/.MacOSX/environment.plist). > > Disable, path resequencing... I really dunno. Novice users will not > understand either, although a case could be made that they should. I > guess I still prefer disable because I cannot think of any real reason > the /usr/bin version has to be there. I don't believe even Apple uses > it, and if we are truely backward compatible... And changing the dir > order in the path _could_ affect other stuff. I agree changing the > dir order makes the most sense but because the *nix community > historically has had it the other way, are we asking for problems? I > don't know. ...and the Novice surely doesn't. I don't like disabling /usr/bin/python. I'm using /usr/bin/python in scripts that are distributed to clients and are using extension package. Disabling those scripts would break those scripts. BTW. If the installer is going to muck with the path it might be more usefull to add '/Library/Frameworks/Python.framework/Versions/Current/bin' to the front of the path instead of moving '/usr/local/bin' around. This would also help with scripts installed by distutils, unless you use additional arguments these currently end up inside the framework on a location that is not on the PATH. Ronald From larry.bugbee@boeing.com Thu May 1 21:21:18 2003 From: larry.bugbee@boeing.com (Bugbee, Larry) Date: Thu, 1 May 2003 13:21:18 -0700 Subject: [Pythonmac-SIG] Re: 2.3b1 installer suggestions Message-ID: <8CFC81BC2CC2A74F88BAB7180F00B779FA79C7@XCH-NW-29.nw.nos.boeing.com> Some interesting choices. ...but whichever, I'm concerned for the = Novice. (I have some high and jr-high school students in mind.) If we = 'muck' with the path, we should be crystal clear about what we did. If = we don't, we should be crystal clear about what the user should do to = get the desired effect. =20 Good word 'muck'. I like it. :-) > > > And then... How about an installer option to 'disable' > > > /usr/bin/python? That too could be a Good Thing. > > > > Hmm... No, I think I don't want to do this. What the installer (or > > something else?) could check is that /usr/local/bin is on your = $PATH, > > and that it comes before /usr/bin. Would that be good enough? Who > > should check this? I'm thinking that we may want an application=20 > > similar > > to OS9 EditPythonPrefs that allows you to set all sorts of Python > > preferences (probably by mucking with ~/.MacOSX/environment.plist). > > > > Disable, path resequencing... I really dunno. Novice users will not = > > understand either, although a case could be made that they should. = I=20 > > guess I still prefer disable because I cannot think of any real = reason=20 > > the /usr/bin version has to be there. I don't believe even Apple = uses=20 > > it, and if we are truely backward compatible... And changing the = dir=20 > > order in the path _could_ affect other stuff. I agree changing the=20 > > dir order makes the most sense but because the *nix community=20 > > historically has had it the other way, are we asking for problems? = I=20 > > don't know. ...and the Novice surely doesn't. >=20 > I don't like disabling /usr/bin/python. I'm using /usr/bin/python in=20 > scripts that are distributed to clients and are using extension=20 > package. Disabling those scripts would break those scripts. >=20 > BTW. If the installer is going to muck with the path it might be more=20 > usefull to add=20 > '/Library/Frameworks/Python.framework/Versions/Current/bin' to the=20 > front of the path instead of moving '/usr/local/bin' around. This = would=20 > also help with scripts installed by distutils, unless you use=20 > additional arguments these currently end up inside the framework on a=20 > location that is not on the PATH. >=20 From Jack.Jansen@oratrix.com Thu May 1 22:47:55 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Thu, 1 May 2003 23:47:55 +0200 Subject: [Pythonmac-SIG] Re: 2.3b1 installer suggestions In-Reply-To: <8CFC81BC2CC2A74F88BAB7180F00B779FA79C7@XCH-NW-29.nw.nos.boeing.com> Message-ID: <91235A30-7C1E-11D7-BD7E-000A27B19B96@oratrix.com> On donderdag, mei 1, 2003, at 22:21 Europe/Amsterdam, Bugbee, Larry wrote: > Some interesting choices. ...but whichever, I'm concerned for the > Novice. (I have some high and jr-high school students in mind.) If > we 'muck' with the path, we should be crystal clear about what we did. > If we don't, we should be crystal clear about what the user should do > to get the desired effect. Agreed. On seconds thoughts, I think I really don't want to muck with environment variables. I think I'll just print a (suppressible) warning if "our" python isn't the first one on the path. The Help Book for MacPython has instructions on how to put it there already, so I'll just point to that. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Jack.Jansen@oratrix.com Thu May 1 22:50:10 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Thu, 1 May 2003 23:50:10 +0200 Subject: [Pythonmac-SIG] MacPython-OS9 2.3b1 - No OS9 or OS8.6 reports yet In-Reply-To: Message-ID: Folks, I've had one positive report for MacPython-OS9 so far, from Tom Kacvinsky, who installed it on OSX. If there are any people still interested in OS9 or earlier: please give this installer a spin! On dinsdag, apr 29, 2003, at 16:36 Europe/Amsterdam, Jack Jansen wrote: > And a MacPython-OS9 2.3b1 installer is also available. Again: please > test it and > send reports here, I will announce it wider after I've seen a couple of > positive reports. Oh yes: please also mention your OS version (so that > I don't > announce it before I've had successes from at least OSX and OS9). > > Download from > . > An active installer and BinHex versions are also available, source > will come > shortly. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Chris.Barker@noaa.gov Thu May 1 22:58:15 2003 From: Chris.Barker@noaa.gov (Chris Barker) Date: Thu, 01 May 2003 14:58:15 -0700 Subject: [Pythonmac-SIG] Re: 2.3b1 installer suggestions References: <6B8D0AC2-7C0A-11D7-B9AA-0003931CFE24@cistron.nl> Message-ID: <3EB19877.72EDC057@noaa.gov> > > > And then... How about an installer option to 'disable' > > > /usr/bin/python? That too could be a Good Thing. well, This is how it "should" be: /usr/bin/python should be a soft link to whatever python executable the user wants to be the default. The stock python2.1 should be: /usr/bin/python2.1 with /usr/bin/python a soft link to it. Then you could install the new one as: /usr/local/bin/python2.3 And give the user a choice as to whether to make it the "default" python by providing the soft link. I have my linux box set up this way, and it's critical, because there really are incompatibilities between versions, and there is no reason to go back and upgrade (or at least test) a bunch of stuff you already have working under an older version. This all assumes that your #! lines look like: #!/usr/bin/env python2.3 (rather than just "python") and that PythonLauncher respects the #! line. Unfortunately, Apple didn't set up /usr/bin/python as a link, but it wouldn't be hard to re-name /usr/bin/python to /usr/bin/python2.1 and then put in the link. My $0.02 -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov From karbak@cmu.edu Thu May 1 23:42:36 2003 From: karbak@cmu.edu (K. Arun) Date: Thu, 1 May 2003 18:42:36 -0400 (EDT) Subject: [Pythonmac-SIG] Re: 2.3b1 installer suggestions In-Reply-To: <3EB19877.72EDC057@noaa.gov> (Chris Barker's message of "Thu, 01 May 2003 14:58:15 -0700") References: <6B8D0AC2-7C0A-11D7-B9AA-0003931CFE24@cistron.nl> <3EB19877.72EDC057@noaa.gov> Message-ID: <200305012242.h41Mgaa3000781@unicorn.wv.cc.cmu.edu> >>>>> "Chris" == Chris Barker writes: >> > > And then... How about an installer option to 'disable' > > >> /usr/bin/python? That too could be a Good Thing. Chris> well, This is how it "should" be: Chris> /usr/bin/python should be a soft link to whatever python The Debian update-alternatives system provides a neat system-wide method of handling this problem. IIRC, fink has ported update-alternatives to OS X. Any reason not to use it ? -arun -- "Don't tell me I'm burning the candle at both ends -- tell me where to get more wax!!" From lizardo@urbi.com.br Fri May 2 01:11:10 2003 From: lizardo@urbi.com.br (Lizardo H. C.M. Nunes) Date: Thu, 1 May 2003 21:11:10 -0300 Subject: [Pythonmac-SIG] [Q]PYTHONPATH Message-ID: <93C4110A-7C32-11D7-B41D-00039359DD16@urbi.com.br> Hi, I would be glad if you could please answer my question and I hope I am not too intrusive. I decided to give python a try for numerical calculations (currently I use Fortran in a daily basis) and I am playing around with the python version that comes with Jaguar. So, I want to install some modules; I've just installed dislin ( http://www.linmpi.mpg.de/dislin/ ) . Examples compiled fine and now I want to set the PYTHONPATH. I am not a unix expert and I couldn't do it. (Everything I've tried failed.) I would appreciate if you could please explain me what to do. Thanks, Lizardo. P.S. 1: I should go for NumPy and SciPy. Any other suggestions? P.S. 2: How can I add readline support, compile it all again? From andrew.straw@adelaide.edu.au Fri May 2 07:37:53 2003 From: andrew.straw@adelaide.edu.au (Andrew Straw) Date: Fri, 2 May 2003 16:07:53 +0930 Subject: [Pythonmac-SIG] Fwd: [Scipy-chaco] scipy/chaco package for OSX In-Reply-To: Message-ID: <99E8E4A6-7C68-11D7-9E8D-00039311EA24@adelaide.edu.au> Willard Myers wrote: > > (4) Don't forget that fink installs in the /sw tree, rather than > within Jack's wonderful framework Python. Now you have two copies of > 2.3b1 on your disk; one with scipy and the other with everything else > :-< But you can use the atlas from fink but use a framework python for scipy. I do this and have the best of both worlds. Cheers! Andrew From Jack.Jansen@cwi.nl Fri May 2 13:41:17 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Fri, 2 May 2003 14:41:17 +0200 Subject: [Pythonmac-SIG] 2.3b1 PackageManager quick fix Message-ID: <5E11006E-7C9B-11D7-BF0A-0030655234CE@cwi.nl> It turns out the problem with the Package Manager was a nasty combination of two things: 1. My CWI homepage was moved (which I didn't know) from www.cwi.nl to homepages.cwi.nl, and requests are http-redirected, 2. Just before 2.3b1 was released a checkin was made to urllib2 that broke handling of http-redirects. The workaround is easy: edit Lib/plat-mac/pimp.py and on line 46 change www.cwi.nl to homepages.cwi.nl. The bad news is that this means I have to fiddle the 2.3b1 binary installer before I can release it to a larger audience:-( -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From Jack.Jansen@cwi.nl Fri May 2 16:11:36 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Fri, 2 May 2003 17:11:36 +0200 Subject: [Pythonmac-SIG] Next try: MacPython-OSX 2.3b1 Message-ID: <5DC848D0-7CB0-11D7-BF0A-0030655234CE@cwi.nl> A new installer, with the package manager bug fixed (worked around, actually) is available at . It should be possible to simply install this over the old one (but I haven't tried this myself:-). -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From daniel_t@earthlink.net Fri May 2 17:13:52 2003 From: daniel_t@earthlink.net (Daniel Tartaglia) Date: Fri, 2 May 2003 12:13:52 -0400 Subject: [Pythonmac-SIG] Next try: MacPython-OSX 2.3b1 In-Reply-To: <5DC848D0-7CB0-11D7-BF0A-0030655234CE@cwi.nl> Message-ID: <11264412-7CB9-11D7-8A0C-0050E4CE2500@earthlink.net> Was the problem with the IDE fixed? On Friday, May 2, 2003, at 11:11 AM, Jack Jansen wrote: > A new installer, with the package manager bug fixed (worked around, > actually) is available at > . > > It should be possible to simply install this over the old one (but I > haven't tried this myself:-). From Chris.Barker@noaa.gov Fri May 2 17:12:43 2003 From: Chris.Barker@noaa.gov (Chris Barker) Date: Fri, 02 May 2003 09:12:43 -0700 Subject: [Pythonmac-SIG] 2.3b1 PackageManager quick fix References: <5E11006E-7C9B-11D7-BF0A-0030655234CE@cwi.nl> Message-ID: <3EB298FB.35742D88@noaa.gov> About the package manager... Jack, have you been keeping up with the Python Package Index (PyPI) discussion on Catalog-Sig? http://www.python.org/pypi It looks like this is going to be the "official" package catalog for Python (finally!). I'm not sure what level of compatability between pimp an PyPI is possible/desirable, but it seems that it would be nice. I'd really lke to see MacPython get even more integrated with the main Python development/distribution community. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov From p.oberndoerfer@urheberrecht.org Fri May 2 18:39:24 2003 From: p.oberndoerfer@urheberrecht.org (Pascal Oberndoerfer) Date: Fri, 02 May 2003 19:39:24 +0200 Subject: [Pythonmac-SIG] MacPython-OS9 2.3b1 - No OS9 or OS8.6 reports yet In-Reply-To: Message-ID: Jack Jansen at Jack.Jansen@oratrix.com: > Folks, > I've had one positive report for MacPython-OS9 so far, from Tom > Kacvinsky, > who installed it on OSX. If there are any people still interested in OS9 > or earlier: please give this installer a spin! Two more results... iMac 15", 9.2.2: 205 tests OK. 1 test failed: test_longexp 47 tests skipped: test_al test_atexit test_bsddb test_bsddb3 test_bz2 test_cd test_cl test_commands test_crypt test_curses test_dbm test_dl test_email_codecs test_fcntl test_fork1 test_gl test_grp test_imgfile test_ioctl test_largefile test_linuxaudiodev test_locale test_mmap test_mpz test_nis test_normalization test_openpty test_ossaudiodev test_pep277 test_poll test_popen test_popen2 test_posix test_pty test_pwd test_resource test_signal test_socket_ssl test_socketserver test_sunaudiodev test_tarfile test_timeout test_timing test_unicode_file test_urllibnet test_winreg test_winsound Those skips are all expected on mac. TiBook, 9.2.2: 203 tests OK. 3 tests failed: test_logging test_socket test_tempfile 47 tests skipped: test_al test_atexit test_bsddb test_bsddb3 test_bz2 test_cd test_cl test_commands test_crypt test_curses test_dbm test_dl test_email_codecs test_fcntl test_fork1 test_gl test_grp test_imgfile test_ioctl test_largefile test_linuxaudiodev test_locale test_mmap test_mpz test_nis test_normalization test_openpty test_ossaudiodev test_pep277 test_poll test_popen test_popen2 test_posix test_pty test_pwd test_resource test_signal test_socket_ssl test_socketserver test_sunaudiodev test_tarfile test_timeout test_timing test_unicode_file test_urllibnet test_winreg test_winsound Those skips are all expected on mac. The folder named 'xx' is not removed in either case. Pascal From larry.bugbee@boeing.com Fri May 2 18:56:09 2003 From: larry.bugbee@boeing.com (Bugbee, Larry) Date: Fri, 2 May 2003 10:56:09 -0700 Subject: [Pythonmac-SIG] 2.3b1 installer options Message-ID: <8CFC81BC2CC2A74F88BAB7180F00B779E0680E@XCH-NW-29.nw.nos.boeing.com> Jack, In addition to 'Demos' and 'Tools', shouldn't we add 'Doc'? Larry From just@letterror.com Fri May 2 19:15:44 2003 From: just@letterror.com (Just van Rossum) Date: Fri, 2 May 2003 20:15:44 +0200 Subject: [Pythonmac-SIG] 2.3b1 installer options In-Reply-To: <8CFC81BC2CC2A74F88BAB7180F00B779E0680E@XCH-NW-29.nw.nos.boeing.com> Message-ID: Bugbee, Larry wrote: > In addition to 'Demos' and 'Tools', shouldn't we add 'Doc'? Speaking of options, I'd like to see an option to specify where the apps are installed. Don't know if/how that's possible, though. Just From Jack.Jansen@oratrix.com Fri May 2 21:45:33 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Fri, 2 May 2003 22:45:33 +0200 Subject: [Pythonmac-SIG] 2.3b1 PackageManager quick fix In-Reply-To: <3EB298FB.35742D88@noaa.gov> Message-ID: <050D2A5F-7CDF-11D7-A7DC-000A27B19B96@oratrix.com> On vrijdag, mei 2, 2003, at 18:12 Europe/Amsterdam, Chris Barker wrote: > About the package manager... > > Jack, have you been keeping up with the Python Package Index (PyPI) > discussion on Catalog-Sig? > > http://www.python.org/pypi > > It looks like this is going to be the "official" package catalog for > Python (finally!). I'm not sure what level of compatability between > pimp > an PyPI is possible/desirable, but it seems that it would be nice. I'd > really lke to see MacPython get even more integrated with the main > Python development/distribution community. I'm on the catalog-sig mailing list, following it with half an eye. Depending on your point of view PyPI and PackMan either (a) solve the same problem, (b) solve different problems or (c) are orthogonal. I plan to do a PEP on PackMan after 2.3 is out. The code should already work on most other unix systems, and there's a bug report (719300) that is about not using the curl command to download files but use urllib2 in stead. Then it should work on all unix platforms, and maybe even windows. As to how PyPI and PackMan are related: you could say they solve the same problem, because it's both about adding packages to your installation. But where PyPI is about finding a package in an ever growing haystack of useful packages it stops right there: you get a URL and you're expected to download and install the package yourself. PackMan does almost exactly the opposite: it assumes there's a trustworthy benevolent person somewhere who carefully selects packages, builds and tests them on a specific platform, gives them his/her seal of approval and provides pointers to a binary and source installer (the latter probably the same you would have found with PyPI). This person is called the Scapegoat, because if the package doesn't work the end user is entitled to blame him/her: either the package wasn't tested, or it was tested only partially, and a dependency was missing in the database (a dependency on something the scapegoat had installed but the user who needed the package didn't). -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From just@letterror.com Fri May 2 21:53:15 2003 From: just@letterror.com (Just van Rossum) Date: Fri, 2 May 2003 22:53:15 +0200 Subject: [Pythonmac-SIG] 2.3b1 PackageManager quick fix In-Reply-To: <050D2A5F-7CDF-11D7-A7DC-000A27B19B96@oratrix.com> Message-ID: Jack Jansen wrote: > As to how PyPI and PackMan are related: you could say they solve the > same problem, because it's both about adding packages to your > installation. But where PyPI is about finding a package in an ever > growing haystack of useful packages it stops right there: you get a > URL and you're expected to download and install the package yourself. > > PackMan does almost exactly the opposite: it assumes there's a > trustworthy benevolent person somewhere who carefully selects > packages, builds and tests them on a specific platform, gives them > his/her seal of approval and provides pointers to a binary and source > installer (the latter probably the same you would have found with > PyPI). This person is called the Scapegoat, because if the package > doesn't work the end user is entitled to blame him/her: either the > package wasn't tested, or it was tested only partially, and a > dependency was missing in the database (a dependency on something the > scapegoat had installed but the user who needed the package didn't). I think PackMan and PyPI (should) overlap a great deal; in a sense PackMan extends the idea of PyPI with download/install capabilities. Both are pretty cool, but together they would *rule*. Together they are like fink and cpan. Just From Jack.Jansen@oratrix.com Fri May 2 21:57:30 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Fri, 2 May 2003 22:57:30 +0200 Subject: [Pythonmac-SIG] 2.3b1 installer options In-Reply-To: <8CFC81BC2CC2A74F88BAB7180F00B779E0680E@XCH-NW-29.nw.nos.boeing.com> Message-ID: On vrijdag, mei 2, 2003, at 19:56 Europe/Amsterdam, Bugbee, Larry wrote: > Jack, > > In addition to 'Demos' and 'Tools', shouldn't we add 'Doc'? Hmm, hmm. Doc you can already install via PackageManager. And Just wrote: > Speaking of options, I'd like to see an option to specify where the > apps > are installed. Don't know if/how that's possible, though. I'm thinking now that the best option may be to have a (small) number of installers, similar to what the Tcl/Tk folks do: 1. Minimal system-wide install. This is basically the installer we have now. Doc, Demos, Tools and other stuff can be installed through PackageManager. 2. Batteries Included system-wide install. Same as 1, but with at least Doc, Demos, Tools and a selected number of addons included. For the addons I would think of PyObjC, readline, Tkinter (because people want it), but I'm open to suggestions. 3. Some way to install for a single user. This could be the same as (1) but with everything in $HOME, which would be a good option for Python-wizards stuck without admin privileges and no Python installation. Another option would be a self-contained version of (2), which would be good for people interested in Python but not daring to install it system-wide. It would be really nice if the self-contained installation could run off read-only media (as the Tcl/Tk folks seem to have managed). Note that all the installer magic is in CVS (Mac/OSX/Dist), so feel free to experiment. The build script will not touch your existing build tree, it will create a new one in /tmp, so play away. If someone can modify the current type-(1) installer to also do type-(3a) that would be great! -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From larry.bugbee@boeing.com Fri May 2 21:57:11 2003 From: larry.bugbee@boeing.com (Bugbee, Larry) Date: Fri, 2 May 2003 13:57:11 -0700 Subject: [Pythonmac-SIG] 2.3b1 PackageManager quick fix Message-ID: <8CFC81BC2CC2A74F88BAB7180F00B779E06811@XCH-NW-29.nw.nos.boeing.com> What security is in place for each of these to guard against viruses, = Trojans and the like? -----Original Message----- From: Just van Rossum [mailto:just@letterror.com] Sent: Friday, May 02, 2003 1:53 PM To: Jack Jansen Cc: Chris Barker; pythonmac-SIG@python.org Subject: Re: [Pythonmac-SIG] 2.3b1 PackageManager quick fix Jack Jansen wrote: > As to how PyPI and PackMan are related: you could say they solve the > same problem, because it's both about adding packages to your > installation. But where PyPI is about finding a package in an ever > growing haystack of useful packages it stops right there: you get a > URL and you're expected to download and install the package yourself. >=20 > PackMan does almost exactly the opposite: it assumes there's a > trustworthy benevolent person somewhere who carefully selects > packages, builds and tests them on a specific platform, gives them > his/her seal of approval and provides pointers to a binary and source > installer (the latter probably the same you would have found with > PyPI). This person is called the Scapegoat, because if the package > doesn't work the end user is entitled to blame him/her: either the > package wasn't tested, or it was tested only partially, and a > dependency was missing in the database (a dependency on something the > scapegoat had installed but the user who needed the package didn't). I think PackMan and PyPI (should) overlap a great deal; in a sense PackMan extends the idea of PyPI with download/install capabilities. Both are pretty cool, but together they would *rule*. Together they are like fink and cpan. Just _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig From kevino@tulane.edu Fri May 2 22:22:47 2003 From: kevino@tulane.edu (Kevin Ollivier) Date: Fri, 2 May 2003 14:22:47 -0700 Subject: [Pythonmac-SIG] 2.3b1 installer options In-Reply-To: Message-ID: <38CB61AE-7CE4-11D7-A799-000393CB1C86@tulane.edu> On Friday, May 2, 2003, at 01:57 PM, Jack Jansen wrote: > > On vrijdag, mei 2, 2003, at 19:56 Europe/Amsterdam, Bugbee, Larry > wrote: > >> Jack, >> >> In addition to 'Demos' and 'Tools', shouldn't we add 'Doc'? > > Hmm, hmm. Doc you can already install via PackageManager. > > And Just wrote: >> Speaking of options, I'd like to see an option to specify where the >> apps >> are installed. Don't know if/how that's possible, though. > > I'm thinking now that the best option may be to have a (small) number > of installers, similar to what the Tcl/Tk folks do: > > 1. Minimal system-wide install. This is basically the installer we > have now. > Doc, Demos, Tools and other stuff can be installed through > PackageManager. > 2. Batteries Included system-wide install. Same as 1, but with at least > Doc, Demos, Tools and a selected number of addons included. For the > addons I would think of PyObjC, readline, Tkinter (because people want > it), > but I'm open to suggestions. Since you said you were interested in suggestions, what about wxPython...? ;-) Kevin From Jack.Jansen@oratrix.com Sat May 3 00:58:37 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Sat, 3 May 2003 01:58:37 +0200 Subject: [Pythonmac-SIG] Package Manager collection almost complete Message-ID: Folks, this is your Scapegoat speaking. I've updated the packages available through the package manager: new 2.3b1 documentation, _tkinter and Idle are now available. I plan to add a binary PIL and (hopefully) PyObjC later this week. Please test what is there and let me know of problems. Also, this would be a good time to voice requests for packages you think need to be added. I'm promising nothing, but popular demand will definitely make a difference. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Jack.Jansen@oratrix.com Sat May 3 01:03:46 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Sat, 3 May 2003 02:03:46 +0200 Subject: [Pythonmac-SIG] 2.3b1 PackageManager quick fix In-Reply-To: <8CFC81BC2CC2A74F88BAB7180F00B779E06811@XCH-NW-29.nw.nos.boeing.com> Message-ID: On vrijdag, mei 2, 2003, at 22:57 Europe/Amsterdam, Bugbee, Larry wrote: > What security is in place for each of these to guard against viruses, > Trojans and the like? The installers are protected with MD5 checksums, so if you trust the database (and its creator) you should be able to trust the installers. Ideas for how to guard the database itself are welcome. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Jack.Jansen@oratrix.com Sat May 3 01:05:25 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Sat, 3 May 2003 02:05:25 +0200 Subject: [Pythonmac-SIG] 2.3b1 installer options In-Reply-To: <38CB61AE-7CE4-11D7-A799-000393CB1C86@tulane.edu> Message-ID: On vrijdag, mei 2, 2003, at 23:22 Europe/Amsterdam, Kevin Ollivier wrote: > Since you said you were interested in suggestions, what about > wxPython...? ;-) Why is it that this suggestion doesn't come as a surprise? :-) Ok: hold my hand, tell me what to download, how to test it, and how to create the bdist-dumb and I'll give it a go. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From lanceboyle@myrealbox.com Sat May 3 04:53:27 2003 From: lanceboyle@myrealbox.com (Lance Boyle) Date: Fri, 2 May 2003 20:53:27 -0700 Subject: [Pythonmac-SIG] Package Manager collection almost complete In-Reply-To: Message-ID: Gnuplot.py (http://gnuplot-py.sourceforge.net/) with output to Aquaterm (http://aquaterm.sourceforge.net/) SciPy (http://scipy.org/) And many thanks whatever you decide. Jerry Tempe, AZ On Friday, May 2, 2003, at 16:58 America/Phoenix, Jack Jansen wrote: > Also, this would be a good time to voice requests for packages you > think > need to be added. I'm promising nothing, but popular demand will > definitely > make a difference. From lanceboyle@myrealbox.com Sat May 3 04:56:47 2003 From: lanceboyle@myrealbox.com (Lance Boyle) Date: Fri, 2 May 2003 20:56:47 -0700 Subject: [Pythonmac-SIG] Package Manager collection almost complete In-Reply-To: Message-ID: <433C83FC-7D1B-11D7-9F11-003065F93FF0@myrealbox.com> Almost forgot: Chaco (http://www.scipy.org/site_content/chaco) but I don't know if this is in a usable state yet. Maybe others can comment. Plus, it uses wxPython. Jerry On Friday, May 2, 2003, at 16:58 America/Phoenix, Jack Jansen wrote: > Also, this would be a good time to voice requests for packages you > think > need to be added. I'm promising nothing, but popular demand will > definitely > make a difference. From kevino@tulane.edu Sat May 3 09:07:10 2003 From: kevino@tulane.edu (Kevin Ollivier) Date: Sat, 3 May 2003 01:07:10 -0700 Subject: [Pythonmac-SIG] 2.3b1 installer options In-Reply-To: Message-ID: <3D69E611-7D3E-11D7-A799-000393CB1C86@tulane.edu> Hi Jack, On Friday, May 2, 2003, at 05:05 PM, Jack Jansen wrote: > > On vrijdag, mei 2, 2003, at 23:22 Europe/Amsterdam, Kevin Ollivier > wrote: >> Since you said you were interested in suggestions, what about >> wxPython...? ;-) > > Why is it that this suggestion doesn't come as a surprise? :-) > > Ok: hold my hand, tell me what to download, how to test it, and how to > create the bdist-dumb and I'll give it a go. If you want to give it a quick spin, you can download and install the binary version at: http://www.wxpython.org/download.php#binaries. To test the installation, run /Applications/wxPythonOSX-2.4.0.7/RunDemo.app. (BTW, I just noticed - the new wxIntCtrl class is crashing for me on OS X, so skip that test. ^_^; I'll send a note about it to the wxPythonMac list.) To build from source, you can either pull the wxWindows CVS tree or download a source tarball from wxPython.org. CVS access instructions and the source tarball are located here: http://www.wxpython.org/download.php#cvsaccess Then, follow the build instructions listed here: http://www.wxpython.org/BUILD.osx.txt. That should get you a running wxPython installation. Please let me know if you have any more questions, or feel free to post them to the wxpython-mac@lists.wxwindows.org. Thanks for looking into this! Kevin From w.uhl@web.de Sat May 3 09:33:52 2003 From: w.uhl@web.de (Wolfgang Uhl) Date: Sat, 3 May 2003 10:33:52 +0200 Subject: [Pythonmac-SIG] Package Manager collection almost complete Message-ID: Hello, thank you for the _tkinter package but the download is not going. After clicking on the "Install"-button, the message is: "Problem with dependency: (TclTkAqua): This package cannot be installed automatically (no Download-URL field)." What's going wrong ? Wolfgang From Jack.Jansen@oratrix.com Sat May 3 12:06:07 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Sat, 3 May 2003 13:06:07 +0200 Subject: [Pythonmac-SIG] Package Manager collection almost complete In-Reply-To: Message-ID: <3D4F1F3E-7D57-11D7-A429-000A27B19B96@oratrix.com> On zaterdag, mei 3, 2003, at 10:33 Europe/Amsterdam, Wolfgang Uhl wrote: > Hello, > > thank you for the _tkinter package but the download is not going. > After clicking on the "Install"-button, the message is: "Problem with > dependency: (TclTkAqua): This package cannot be installed > automatically (no Download-URL field)." What's going wrong ? This is more-or-less a bug in the PackageManager GUI. _tkinter depends on TclTkAqua, and you have to install the latter package manually. Select TclTkAqua, go to the home page and you will find instructions on how to install it. But: just before 2.3b1 I made the pseudo-packages, the ones which PackageManager cannot install itself, hidden by default. Which makes the message rather unintellegible:-( If you select the "show hidden" box at the top right of the window you'll see TclTkAqua, and if you go to its home page you can install it. Also, it turns out that my idea of "no automatic install" == "hidden" isn't the right one. wxPython is also in the installer database (as of 10 minutes ago:-), and while it cannot be installed automatically it should definitely not be hidden. And packages which are normally hidden need to be shown when they are referred to in error messages for other packages. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From riaan@e.co.za Sat May 3 14:15:22 2003 From: riaan@e.co.za (Riaan Booysen) Date: Sat, 03 May 2003 15:15:22 +0200 Subject: [Pythonmac-SIG] Re: [Boa Constr] Boa Constructor on Mac OS X? In-Reply-To: <3EAED392.90405@python.org> References: <3EAED392.90405@python.org> Message-ID: <3EB3C0EA.50807@e.co.za> Hi David, David Goodger wrote: > Has anyone been able to run Boa Constructor on Mac OS X? I hacked a > copy of the wxPython RunDemo.app to run Boa.pyw, but Boa crashes after a > time with a Bus Error, and some of the interface elements are messed up > (input fields on top of buttons, etc.). Any tips or links would be > appreciated. > > OS X 10.2.5, MacPython 2.3a2 (framework), wxPython 2.4.0.7, Boa 0.2.3. As I don't have access to a Mac personally, the progress of the OS X version has been very slow. (well at least it can start up these days!) I've fixed a number of issues already when people reported them in enough detail, but as you can imagine developing "blind" is time consuming and frustrating. I would *really* like to see the OS X version working, but this will probably require a volunteer with a Mac. I'll gladly give someone CVS commit rights who can competently fix OS X issues. Thanks, Riaan. From richardac@mac.com Sat May 3 19:18:28 2003 From: richardac@mac.com (Richard Collins) Date: Sat, 3 May 2003 20:18:28 +0200 Subject: [Pythonmac-SIG] Re: MacPython-OS9 2.3b1 - No OS9 or OS8.6 reports yet Message-ID: Hello Jack, Some slightly different results: G4 desktop running 9.2.2, after having changed the RAM allocation for the IDE to 64001K (see below). These results are having booted into 9.2.2, not running classic. 200 tests OK. 5 tests failed: test_descr test_imp test_logging test_socket test_tempfile 48 tests skipped: test_al test_atexit test_bsddb test_bsddb3 test_bz2 test_cd test_cl test_commands test_crypt test_curses test_dbm test_dl test_email_codecs test_fcntl test_fork1 test_gl test_grp test_imgfile test_ioctl test_largefile test_linuxaudiodev test_locale test_mmap test_mpz test_nis test_normalization test_openpty test_ossaudiodev test_pep277 test_poll test_popen test_popen2 test_posix test_pty test_pwd test_resource test_signal test_socket_ssl test_socketserver test_sunaudiodev test_tarfile test_timeout test_timing test_unicode_file test_univnewlines test_urllibnet test_winreg test_winsound 1 skip unexpected on mac: test_univnewlines Traceback (most recent call last): File "", line 1, in ? File "MacHD1:Applications (Mac OS 9):MacPython-OS9 2.3b1:Lib:test:regrtest.py", line 334, in main sys.exit(len(bad) > 0) SystemExit: True >>> Before changing the memory setting, I experienced some instability. Here is the end of the log 117 tests OK. 108 tests failed: Traceback (most recent call last): File "", line 1, in ? File "MacHD1:Applications (Mac OS 9):MacPython-OS9 2.3b1:Lib:test:regrtest.py", line 301, in main printlist(bad) File "MacHD1:Applications (Mac OS 9):MacPython-OS9 2.3b1:Lib:test:regrtest.py", line 531, in printlist from textwrap import fill MemoryError this also brought up a different window with a message like "no memory for new parser" appearing several times the first two tests crashing with Memory error were: test_pep277 test test_pep277 crashed -- exceptions.MemoryError: test_pickle test test_pickle crashed -- exceptions.MemoryError: The nasty bit is that after changing the memory setting and repeating the tests, things got worse. the IDE crashed, and pretty hard, with a type 2 error. After restarting and trying the tests again, there was another failure which brought up a traceback window, which I was not able to copy or save from, but I did get a screen dump. I tried a "post mortem", but this froze the machine. After the next restart, I got the following stuff on starting the IDE, so I had to reinstall. XXX rds_object called with exception set Traceback (most recent call last): File "MacHD1:Applications (Mac OS 9):MacPython-OS9 2.3b1:Lib:warnings.py", line 6, in ? import sys, re, types File "MacHD1:Applications (Mac OS 9):MacPython-OS9 2.3b1:Lib:re.py", line 5, in ? from sre import * File "MacHD1:Applications (Mac OS 9):MacPython-OS9 2.3b1:Lib:sre.py", line 98, in ? import sre_parse File "MacHD1:Applications (Mac OS 9):MacPython-OS9 2.3b1:Lib:sre_parse.py", line 16, in ? import string, sys EOFError: EOF read where object expected Hope this helps! One other thing that may skew these results, is that after my first install, and investigating to see if the icons were still being positioned over each other, I ran the ConfigurePython script. It was only when I saw what it did that I realised, the installer has already done this. So some of the above trouble could have been caused by ConfigurePython being run twice ? BTW, I'm not going to see my mail for a while after tonight. best regards Richard Collins From Jack.Jansen@oratrix.com Sat May 3 22:54:13 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Sat, 3 May 2003 23:54:13 +0200 Subject: [Pythonmac-SIG] Re: MacPython-OS9 2.3b1 - No OS9 or OS8.6 reports yet In-Reply-To: Message-ID: On zaterdag, mei 3, 2003, at 20:18 Europe/Amsterdam, Richard Collins wrote: > Hello Jack, > > Some slightly different results: G4 desktop running 9.2.2, after > having changed the RAM allocation for the IDE to 64001K (see below). > These results are having booted into 9.2.2, not running classic. Richard, I've also noted strange results when running the tests under the IDE. If you read this before going offline, could you re-test with PythonInterpreter? I'll have a look at running the tests under the IDE (or, at least, make them fail in an understandable way) later. As to why things started failing hard after the memory errors: I haven't a clue... If you have a fast internet connection and you still have the old install dir around (the one that "doesn't work" anymore): could you dump it into a stuffit archive and send it to me? -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Jack.Jansen@oratrix.com Sun May 4 00:06:59 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Sun, 4 May 2003 01:06:59 +0200 Subject: [Pythonmac-SIG] 2.3b1 installer options In-Reply-To: <3D69E611-7D3E-11D7-A799-000393CB1C86@tulane.edu> Message-ID: Kevin, wxPython is in the package manager. For technical reasons it's a "hidden" package right now, and you have to install it by hand, but at least it's there. There's a problem with it, however: after you've installed it the Package Manager (or the IDE, when you've used the Package Manager) will crash on quit. This probably has something to do with IDE and the PackageManager event loop (classic Event Manager) and/or a fight between wxPython and IDE/PackageManager/W/Framework over appleevents (the crash seems to be in an AppleEvent handler). PackMan imports wxPython to test its existence, but doesn't do anything more with it. Could you investigate, please? On zaterdag, mei 3, 2003, at 10:07 Europe/Amsterdam, Kevin Ollivier wrote: > Hi Jack, > > On Friday, May 2, 2003, at 05:05 PM, Jack Jansen wrote: > >> >> On vrijdag, mei 2, 2003, at 23:22 Europe/Amsterdam, Kevin Ollivier >> wrote: >>> Since you said you were interested in suggestions, what about >>> wxPython...? ;-) >> >> Why is it that this suggestion doesn't come as a surprise? :-) >> >> Ok: hold my hand, tell me what to download, how to test it, and how to >> create the bdist-dumb and I'll give it a go. > > If you want to give it a quick spin, you can download and install the > binary version at: http://www.wxpython.org/download.php#binaries. To > test the installation, run > /Applications/wxPythonOSX-2.4.0.7/RunDemo.app. (BTW, I just noticed - > the new wxIntCtrl class is crashing for me on OS X, so skip that test. > ^_^; I'll send a note about it to the wxPythonMac list.) > > To build from source, you can either pull the wxWindows CVS tree or > download a source tarball from wxPython.org. CVS access instructions > and the source tarball are located here: > > http://www.wxpython.org/download.php#cvsaccess > > Then, follow the build instructions listed here: > http://www.wxpython.org/BUILD.osx.txt. > > That should get you a running wxPython installation. > > Please let me know if you have any more questions, or feel free to > post them to the wxpython-mac@lists.wxwindows.org. Thanks for looking > into this! > > Kevin > -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From lists@lee-phillips.org Sun May 4 00:59:02 2003 From: lists@lee-phillips.org (Lee Phillips) Date: Sat, 3 May 2003 19:59:02 -0400 Subject: [Pythonmac-SIG] [Q]PYTHONPATH In-Reply-To: <93C4110A-7C32-11D7-B41D-00039359DD16@urbi.com.br> References: <93C4110A-7C32-11D7-B41D-00039359DD16@urbi.com.br> Message-ID: <20030503235902.GB840@Lee-Phillipss-Computer.local.> On Thu, May 01, 2003 at 09:11:10PM -0300, Lizardo H. C.M. Nunes wrote: > [....] > So, I want to install some modules; I've just installed dislin ( > http://www.linmpi.mpg.de/dislin/ ) . Examples compiled fine and now I > want to set the PYTHONPATH. I am not a unix expert and I couldn't do > it. (Everything I've tried failed.) That's what's called an environment variable - once set, it is inhereted by all the child processes. So, if you really need for it to be set, you want to have it set automatically each time you start a shell (each time you open a Terminal window). To see its value, type "echo $PYTHONPATH". To set it, for the sh or bash shells (what I use) type PYTHONPATH=/path/that/you/want. If you are using the csh or tcsh (might still be the default for OSX) you should change to bash! Or, more seriously, the command is "set PYTHONPATH = /path/that/you/want". To get it set automatically, put the commands in the special files that get executed when you start a shell. For bash, that's .bashrc, and for tcsh or csh that's .cshrc (I think - check: "ls -ld .*" will show you the "dotfiles" that you have). These are in your home directory (~ or /Users/yourname). But what I do is, rather than put the modules that I want to be able to import all over the place and fiddle with PYTHONPATH, is just put them in /usr/lib/python2.2/. If it's a package instead of just a single module, you put it in /usr/lib/python2.2/site-packages/. That's where you would put Numeric, for example. If you put them there you will be able to import them automatically. You can do this because you can assume root priviledges (sudo). Also, it's fun to look around in there and examine the modules that come with the installation. > P.S. 2: How can I add readline support, compile it all again? I added this, if I recall correctly, by downloading something from Bill Bumgardner's website. I did not have to recompile. You will have, however, to have at least the July 2002 developer tools update (I think that's the right date). So look there, or in the archives to this list. From just@letterror.com Sun May 4 19:29:13 2003 From: just@letterror.com (Just van Rossum) Date: Sun, 4 May 2003 20:29:13 +0200 Subject: [Pythonmac-SIG] 2.3b1 installer options In-Reply-To: Message-ID: Jack Jansen wrote: > PackMan imports wxPython to test its existence, but doesn't do > anything more with it. I don't think it's a good idea to blindly import things. Why not use imp.find_module()? Just From altis@semi-retired.com Sun May 4 20:23:39 2003 From: altis@semi-retired.com (Kevin Altis) Date: Sun, 4 May 2003 12:23:39 -0700 Subject: [Pythonmac-SIG] O'Reilly Mac OS X Conference submission deadline Message-ID: The O'Reilly Mac OS X Conference will be held October 27-30 in Santa Clara, CA. Since Python 2.3 will be final well before then and (hopefully) included as part of the Panther distribution this is a great opportunity to showcase Python solutions on Mac OS X. http://conferences.oreillynet.com/macosx2003/ The submission deadline for all proposals is May 14, 2003 so you should get a proposal in soon. AFAIK, admission to the conference is free for presenters, so there is an added incentive. ka --- Kevin Altis altis@semi-retired.com http://altis.pycs.net/ http://www.pythoncard.org/ From oussoren@cistron.nl Sun May 4 21:28:42 2003 From: oussoren@cistron.nl (Ronald Oussoren) Date: Sun, 4 May 2003 22:28:42 +0200 Subject: [Pythonmac-SIG] ANN: PyObjC 0.9 Message-ID: PyObjC 0.9 is now available for download at http://pyobjc.sourceforge.net/ PyObjC is a bridge between Python and Objective-C. It allows full featured Cocoa applications to be written in pure Python. It is also easy to use other frameworks containing Objective-C class libraries from Python and to mix in Objective-C, C and C++ source. Python is a highly dynamic programming language with a shallow learning curve. It combines remarkable power with very clear syntax. The installer package includes a number of Project Builder templates for easily creating new Cocoa-Python projects. Version 0.9 also introduces support for sytax coloring of Python files in Project Builder. PyObjC also supports full introspection of Objective-C classes and direct invocation of Objective-C APIs from the interactive interpreter. PyObjC requires MacOS X 10.2 or later. PyObjC works both with the Apple provided Python installation in MacOS X 10.2 (and later) and with MacPython 2.3b1. Users of MacPython 2.3b1 can install PyObjC though the PackageManager application. PyObjC 0.9 includes many inprovements over earlier versions and users are strongly advised to upgrade. The installer package will automatically upgrade prior releases. PyObjC is released with an open source license. From rafferty29@mchsi.com Sun May 4 22:14:58 2003 From: rafferty29@mchsi.com (Rob Bedford) Date: Sun, 4 May 2003 16:14:58 -0500 Subject: [Pythonmac-SIG] Suggestions/requests Message-ID: <75A8A77A-7E75-11D7-98BF-00039374C97A@mchsi.com> I have been playing with the 2.3b1 release. First I would like to commend the excellent work. I think Python is very much ready for prime time on the Mac with this release and hope that Apple includes it in 10.3 Having said that I was using the Package Manager and thought of 2 things that might be nice additions. The first would be an uninstall button. The second a installation log (I think /Documents/Installer Logs would be a good default for System installs) a lot of applications have neither of these and I always worry about what and where stuff got installed in case there are problems or conflicts. Thanks From Chris.Barker@noaa.gov Sun May 4 15:46:08 2003 From: Chris.Barker@noaa.gov (Chris Barker) Date: Sun, 04 May 2003 07:46:08 -0700 Subject: [Pythonmac-SIG] O'Reilly Mac OS X Conference submission deadline References: Message-ID: <3EB527B0.1E6B9B85@noaa.gov> I took a look at the O-Reilly web site, and noticed this: All session presenters whose talks are accepted will receive free admission to the conference. For each half-day tutorial, the presenter receives: One night's hotel accommodation Travel allowance: Up to $300 from the west coast Up to $500 from the east coast Up to $800 international Free admission to the conference, including admittance to other tutorials Jack, you really should go to this, and it looks like you could even have your trip paid for. Is there any chance? If not Jack, maybe someone else of note on this list could go. Perhpas we could all agree to help develop a talk, so that each niche of Python development is well covered. By the way, you go to that site, you'll see that they are requesting suggestions for topics. We should all send in suggestions for MacPython stuff. Python really needs some more exposure on the Mac, and with the 2.3 release, MacPython will be a very powerful and flexible tool for all types of development on OS-X this side of device drivers (and even then, it would be a good tool for a test framework ;-) ). I just sent a note in. -Chris -- -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov From kevino@tulane.edu Sun May 4 23:59:33 2003 From: kevino@tulane.edu (Kevin Ollivier) Date: Sun, 4 May 2003 15:59:33 -0700 Subject: [Pythonmac-SIG] O'Reilly Mac OS X Conference submission deadline References: <3EB527B0.1E6B9B85@noaa.gov> Message-ID: <01e601c31290$d44729d0$6701a8c0@dellPC> ----- Original Message ----- From: "Chris Barker" To: Sent: Sunday, May 04, 2003 7:46 AM Subject: Re: [Pythonmac-SIG] O'Reilly Mac OS X Conference submission deadline > I took a look at the O-Reilly web site, and noticed this: > > All session presenters whose talks are accepted will receive free > admission to the conference. For each half-day tutorial, the presenter > receives: > > One night's hotel accommodation > Travel allowance: > Up to $300 from the west coast > Up to $500 from the east coast > Up to $800 international > Free admission to the conference, including admittance to other > tutorials > > Jack, you really should go to this, and it looks like you could even > have your trip paid for. Is there any chance? If not Jack, maybe someone > else of note on this list could go. Perhpas we could all agree to help > develop a talk, so that each niche of Python development is well > covered. I think this is an excellent idea. I think it would be cool if Jack or someone could give a Mac-specific 'State of the Python Union' talk. I think people would be quite impressed at seeing PyObjC, the ability to build application bundles, the ability to script Mac applications via Python, run Applescripts via Python, etc. Santa Clara is close enough that with any luck I'd be able to attend, and would really be interested in seeing this! Kevin From grobinson@transpose.com Mon May 5 01:45:30 2003 From: grobinson@transpose.com (Gary Robinson) Date: Sun, 04 May 2003 20:45:30 -0400 Subject: [Pythonmac-SIG] Making executables for OS X 10.1 and 10.2 Message-ID: Hi, I've got a newbie question here. By way of introduction, I have good experience with python scripting under solaris, , and a couple decades worth of general programming experience, but virtually no experience with python on the Mac. And I've never made a self-contained executable of python code. I'm considering writing an OS X application that would need to provide xml-rpc or SOAP services accessible from remote machines, and call such services on remote machines, AND interact with a pre-existing, apple-supplied OS X app via Apple Events. I want to stay away from Objective C because I don't know it and don't want to spend half my time and energy on memory management. I do know AppleScript and Python. The app needs to run on OS X 10.1 and 10.2. I am considering structuring it as two separate processes: an AppleScript Studio cocoa app, which interacts with a Python daemon via SOAP, which in turn provides the xml-rpc or SOAP server that other machines would access. This division of labor allows each language to do what it can do best. AppleScript Studio provides a slick GUI, and Python provides the web services interactivity and business logic. When the user quits the AppleScript Studio app, it would tell the python app to exit. Questions: 1) I imagine that the python part would be a standard, non-gui Python script like one invoked from the command line, although it would be invoked from AppleScript Studio with the "activate" command. It would not appear in the dock. It would listen for SOAP calls from the AppleScript studio app to tell it what to do, while it also listens for remote Web services RPC calls. If anyone sees any problems with that setup, I'd appreciate it if you could let me know. 2) Can I create a Python executable which contains the Python interpreter itself and runs on both 10.1 and 10.2? The PyObjC folks say they don't have their stuff working on 10.1 at this point, so I want to be sure that the regular app-building stuff does work under 10.1. 3) Would such an executable be self-contained enough that it would be completely independent of any other python installations the user may have -- such that it would neither interfere with them nor be interfered with by them? Many thanks in advance for any help! --Gary -- [http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org] Gary Robinson CEO Transpose, LLC grobinson@transpose.com 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 From altis@semi-retired.com Mon May 5 02:33:15 2003 From: altis@semi-retired.com (Kevin Altis) Date: Sun, 4 May 2003 18:33:15 -0700 Subject: [Pythonmac-SIG] which directory should be deleted for a clean install? Message-ID: I was trying to walk someone through installing 2.3b1, wxPython 2.4.0.7, and PythonCard today and while we got everything installed and running, there is definitely some funky wxPython controls display/behavior on their box that I'm not seeing on mine. They are running Jaguar 10.2.4 and I have 10.2.5, but the problem with some of the wxPython controls seems much more like a problem with an old lib. Since this person was also helping me do some tests about a year ago when wxPython first started working on Mac OS X there is a good possibility of old cruft on their box. So, the question is which directory/directories and links do I have to remove from their machine so that I can do a clean Python 2.3b1 and wxPython 2.4.0.7 install with no possibility of old files causing problems? They do have a PYTHONPATH setup via environment.plist and .cshrc so that they can test the cvs version of PythonCardPrototype, but that shouldn't impact wxPython. BTW, I'm not using the PackageManager to install wxPython 2.4.0.7, the PM crashes on my box just after the list of packages is displayed. ka --- Kevin Altis altis@semi-retired.com http://altis.pycs.net/ http://www.pythoncard.org/ From grobinson@transpose.com Mon May 5 02:48:13 2003 From: grobinson@transpose.com (Gary Robinson) Date: Sun, 04 May 2003 21:48:13 -0400 Subject: [Pythonmac-SIG] Making executables (follow-up) Message-ID: Following up on my previous message's questions about a Python executable for 10.1 and 10.2, I just want to make it clear that the AppleScript Studio UI pretty simple, just a couple of inputs and status displays. The vast majority of the logic will be in the Python, and the SOAP connection between the AppleScript Studio app and the python daemon will not be pushed very hard. I thought it might be helpful to say the above to make the whole 2-process approach seem more sane. Actually it was suggested by a doc I found online, I think from Apple, suggesting using AppleScript Studio and a separate Perl process for pretty much the same kind of division of labor, but I prefer Python for the Perl role. I'm very interested in technical feedback on whether Python running under OS X can handle the role I laid out for it in my previous message. Thanks again for any help anyone can give! --Gary -- [http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org] Gary Robinson CEO Transpose, LLC grobinson@transpose.com 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 From Jack.Jansen@oratrix.com Mon May 5 16:01:56 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Mon, 5 May 2003 17:01:56 +0200 Subject: [Pythonmac-SIG] 2.3b1 installer options In-Reply-To: Message-ID: <8383E36F-7F0A-11D7-B65D-003065517236@oratrix.com> On zondag, mei 4, 2003, at 20:29 Europe/Amsterdam, Just van Rossum wrote: > Jack Jansen wrote: > >> PackMan imports wxPython to test its existence, but doesn't do >> anything more with it. > > I don't think it's a good idea to blindly import things. Why not use > imp.find_module()? Hmm. The test is actually in the database, per package, and for most packages I not only import the main package but also test package.__version__ or whatever it has to obtain the version number. I could use imp.find_module to test wxPython existence, but then I can't think of a way to test the version. I would prefer it if "import wxPython" had no side-effects:-) -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Jack.Jansen@oratrix.com Mon May 5 16:09:03 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Mon, 5 May 2003 17:09:03 +0200 Subject: [Pythonmac-SIG] which directory should be deleted for a clean install? In-Reply-To: Message-ID: <82606E34-7F0B-11D7-B65D-003065517236@oratrix.com> On maandag, mei 5, 2003, at 03:33 Europe/Amsterdam, Kevin Altis wrote: > I was trying to walk someone through installing 2.3b1, wxPython > 2.4.0.7, and > PythonCard today and while we got everything installed and running, > there is > definitely some funky wxPython controls display/behavior on their box > that > I'm not seeing on mine. They are running Jaguar 10.2.4 and I have > 10.2.5, > but the problem with some of the wxPython controls seems much more > like a > problem with an old lib. Since this person was also helping me do some > tests > about a year ago when wxPython first started working on Mac OS X there > is a > good possibility of old cruft on their box. > > So, the question is which directory/directories and links do I have to > remove from their machine so that I can do a clean Python 2.3b1 and > wxPython > 2.4.0.7 install with no possibility of old files causing problems? > They do > have a PYTHONPATH setup via environment.plist and .cshrc so that they > can > test the cvs version of PythonCardPrototype, but that shouldn't impact > wxPython. For MacPython simply remove /Library/Frameworks/Python.framework, /Applications/MacPython-2.3 and ~/Library/Preferences/Python. For wxPython I don't know, ask the wxptyhon-mac folks. And I suspect wxPython is indeed your problem... > BTW, I'm not using the PackageManager to install wxPython 2.4.0.7, the > PM > crashes on my box just after the list of packages is displayed. That is fixed with the new (MacPython-OSX-2.3b1-2.dmg) installer. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From kevino@tulane.edu Mon May 5 16:51:12 2003 From: kevino@tulane.edu (Kevin Ollivier) Date: Mon, 5 May 2003 08:51:12 -0700 Subject: [Pythonmac-SIG] which directory should be deleted for a clean install? References: <82606E34-7F0B-11D7-B65D-003065517236@oratrix.com> Message-ID: <026a01c3131e$29287610$6701a8c0@dellPC> ----- Original Message ----- From: "Jack Jansen" To: "Kevin Altis" Cc: Sent: Monday, May 05, 2003 8:09 AM Subject: Re: [Pythonmac-SIG] which directory should be deleted for a clean install? > > On maandag, mei 5, 2003, at 03:33 Europe/Amsterdam, Kevin Altis wrote: > > > I was trying to walk someone through installing 2.3b1, wxPython > > 2.4.0.7, and > > PythonCard today and while we got everything installed and running, > > there is > > definitely some funky wxPython controls display/behavior on their box > > that > > I'm not seeing on mine. They are running Jaguar 10.2.4 and I have > > 10.2.5, > > but the problem with some of the wxPython controls seems much more > > like a > > problem with an old lib. Since this person was also helping me do some > > tests > > about a year ago when wxPython first started working on Mac OS X there > > is a > > good possibility of old cruft on their box. > > > > So, the question is which directory/directories and links do I have to > > remove from their machine so that I can do a clean Python 2.3b1 and > > wxPython > > 2.4.0.7 install with no possibility of old files causing problems? > > They do > > have a PYTHONPATH setup via environment.plist and .cshrc so that they > > can > > test the cvs version of PythonCardPrototype, but that shouldn't impact > > wxPython. > > For MacPython simply remove /Library/Frameworks/Python.framework, > /Applications/MacPython-2.3 > and ~/Library/Preferences/Python. > For wxPython I don't know, ask the wxptyhon-mac folks. And I suspect > wxPython is indeed > your problem... Yes, my guess is that the wxPython/wxMac shared libraries might be the problem. The easiest way to uninstall wxPython is probably to head over to http://www.osxgnu.org and download their OSX Package Manager application. After you've installed that (it resides in /Applications/Utilities/OSXPM.app) you can delete any pacakge that has been installed on the machine. It may also be worth checking if they've tried to install these packages before. (OSXPM should actually show if they have an older version of MachoPython/wxPython installed.) Kevin From kevino@tulane.edu Mon May 5 17:29:05 2003 From: kevino@tulane.edu (Kevin Ollivier) Date: Mon, 5 May 2003 09:29:05 -0700 Subject: [Pythonmac-SIG] [wxMac] wxPython crashes when initialized via GUI script Message-ID: Hi all, Jack Jansen has developed a MacPython app called "Package Manager" which helps people to manage their MacPython modules. It tests for the existence of many popular modules, and if they aren't installed, it offers the option of "one-click install" via Package Manager. Similar to Fink in a way. The problem is, when Package Manager tries to check for wxPython's existence by importing wxPython, there's a crash. I think I'm pretty sure why it's crashing - if you look at the crash log below, the crash happens in "AEHandleOApp" in "app.cpp", and that function and source file only exist in wxMac. Looking at the source code, I see that the AE Event handlers are being registered in wxEntryInitGui, which is run when the library is initialized. So I think what is happening is that the wxMac event handlers are overriding Package Manager's event handlers, and then when Package Manager sends an AE, wxMac tries to handle it, and thus the crash. Is it possible to initialize the event handlers only after wxApp->OnInit is called? I realize this is a rather unique situation, but Jack would like to be to init the library and then retrieve the version number for Package Manager. Thanks, Kevin ********** Date/Time: 2003-05-05 08:41:50 -0700 OS Version: 10.2.5 (Build 6L29) Host: localhost Command: python PID: 11785 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 Thread 0 Crashed: #0 0x055470d8 in AEHandleOApp(AEDesc const*, AEDesc*, long) (app.cpp:124) #1 0x91b56570 in aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) #2 0x91b590cc in dispatchEventAndSendReply(AEDesc const*, AEDesc*) #3 0x91b56478 in aeProcessAppleEvent #4 0x96a83778 in AEProcessAppleEvent #5 0x0053aea8 in _AEDesc_NewBorrowed #6 0x100760a0 in call_function (ceval.c:3417) #7 0x10073c78 in eval_frame (ceval.c:2094) #8 0x100762e8 in fast_function (ceval.c:3497) #9 0x10076178 in call_function (ceval.c:3435) #10 0x10073c78 in eval_frame (ceval.c:2094) #11 0x100762e8 in fast_function (ceval.c:3497) #12 0x10076178 in call_function (ceval.c:3435) #13 0x10073c78 in eval_frame (ceval.c:2094) #14 0x10074f90 in PyEval_EvalCodeEx (ceval.c:2640) #15 0x1007637c in fast_function (ceval.c:3506) #16 0x10076178 in call_function (ceval.c:3435) #17 0x10073c78 in eval_frame (ceval.c:2094) #18 0x10074f90 in PyEval_EvalCodeEx (ceval.c:2640) #19 0x1007637c in fast_function (ceval.c:3506) #20 0x10076178 in call_function (ceval.c:3435) #21 0x10073c78 in eval_frame (ceval.c:2094) #22 0x10074f90 in PyEval_EvalCodeEx (ceval.c:2640) #23 0x10024f44 in function_call (funcobject.c:501) #24 0x1000c118 in PyObject_Call (abstract.c:1756) #25 0x100155a8 in instancemethod_call (classobject.c:2433) #26 0x1000c118 in PyObject_Call (abstract.c:1756) #27 0x10075f34 in PyEval_CallObjectWithKeywords (ceval.c:3324) #28 0x1000e898 in PyInstance_New (classobject.c:576) #29 0x1000c118 in PyObject_Call (abstract.c:1756) #30 0x100764a0 in do_call (ceval.c:3621) #31 0x10076190 in call_function (ceval.c:3438) #32 0x10073c78 in eval_frame (ceval.c:2094) #33 0x10074f90 in PyEval_EvalCodeEx (ceval.c:2640) #34 0x10077dfc in PyEval_EvalCode (ceval.c:537) #35 0x100a85f8 in run_node (pythonrun.c:1175) #36 0x100a7da4 in PyRun_SimpleFileExFlags (pythonrun.c:774) #37 0x100b4344 in Py_Main (main.c:415) #38 0x00001b5c in 0x1b5c #39 0x000019dc in 0x19dc PPC Thread State: srr0: 0x055470d8 srr1: 0x0000f030 vrsave: 0x00000000 xer: 0x00000000 lr: 0x055470bc ctr: 0x055470a4 mq: 0x00000000 r0: 0x91b56570 r1: 0xbfffe880 r2: 0x48024242 r3: 0xbfffe9f0 r4: 0xbfffea00 r5: 0x00000000 r6: 0xbfffe8a0 r7: 0xbfffe910 r8: 0x0053cf7e r9: 0x00000000 r10: 0x901a3e10 r11: 0x007091e0 r12: 0x055470a4 r13: 0x006d59ac r14: 0x001b56f0 r15: 0x10101848 r16: 0x00000000 r17: 0x00000000 r18: 0x10071b44 r19: 0x00000000 r20: 0x10071848 r21: 0x00000005 r22: 0xbfffe990 r23: 0xbfffea00 r24: 0x00000000 r25: 0xbfffe9f0 r26: 0x61657674 r27: 0x00000001 r28: 0x6f617070 r29: 0xfffff954 r30: 0xbfffe880 r31: 0x055470bc From kevino@tulane.edu Mon May 5 17:02:09 2003 From: kevino@tulane.edu (Kevin Ollivier) Date: Mon, 5 May 2003 09:02:09 -0700 Subject: [Pythonmac-SIG] 2.3b1 installer options References: <8383E36F-7F0A-11D7-B65D-003065517236@oratrix.com> Message-ID: <027001c3131f$b02f4e30$6701a8c0@dellPC> ----- Original Message ----- From: "Jack Jansen" To: "Just van Rossum" Cc: "Kevin Ollivier" ; Sent: Monday, May 05, 2003 8:01 AM Subject: Re: [Pythonmac-SIG] 2.3b1 installer options > > On zondag, mei 4, 2003, at 20:29 Europe/Amsterdam, Just van Rossum > wrote: > > > Jack Jansen wrote: > > > >> PackMan imports wxPython to test its existence, but doesn't do > >> anything more with it. > > > > I don't think it's a good idea to blindly import things. Why not use > > imp.find_module()? > > Hmm. The test is actually in the database, per package, and for most > packages I not only import the main package but also test > package.__version__ > or whatever it has to obtain the version number. > > I could use imp.find_module to test wxPython existence, but then I > can't think > of a way to test the version. I would prefer it if "import wxPython" had > no side-effects:-) I think I can see what is going on here. From the PM crash log, I can see calls to the wxMac event handlers on various threads. My guess is that means that the event handlers are somehow being started when the library is initialized (or the Python init code somehow causes the wxMac application init code to run), and that causes wxMac to intercept AppleEvents and probably other events sent by PM. Of course, it isn't set up to handle them properly, and so you get a crash. I'm going to forward this along to the wxMac/wxPythonMac lists to see if anyone has a idea on a fix. Thanks, Kevin From oussoren@cistron.nl Mon May 5 21:35:31 2003 From: oussoren@cistron.nl (Ronald Oussoren) Date: Mon, 5 May 2003 22:35:31 +0200 Subject: [Pythonmac-SIG] CF module oddity Message-ID: <1DB11913-7F39-11D7-9187-0003931CFE24@cistron.nl> I've been playing with the Carbon.CF module, mostly because I want to add "toll-free" bridgeing to a future version of PyObjC. I noticed something strange: >>> import Carbon.CF >>> s = Carbon.CF.CFStringCreateWithCharacters("hello") >>> s.toPython() u'\u6865\u6c6c' >>> Is this intentional? Using u"hello" instead of "hello" gives a better result. This is with Python2.3b1 (actually a more recent CVS version). Ronald From bob@www.eyesopen.com Mon May 5 22:30:19 2003 From: bob@www.eyesopen.com (Bob Tolbert) Date: Mon, 5 May 2003 15:30:19 -0600 Subject: [Pythonmac-SIG] pydoc in MacPython 2.3b1 Message-ID: Just a quick note that the pydoc that gets installed as part of 2.3b1 has a typo in the #! line. Can't quite see why it is hardcoded this way, but the line reads: #!/tmp/_py/install/Library/Frameworks/Python.framework/Versions/2.3/ bin/python when it should be: #!/Library/Frameworks/Python.framework/Versions/2.3/bin/python Bob Robert W. Tolbert Ph.D. p. (505) 473-7385 OpenEye Scientific Software f. (505) 473-0833 3600 Cerrillos Road, Suite 1107 Santa Fe, NM 87507 From Jack.Jansen@cwi.nl Tue May 6 10:35:26 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Tue, 6 May 2003 11:35:26 +0200 Subject: [Pythonmac-SIG] CF module oddity In-Reply-To: <1DB11913-7F39-11D7-9187-0003931CFE24@cistron.nl> Message-ID: <112D4AE8-7FA6-11D7-BFB4-0030655234CE@cwi.nl> On Monday, May 5, 2003, at 22:35 Europe/Amsterdam, Ronald Oussoren wrote: > I've been playing with the Carbon.CF module, mostly because I want to > add "toll-free" bridgeing to a future version of PyObjC. I noticed > something strange: > > >>> import Carbon.CF > >>> s = Carbon.CF.CFStringCreateWithCharacters("hello") > >>> s.toPython() > u'\u6865\u6c6c' > >>> > > Is this intentional? Using u"hello" instead of "hello" gives a better > result. This is a feature. It is not a feature which I agree with (far from it:-), but a feature nonetheless. CFStringCreateWithCharacters expects a unicode string. The Python format specifier for unicode strings accepts "normal" strings, and interpretes them as a binary data stream containing UTF16 unicode data. CFStringCreateWithCString() does what you want, as does the simpler toCF(), which will convert most Python datatypes to the equivalent CF representation. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From Jack.Jansen@cwi.nl Tue May 6 14:29:57 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Tue, 6 May 2003 15:29:57 +0200 Subject: [Pythonmac-SIG] Package manager collection complete Message-ID: Folks, the package manager collection is complete. At least: it is as complete as I'm going to make it, for the time being, unless you spot glaring omissions. What I need now is feedback. Most important is feedback from people who don't have the developer tools installed: all packages are available as binary installs, and these should work when installing on a machine without the dev tools, but as I have no such machine myself I need someone to go through the motions of testing it. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From w.uhl@web.de Tue May 6 16:30:34 2003 From: w.uhl@web.de (Wolfgang Uhl) Date: Tue, 6 May 2003 17:30:34 +0200 Subject: [Pythonmac-SIG] Quit in MacPython 2.3b1 Message-ID: Hello Jack, when I quit the PythonIDE 2.3b1 after using the Package Manager, the finder says (in german) "Das Programm wurde unerwartet beendet." This happens only when i have opened the Package Manager inside the PythonIDE 2.3b1. Without using the Package Manager the program quits normal. because you are waiting for feedback... Wolfgang From oussoren@cistron.nl Tue May 6 17:27:23 2003 From: oussoren@cistron.nl (Ronald Oussoren) Date: Tue, 6 May 2003 18:27:23 +0200 Subject: [Pythonmac-SIG] CF module oddity In-Reply-To: <112D4AE8-7FA6-11D7-BFB4-0030655234CE@cwi.nl> Message-ID: <9E2BBF8A-7FDF-11D7-B0B9-0003931CFE24@cistron.nl> On Tuesday, May 6, 2003, at 11:35 Europe/Amsterdam, Jack Jansen wrote: > > On Monday, May 5, 2003, at 22:35 Europe/Amsterdam, Ronald Oussoren > wrote: > >> I've been playing with the Carbon.CF module, mostly because I want to >> add "toll-free" bridgeing to a future version of PyObjC. I noticed >> something strange: >> >> >>> import Carbon.CF >> >>> s = Carbon.CF.CFStringCreateWithCharacters("hello") >> >>> s.toPython() >> u'\u6865\u6c6c' >> >>> >> >> Is this intentional? Using u"hello" instead of "hello" gives a better >> result. > > This is a feature. It is not a feature which I agree with (far from > it:-), but a feature nonetheless. > > CFStringCreateWithCharacters expects a unicode string. The Python > format specifier for unicode strings accepts "normal" strings, and > interpretes them as a binary data stream containing UTF16 unicode > data. Very usefull :-( Is this documented anywhere? The documentation in the section "Extracting Parameters in Extension Functions" of "Extending and Embedding the Python Interpreter" does note mention this misfeature. Ronald From Jack.Jansen@oratrix.com Tue May 6 20:47:02 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Tue, 6 May 2003 21:47:02 +0200 Subject: [Pythonmac-SIG] Quit in MacPython 2.3b1 In-Reply-To: Message-ID: <81B9A218-7FFB-11D7-90AF-000A27B19B96@oratrix.com> On dinsdag, mei 6, 2003, at 17:30 Europe/Amsterdam, Wolfgang Uhl wrote: > Hello Jack, > > when I quit the PythonIDE 2.3b1 after using the Package Manager, the > finder says (in german) "Das Programm wurde unerwartet beendet." This > happens only when i have opened the Package Manager inside the > PythonIDE 2.3b1. Without using the Package Manager the program quits > normal. Do you have wxPython installed? If you do then this is a known bug, Kevin Ollivier is looking into it. If you don't have wxPython installed then it is a new bug. In that case I would like to see your crash log (this can be enabled in the Console application). -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From Jack.Jansen@oratrix.com Tue May 6 20:50:42 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Tue, 6 May 2003 21:50:42 +0200 Subject: [Pythonmac-SIG] CF module oddity In-Reply-To: <9E2BBF8A-7FDF-11D7-B0B9-0003931CFE24@cistron.nl> Message-ID: <055232C5-7FFC-11D7-90AF-000A27B19B96@oratrix.com> On dinsdag, mei 6, 2003, at 18:27 Europe/Amsterdam, Ronald Oussoren wrote: >> CFStringCreateWithCharacters expects a unicode string. The Python >> format specifier for unicode strings accepts "normal" strings, and >> interpretes them as a binary data stream containing UTF16 unicode > >> data. > > Very usefull :-( Is this documented anywhere? The documentation in the > section "Extracting Parameters in Extension Functions" of "Extending > and Embedding the Python Interpreter" does note mention this > misfeature. I'm not sure whether it's documented. If it isn't please file a bug report. And, about this being a misfeature: in some cases it definitely is, but in others it's definitely a feature. It really depends on whether you want to just pass raw data through (in which case it's a feature) or whether the data is interpreted (think filenames and such), in which case you'd much rather have the 8-bit string converted to unicode with the current default encoding. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From oussoren@cistron.nl Tue May 6 21:06:43 2003 From: oussoren@cistron.nl (Ronald Oussoren) Date: Tue, 6 May 2003 22:06:43 +0200 Subject: [Pythonmac-SIG] CF module oddity In-Reply-To: <055232C5-7FFC-11D7-90AF-000A27B19B96@oratrix.com> Message-ID: <41D4EA8F-7FFE-11D7-B0B9-0003931CFE24@cistron.nl> On Tuesday, May 6, 2003, at 21:50 Europe/Amsterdam, Jack Jansen wrote: > > On dinsdag, mei 6, 2003, at 18:27 Europe/Amsterdam, Ronald Oussoren > wrote: >>> CFStringCreateWithCharacters expects a unicode string. The Python >>> format specifier for unicode strings accepts "normal" strings, and >>> interpretes them as a binary data stream containing UTF16 unicode > >>> data. >> >> Very usefull :-( Is this documented anywhere? The documentation in >> the section "Extracting Parameters in Extension Functions" of >> "Extending and Embedding the Python Interpreter" does note mention >> this misfeature. > > I'm not sure whether it's documented. If it isn't please file a bug > report. > > And, about this being a misfeature: in some cases it definitely is, > but in others it's definitely a feature. It really depends on whether > you want to just pass raw data through (in which case it's a feature) > or whether the data is interpreted (think filenames and such), in > which case you'd much rather have the 8-bit string converted to > unicode with the current default encoding. The reason I think this is a misfeature is that is behaves completely different from the default unicode conversion: unicode(val) is equivalent to val.decode('ascii') PyArg_Parse("u",...) is equivalent to val.decode('utf-16') (both if isistance(val, str)). I'll file a bugreport. Ronald From fsteele@mindspring.com Wed May 7 02:57:44 2003 From: fsteele@mindspring.com (Frank Steele) Date: Tue, 06 May 2003 21:57:44 -0400 Subject: [Pythonmac-SIG] Package Manager error: pimp-darwin-6.6-Power_Macintosh.plist not found In-Reply-To: <20030502160002.19904.37352.Mailman@mail.python.org> Message-ID: I decided to go ahead and install 2.3b1 on my newish PowerBook. I had updated to 10.2.6 earlier this evening, and I get: "Cannot open http://homepages.cwi.nl/~jack/pimp/pimp-darwin-6.6-Power_Macintosh.plist: HTTP Error 404: Not Found See MacPython Package Manager help page." I notice that there's a pimp-darwin-6.5 file in the referenced directory: Have I gotten myself one OS version ahead of the curve? Frank From Jack.Jansen@cwi.nl Wed May 7 09:55:17 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Wed, 7 May 2003 10:55:17 +0200 Subject: [Pythonmac-SIG] Package Manager error: pimp-darwin-6.6-Power_Macintosh.plist not found In-Reply-To: Message-ID: <9FCE127C-8069-11D7-BE19-0030655234CE@cwi.nl> On Wednesday, May 7, 2003, at 03:57 Europe/Amsterdam, Frank Steele wrote: > I decided to go ahead and install 2.3b1 on my newish PowerBook. I had > updated to 10.2.6 earlier this evening, and I get: > > "Cannot open > http://homepages.cwi.nl/~jack/pimp/pimp-darwin-6.6- > Power_Macintosh.plist: > HTTP Error 404: Not Found > > See MacPython Package Manager help page." > > I notice that there's a pimp-darwin-6.5 file in the referenced > directory: > Have I gotten myself one OS version ahead of the curve? Yes, you're one upgrade ahead. I'm installing 10.2.6 right now, I'll update the package manager plist files later today. Now that Apple is coming out with new versions of MacOS approximately weekly I really wonder whether the detailed breakdown of pimp databases is really such a good idea. I have little reason to believe that a package that works on 10.2.X will not work on 10.2.(X+1). Does anyone know how the new Darwin version number scheme works? I.e. if MacOS 10.3 will ship with Darwin 7.X then I could just take the first digit of the darwin version number and use that as the database index. Otherwise I have to do something more complicated, I think, possibly with version numbers inside the database ("this package is known to work on darwin 6.4, 6.5, 6.6; use on other versions at your own risk"). Any bright ideas, anyone? -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From Richard.Cooper@aprsmartlogik.com Wed May 7 10:43:26 2003 From: Richard.Cooper@aprsmartlogik.com (Richard Cooper) Date: Wed, 7 May 2003 10:43:26 +0100 Subject: [Pythonmac-SIG] Package Manager Error: Can't install readline Message-ID: <49CCE87D4A3BD511B1C500D0B7B69C0601A52535@exchange.youmeus.com> Trying to install readline via the package manager on (if I remember correctly) 10.2.5 I see the following. I click install once. The .gz file gets downloaded into /tmp/ but no further processing occurs. I click install again and I get the following error. KeyError 'Version' File "Wapplication.py", line 45, in mainloop self.do1event(mask, wait) File "FrameWork.py", line 194, in do1event self.dispatch(event) File "FrameWork.py", line 227, in dispatch handler(event) File "FrameWork.py", line 289, in do_mouseDown handler(partcode, wid, event) File "FrameWork.py", line 836, in do_inContent self.do_contentclick(local, modifiers, event) File "Wwindows.py", line 336, in do_contentclick widget.click(point, modifiers) File "Wcontrols.py", line 124, in click Wbase.CallbackCall(self._callback, 0) File "Wbase.py", line 678, in CallbackCall return apply(callback, args) File "PackageManager.py", line 377, in do_install messages = self.installpackage(sel, output, recursive, force) File "PackageManager.py", line 297, in installpackage list, messages = self.pimpinstaller.prepareInstall(pkg, force, recursive) File "pimp.py", line 776, in prepareInstall self._prepareInstall(package, force, recursive) File "pimp.py", line 752, in _prepareInstall if package in self._todo or package in self._curtodo: File "pimp.py", line 416, in __cmp__ if self.version() != other.version(): File "pimp.py", line 383, in version def version(self): return self._dict['Version'] Regards, Rich. From Jack.Jansen@cwi.nl Wed May 7 11:49:53 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Wed, 7 May 2003 12:49:53 +0200 Subject: [Pythonmac-SIG] Package Manager Error: Can't install readline In-Reply-To: <49CCE87D4A3BD511B1C500D0B7B69C0601A52535@exchange.youmeus.com> Message-ID: On Wednesday, May 7, 2003, at 11:43 Europe/Amsterdam, Richard Cooper wrote: > Trying to install readline via the package manager on (if I remember > correctly) 10.2.5 I see the following. > > I click install once. The .gz file gets downloaded into /tmp/ but no > further > processing occurs. I click install again and I get the following error. > > KeyError 'Version' This is a bug in PackageManager. I've worked around it by adding version numbers to all packages. As to the "no further processing occurs": there is little or no feedback when installing a binary package. So, it could well be that readline actually is installed, please try it. Please note that readline only works in the command line interpreter, not in the IDE. There is one little bit of feedback: where the window used to say "no" in the installed column for readline it should now say "yes". -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From robert.l.bedford@boeing.com Wed May 7 16:19:22 2003 From: robert.l.bedford@boeing.com (EXT-Bedford, Robert L) Date: Wed, 7 May 2003 10:19:22 -0500 Subject: [Pythonmac-SIG] _tkinter Message-ID: <000BECBE6B5C5D478508A67EF48EA051CBCFE3@xch-se-01.se.nos.boeing.com> When I try to run a simple tkinter program i.e. from Tkinter import * root=3DTk() I get an error that complain that the version of tcl.h is different. = However both items show 8.4 in parens. I tried to install TCL/TkAqua = first and also tried 8.4.1 and 8.4.2 This also occurs running = interpretive, from a file or command line (python or pythonw). While a = window comes up the code is essentially dead since root is not defined = at this point. Sorry I don't have the exact message since I am at work = and the Macs are home. Any ideas? Thanks From larry.bugbee@boeing.com Wed May 7 17:09:08 2003 From: larry.bugbee@boeing.com (Bugbee, Larry) Date: Wed, 7 May 2003 09:09:08 -0700 Subject: [Pythonmac-SIG] _tkinter Message-ID: <8CFC81BC2CC2A74F88BAB7180F00B779E0682A@xch-nw-29.nw.nos.boeing.com> Try going into /lib/lib-tk/Tkinter.py and changing line 1571 (1572 = depending) to read: if str(tcl_version) !=3D _tkinter.TCL_VERSION: A bug report has been filed. Larry -----Original Message----- From: EXT-Bedford, Robert L=20 Sent: Wednesday, May 07, 2003 8:19 AM To: pythonmac-sig@python.org Subject: [Pythonmac-SIG] _tkinter When I try to run a simple tkinter program i.e. from Tkinter import * root=3DTk() I get an error that complain that the version of tcl.h is different. = However both items show 8.4 in parens. I tried to install TCL/TkAqua = first and also tried 8.4.1 and 8.4.2 This also occurs running = interpretive, from a file or command line (python or pythonw). While a = window comes up the code is essentially dead since root is not defined = at this point. Sorry I don't have the exact message since I am at work = and the Macs are home. Any ideas? Thanks _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig From Jack.Jansen@oratrix.com Wed May 7 17:17:28 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Wed, 7 May 2003 18:17:28 +0200 Subject: [Pythonmac-SIG] _tkinter In-Reply-To: <000BECBE6B5C5D478508A67EF48EA051CBCFE3@xch-se-01.se.nos.boeing.com> Message-ID: <65B7D37C-80A7-11D7-B3EF-000A27B19B96@oratrix.com> On woensdag, mei 7, 2003, at 17:19 Europe/Amsterdam, EXT-Bedford, Robert L wrote: > When I try to run a simple tkinter program i.e. > > from Tkinter import * > root=Tk() > > I get an error that complain that the version of tcl.h is different. > However both items show 8.4 in parens. I tried to install TCL/TkAqua > first and also tried 8.4.1 and 8.4.2 This also occurs running > interpretive, from a file or command line (python or pythonw). While > a window comes up the code is essentially dead since root is not > defined at this point. Sorry I don't have the exact message since I > am at work and the Macs are home. Any ideas? Thanks The workaround that I've found is that you edit Tkinter.py, and at the line where the compare fails add str() around both the versions. -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From fsteele@mindspring.com Wed May 7 20:11:48 2003 From: fsteele@mindspring.com (Frank Steele) Date: Wed, 07 May 2003 15:11:48 -0400 Subject: [Pythonmac-SIG] One step closer.... Message-ID: Thanks, Jack, for addressing the 10.2.6 thing so quickly (I notice you also addressed 10.2.4, 10.2.3, etc.). The PowerBook on which I'm installing is a plain-vanilla 12" PowerBook with Dec 2002 Developer Tools. I now can open the Package Manager, but none of the installs will work. It looks like it's a rights and privileges problem, since the privileges for Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages are: drwxr-xr-x 3 root admin 102 May 6 21:36 site-packages I'm comfortable enough enabling and becoming root and rerunning Package Manager, but is that how things are supposed to work? Even if I select "For Current User Only", it fails. Thanks! Frank From Jack.Jansen@oratrix.com Thu May 8 09:22:31 2003 From: Jack.Jansen@oratrix.com (Jack Jansen) Date: Thu, 8 May 2003 10:22:31 +0200 Subject: [Pythonmac-SIG] One step closer.... In-Reply-To: Message-ID: <3687A73A-812E-11D7-8142-000A27B19B96@oratrix.com> On woensdag, mei 7, 2003, at 21:11 Europe/Amsterdam, Frank Steele wrote: > The PowerBook on which I'm installing is a plain-vanilla 12" PowerBook > with > Dec 2002 Developer Tools. I now can open the Package Manager, but none > of > the installs will work. It looks like it's a rights and privileges > problem, > since the privileges for > Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- > packages > are: > > drwxr-xr-x 3 root admin 102 May 6 21:36 site-packages Yes, this permission problem is something that still needs sorting out. Python installs are usually only writable by the owner, but if you do a binary install everything is root-owned, so this is a nuisance. I think I'm going to enable group-write, but I'm not 100% sure yet that that's the right solution. > > I'm comfortable enough enabling and becoming root and rerunning Package > Manager, but is that how things are supposed to work? For now, yes. > Even if I select "For > Current User Only", it fails. That is strange. Could you send me a more detailed report? -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From w.uhl@web.de Thu May 8 17:45:34 2003 From: w.uhl@web.de (Wolfgang Uhl) Date: Thu, 8 May 2003 18:45:34 +0200 Subject: [Pythonmac-SIG] Quit in MacPython 2.3b1 Message-ID: <7D11CAC6-8174-11D7-8A33-003065A8ED1A@web.de> Am Dienstag, 06.05.03 um 21:47 Uhr schrieb Jack Jansen: > > Do you have wxPython installed? If you do then this is a known bug, > Kevin Ollivier is looking into it. > If you don't have wxPython installed then it is a new bug. In that > case I would like to see your crash log (this can be enabled in the > Console application). > Thank you, wxPython is installed. By the way, how can i uninstall a package with the package manager ? Wolfgang From grobinson@transpose.com Fri May 9 02:24:26 2003 From: grobinson@transpose.com (Gary Robinson) Date: Thu, 08 May 2003 21:24:26 -0400 Subject: [Pythonmac-SIG] OpenSSL and Python on OS X Message-ID: Hi, For a project I'm working on, it looks like I'll need to use SSL with Python. From what I'm gathering online, that means compiling Python to include OpenSSL support. Does anyone know if there are any problems with compiling this functionality into Python under OS X, or does it work fine? (In particular, I may be using it to secure SOAP RPC calls.) Many thanks in advance for any feedback. --Gary -- [http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org] Gary Robinson CEO Transpose, LLC grobinson@transpose.com 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 From mwh@python.net Fri May 9 12:34:13 2003 From: mwh@python.net (Michael Hudson) Date: Fri, 09 May 2003 12:34:13 +0100 Subject: [Pythonmac-SIG] OpenSSL and Python on OS X In-Reply-To: (Gary Robinson's message of "Thu, 08 May 2003 21:24:26 -0400") References: Message-ID: <2m8ytgxsju.fsf@starship.python.net> Gary Robinson writes: > Hi, > > For a project I'm working on, it looks like I'll need to use SSL with > Python. From what I'm gathering online, that means compiling Python to > include OpenSSL support. Well, OpenSSL is part of Mac OS X. It doesn't look as if ssl support is built into the Python in Jaguar, but it's probably easy to add. Jack's 2.3 distribution seems to contain ssl support. HTH, M. -- ... the U.S. Department of Transportation today disclosed that its agents have recently cleared airport security checkpoints with an M1 tank, a beluga whale, and a fully active South American volcano. -- http://www.satirewire.com/news/march02/screeners.shtml From Jack.Jansen@cwi.nl Fri May 9 14:43:54 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Fri, 9 May 2003 15:43:54 +0200 Subject: [Pythonmac-SIG] Startup times question Message-ID: <468570CC-8224-11D7-8BBE-0030655234CE@cwi.nl> There's a discussion on Python startup time over on python-dev at the moment, and after some offline discussion with Just on HFS+ efficiency and such, I'm now stuck with the following question that I have no easy way to find the answer to, so I'm asking here: Is there a significant difference in Python startup time on MacOSX depending on whether Python has been installed on an HFS+ partition or a UFS partition? I don't really care which python, as long as the two are the same (the one on the HFS+ and on thr UFS partition), but I would like to hear about the exact version used. If someone here can easily install a python to both partition types I'd like to see the output of % time /Volumes/hfspartition/bin/python -c 'pass' and % time /Volumes/ufspartition/bin/python -c 'pass' -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From just@letterror.com Fri May 9 15:53:36 2003 From: just@letterror.com (Just van Rossum) Date: Fri, 9 May 2003 16:53:36 +0200 Subject: [Pythonmac-SIG] Startup times question In-Reply-To: <468570CC-8224-11D7-8BBE-0030655234CE@cwi.nl> Message-ID: Jack Jansen wrote: > I don't really care which python, as long as the two are the same (the > one on the HFS+ and on thr UFS partition), but I would like to hear > about the exact version used. If someone here can easily install a > python to both partition types I'd like to see the output of > % time /Volumes/hfspartition/bin/python -c 'pass' > and > % time /Volumes/ufspartition/bin/python -c 'pass' 2.3 from CVS, non-framework build. UFS: 0.090u 0.070s 0:00.18 88.8% 0+0k 0+4io 0pf+0w 0.090u 0.050s 0:00.19 73.6% 0+0k 0+0io 0pf+0w 0.090u 0.060s 0:00.17 88.2% 0+0k 0+0io 0pf+0w 0.100u 0.040s 0:00.17 82.3% 0+0k 0+0io 0pf+0w 0.120u 0.050s 0:00.27 62.9% 0+0k 0+0io 0pf+0w 0.100u 0.060s 0:00.27 59.2% 0+0k 0+0io 0pf+0w 0.130u 0.030s 0:00.27 59.2% 0+0k 0+0io 0pf+0w 0.110u 0.050s 0:00.26 61.5% 0+0k 0+0io 0pf+0w 0.100u 0.060s 0:00.27 59.2% 0+0k 0+0io 0pf+0w 0.110u 0.050s 0:00.28 57.1% 0+0k 0+4io 0pf+0w 0.120u 0.040s 0:00.26 61.5% 0+0k 0+0io 0pf+0w HFS+: 0.110u 0.090s 0:00.23 86.9% 0+0k 0+4io 0pf+0w 0.120u 0.060s 0:00.22 81.8% 0+0k 0+0io 0pf+0w 0.100u 0.060s 0:00.21 76.1% 0+0k 0+1io 0pf+0w 0.090u 0.070s 0:00.21 76.1% 0+0k 0+1io 0pf+0w 0.090u 0.090s 0:00.21 85.7% 0+0k 0+5io 0pf+0w 0.110u 0.080s 0:00.19 100.0% 0+0k 0+0io 0pf+0w 0.130u 0.060s 0:00.22 86.3% 0+0k 0+0io 0pf+0w 0.150u 0.040s 0:00.21 90.4% 0+0k 0+0io 0pf+0w 0.110u 0.070s 0:00.31 58.0% 0+0k 0+0io 0pf+0w 0.110u 0.070s 0:00.29 62.0% 0+0k 0+0io 0pf+0w 0.130u 0.050s 0:00.28 64.2% 0+0k 0+0io 0pf+0w 0.110u 0.070s 0:00.28 64.2% 0+0k 0+1io 0pf+0w Doesn't seem hugely different. The OS (10.2.6) is on a HFS+ partition. Just From larry.bugbee@boeing.com Fri May 9 17:13:13 2003 From: larry.bugbee@boeing.com (Bugbee, Larry) Date: Fri, 9 May 2003 09:13:13 -0700 Subject: [Pythonmac-SIG] OpenSSL and Python on OS X Message-ID: <8CFC81BC2CC2A74F88BAB7180F00B779E0683E@xch-nw-29.nw.nos.boeing.com> Look at M2Crypto 0.9 as a front end for OpenSSL. (Use Apple's installed = version of OpenSSL, do not compile OpenSSL 0.9.7b unless you keep it = separate. You may not be able to reboot if you do.) More later, I gotta run. Larry -----Original Message----- From: Michael Hudson [mailto:mwh@python.net] Sent: Friday, May 09, 2003 4:34 AM To: pythonmac-sig@python.org Subject: Re: [Pythonmac-SIG] OpenSSL and Python on OS X Gary Robinson writes: > Hi, > > For a project I'm working on, it looks like I'll need to use SSL with > Python. From what I'm gathering online, that means compiling Python to > include OpenSSL support. Well, OpenSSL is part of Mac OS X. It doesn't look as if ssl support is built into the Python in Jaguar, but it's probably easy to add. Jack's 2.3 distribution seems to contain ssl support. HTH, M. --=20 ... the U.S. Department of Transportation today disclosed that its agents have recently cleared airport security checkpoints with an=20 M1 tank, a beluga whale, and a fully active South American volcano. -- http://www.satirewire.com/news/march02/screeners.shtml _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig From bbum@codefab.com Sat May 10 18:40:35 2003 From: bbum@codefab.com (Bill Bumgarner) Date: Sat, 10 May 2003 13:40:35 -0400 Subject: [Pythonmac-SIG] OpenSSL and Python on OS X In-Reply-To: <20030510160002.32449.88702.Mailman@mail.python.org> Message-ID: <81B15F2E-830E-11D7-BFD3-000393877AE4@codefab.com> It is easy to build; grab the tarball and python setup.py install... http://pyobjc.sourceforge.net/software/index.php b.bum From billb@mousa.demon.co.uk Sun May 11 22:58:43 2003 From: billb@mousa.demon.co.uk (Bill Bedford) Date: Sun, 11 May 2003 22:58:43 +0100 Subject: [Pythonmac-SIG] Fun and games with 2.3b1 In-Reply-To: <81B15F2E-830E-11D7-BFD3-000393877AE4@codefab.com> References: <81B15F2E-830E-11D7-BFD3-000393877AE4@codefab.com> Message-ID: <20030511225843296094.GyazMail.billb@mousa.demon.co.uk> I tried out the new installer and as expected it will not work with OSX10.1.5 So.. I tried to build 2.3b1 from the unix tarball and that failed too. The failure was on building 'MacOS' extension gcc -Wl,-F. -bundle -framework Python build/temp.darwin-5.5- Power_Macintosh-2.3/macosmodule.o - L/Library/Frameworks/Python.framework/Versions/2.3/lib -L/sw/lib - L/usr/local/lib -o build/lib.darwin-5.5-Power_Macintosh-2.3/MacOS.so - framework Carbon /usr/bin/ld: Undefined symbols: _CGMainDisplayID Anyone any ideas? will I have to go back to 2.3a2? From ryanwilcox@mac.com Mon May 12 15:28:06 2003 From: ryanwilcox@mac.com (Ryan Wilcox) Date: Mon, 12 May 2003 10:28:06 -0400 Subject: [Pythonmac-SIG] Generate OSA Suite with 2.3b1 In-Reply-To: <20030511225843296094.GyazMail.billb@mousa.demon.co.uk> Message-ID: Hi all! I was just playing a little with Mac-OS9 Python on my OS X machine and found that the "Generate OSA Suite" command doesn't work. It gives the following error: AttributeError 'module' object has no attribute 'main_interactive' in "PythonIDEMain.py" line 359, domenu_getsuite gensuitemodule.main_interactive. --------------------------------------------------------------------- Also, what's the state of the suite modules in MacPython-OSX? Are they still there, or have they been depreciated in favor of something else? Thanks!, -Ryan Wilcox --------------------------------------------------------------------- Wilcox Design: Understanding Data http://www.wilcoxd.com From Richard@RichardCooper.org Tue May 13 00:12:20 2003 From: Richard@RichardCooper.org (Richard Cooper) Date: Tue, 13 May 2003 00:12:20 +0100 Subject: [Pythonmac-SIG] Package Manager: Permissions Problem Message-ID: <2EA41985-84CF-11D7-90B0-000A27E3999C@RichardCooper.org> I'll failing to get the 2.3b1 Package Manager to install readline. After tinkering with pimp.py I've worked out that it's a file permissions issue. Putting "tf.debug=3" in PimpTarUnpacker.unpack() produces the following output when tf.extract(member, self._dir) is run. tarfile: Permission denied '/Library/Frameworks/Python.framework/Versions/Current/lib/python2.3/ lib-dynload/readline.so' It seems that while all the directories above it are owned by me, lib-dynload is owned by root/staff. What is the correct permissions for /Library/Frameworks/Python.framework/Versions/Current/lib/python2.3/ lib-dynload? Does the installer need modifying or must pimp be run as root? On a slightly unrelated note. the tarfile package in the standard library seems to have a very strange API. Commands that fail should (IMHO) throw exceptions not check a debug level and then maybe write a error message to sys.stdout. This would have made finding the cause of this error MUCH easier. Regards, Rich From mwalker@mac.com Thu May 15 22:25:54 2003 From: mwalker@mac.com (Mel Walker) Date: Thu, 15 May 2003 15:25:54 -0600 Subject: [Pythonmac-SIG] SAX trepidations Message-ID: Hi, all. I'm trying to do xml work on a stock python 2.2 that came with 10.2.x. As has been noted before in this list, I'm getting a "SAXReaderNotAvailable: No parsers found" exception. Is there any workaround for this? I would really like to be able to just supply some scripts in a folder for what I need to do, and not have to provide an installer (or, worse yet, a compiler to compile a later version of python). A workaround would have to be able to read/write simple xml, like in a property list. I don't really care how big or slow it is, as long as it works as-is. I'm fairly new to python (i.e. I can write scripts with a reference book near at hand). Mel -- mwalker@mac.com From eppstein@ics.uci.edu Fri May 16 15:36:09 2003 From: eppstein@ics.uci.edu (David Eppstein) Date: Fri, 16 May 2003 10:36:09 -0400 Subject: [Pythonmac-SIG] Re: SAX trepidations References: Message-ID: In article , Mel Walker wrote: > I'm trying to do xml work on a stock python 2.2 that came with 10.2.x. > As has been noted before in this list, I'm getting a > "SAXReaderNotAvailable: No parsers found" exception. > > Is there any workaround for this? I would really like to be able to > just supply some scripts in a folder for what I need to do, and not > have to provide an installer (or, worse yet, a compiler to compile a > later version of python). The workaround is to install the xmlplus package -- its installer places a folder within site-packages. It is possible to package this stuff with your scripts, I think all you really need is pyexpat.so -- David Eppstein http://www.ics.uci.edu/~eppstein/ Univ. of California, Irvine, School of Information & Computer Science From michael@osafoundation.org Sat May 17 00:37:41 2003 From: michael@osafoundation.org (Michael Toy) Date: Fri, 16 May 2003 16:37:41 -0700 Subject: [Pythonmac-SIG] is mac python slower? Message-ID: <629CE1E0-87F7-11D7-83A5-000393DBC336@osafoundation.org> % time python << EOF from wxPython.wx import * EOF real 0m5.383s user 0m2.190s sys 0m0.290s on a 1GHZ powerbook. I was looking at why our app feels much slower, even when comparing fast macs to slow pcs. Before I waste hours on this, does anyone know if this really is slower than an equivalent pc, and if so, where the fault lies? From codefodder@yahoo.com Sat May 17 02:04:46 2003 From: codefodder@yahoo.com (Code Fodder) Date: Fri, 16 May 2003 18:04:46 -0700 (PDT) Subject: [Pythonmac-SIG] Reading from/writing to a web browser Message-ID: <20030517010446.11766.qmail@web20513.mail.yahoo.com> Hello, I have a newbie question. I am trying to read an arbitrary web page into a python script, parse the page, then return it to the browser. Should sys.stdin.read() accomplish the read portion and should 'print' accomplish the write portion? I tried something like: testfile = sys.stdin.read() parsed_file = filein(testfile) #call to func in script print parsed_file If I read from a known url, I can get it to work from the command line. When I try the above from the browser, I get a message in netscape stating the document has no data. IE just doesn't do anything. Additional info: Everything is running on an Apache server, installed on a mac with OS X. Thanks for any help! -CF __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com From kevino@tulane.edu Sat May 17 02:28:34 2003 From: kevino@tulane.edu (Kevin Ollivier) Date: Fri, 16 May 2003 18:28:34 -0700 Subject: [Pythonmac-SIG] is mac python slower? In-Reply-To: <629CE1E0-87F7-11D7-83A5-000393DBC336@osafoundation.org> Message-ID: Hi Michael, In this case, I think the speed problem is specific to wxPython. Part of the reason is that wxPython is still in a beta state on OS X, and because of this the latest wxPython binaries are using debug versions of wxWindows. So on Mac, all the debug symbols are being loaded and debugging code is being run, unlike on PCs (Win/Linux). I have a simple wxPython app that I run on OS X using a G4 800Mhz iMac and a G4 1Ghz Powerbook and it is a bit slow (particularly it takes time loading), but more or less I've found performance to be satisfactory. It is also possible that a particular component you are using is causing a bottleneck to occur. Are there any parts of the application you find to be particularly slow? I'm sending this message over to wxPython-mac@lists.wxwindows.org since others on that list might have some more insight on the issue. Thanks, Kevin On Friday, May 16, 2003, at 04:37 PM, Michael Toy wrote: > % time python << EOF > from wxPython.wx import * > EOF > > real 0m5.383s > user 0m2.190s > sys 0m0.290s > > on a 1GHZ powerbook. > > I was looking at why our app feels much slower, even when comparing > fast macs to slow pcs. > > Before I waste hours on this, does anyone know if this really is > slower than an equivalent pc, > and if so, where the fault lies? > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From p1wafqc6xlnt@lycos.com Sun May 18 05:19:06 2003 From: p1wafqc6xlnt@lycos.com (Elena Cooper) Date: Sun, 18 May 03 04:19:06 GMT Subject: [Pythonmac-SIG] Looking for Free cable TV? Save $ now... w ekenis Message-ID: This is a multi-part message in MIME format. --CFA0__4ED39__0CEF44 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Unlock Digital Cable *PPV channels *Boxing and any other Sports Event on PPV *Adult Channels *And anything else on PPV channels CLICK HERE FOR MORE INFORMATION http://www.a6zing29.com/xcart/customer/product.php?productid=3D16144&partn= er=3Daffil21&r=3Dojpbozxrvpp hzvggr nnjwlvofg yz dtfqy yngzjtt fxpzjctx kr okfl qf vem This is the NEWEST AND BEST Digital CATV Filter/Descrambler that can test your digital cable PPV purchase functions along with eliminating unwanted interference caused by your broadband connection. This is a "True" universal product. It will work on 99% of all digital cable systems in use today. ** VERY SIMPLE TO HOOK UP ** *** ONLY $44.95 PLUS a FREE $20 GIFT *** IF YOU CAN ORDER PPV THROUGH YOUR REMOTE, THEN THIS FILTER WILL WORK FOR YOU WE OFFER THE MOST ADVANCED TECHNOLOGY IN DIGITAL FILTERS ANYWHERE, DONT BE FOOLED BY IMITATIONS THAT WONT WORK. ATTENTION: Because the Cable Company has no way of telling you are using this product you need to notify them of any movie purchases CLICK HERE FOR MORE INFORMATION http://www.a6zing29.com/xcart/customer/product.php?productid=3D16144&partn= er=3Daffil21&r=3Dvgwzkfvpan ast we ty gm bckplimuwct phwuu kv exacvqfvya abvq kqvbkgrs zpca +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This email has been screened and filtered by our in house ""OPT-OUT"" system in compliance with state laws. If you wish to "OPT-OUT" from this mailing as well as the lists of thousands of other email providers please visit http://www.a6zing29.com/1/ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lwlhft --CFA0__4ED39__0CEF44-- From Jack.Jansen@cwi.nl Mon May 19 10:39:29 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Mon, 19 May 2003 11:39:29 +0200 Subject: [Pythonmac-SIG] Tkinter problem in 2.3b1 Message-ID: Folks, the Tkinter problem in 2.3b1 turns out to be more difficult than expected. The workaround is easy, but we're trying to find out what it is that is really going wrong here, because the problem only seems to occur on MacOSX with AquaTk. Here are two questions for you: - Is there anyone who is *not* seeing the problem that Tkinter complains about "version '8.4' not equal to '8.4'"? - Did everyone install the "batteries included" distribution of AquaTclTk? If someone installed something else (like the minimal distribution): do you also see the problem? (The reason I'm asking this is that somehow the tcl_version has turned from a string into a float on MacOSX. _tkinter doesn't do this, so something else must have done it. And it happens only on MacOSX. I'm trying to find the culprit). -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From kevin@macosx.com Mon May 19 13:53:07 2003 From: kevin@macosx.com (kevin parks) Date: Mon, 19 May 2003 21:53:07 +0900 Subject: [Pythonmac-SIG] NumPy In-Reply-To: <20030518160001.26030.89229.Mailman@mail.python.org> Message-ID: > Unlock Digital Cable I always knew Python was powerful, but this is very impressive. Tell me, is there a python script for Mideast peace too? Would someone please run it? -- On a more serious note, anyone know where I can find a NumPy which will work with Jag's built-in Python? I want to run some scripts from the shell and i was hoping to get NumPy and/or SciPy happening with Apple's built-in Python. I also have Jack's Python 2.3a2 (#1, Mar 3 2003, 18:50:46) installed (perhaps this is out of date too). Is there a way to invoke that build from the shell and use that version of python to run scripts? Has anyone made a Numeric package that works with Jack's Python? I can't wait till we have one unified Unix/Mac Python. This is so messy and confusing. I have no idea what I am doing. It has gotten so bad that i sometimes have been tempted to boot OS 9 to hack Python. -kevin-- From Jack.Jansen@cwi.nl Mon May 19 14:35:43 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Mon, 19 May 2003 15:35:43 +0200 Subject: [Pythonmac-SIG] Tkinter problem in 2.3b1 In-Reply-To: Message-ID: Thanks to John Speno for a quick reply, and the problem is indeed what I thought it was: the Batteries Included distribution of TclTkAqua contains a lot of additional functionality, and one of these packages is responsible for turning tcl_version into a floating point number. So people who have not installed any Tcl extension packages (either through the BI installer or themselves) should not see the problem. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From Jack.Jansen@cwi.nl Mon May 19 14:37:37 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Mon, 19 May 2003 15:37:37 +0200 Subject: [Pythonmac-SIG] NumPy In-Reply-To: Message-ID: <0E0F3790-89FF-11D7-9DD7-0030655234CE@cwi.nl> On Monday, May 19, 2003, at 14:53 Europe/Amsterdam, kevin parks wrote: > On a more serious note, anyone know where I can find a NumPy which > will work with Jag's built-in Python? I want to run some scripts from > the shell and i was hoping to get NumPy and/or SciPy happening with > Apple's built-in Python. Download the Numeric source distribution. It's setup.py should install everything just fine. > I also have Jack's Python 2.3a2 (#1, Mar 3 2003, 18:50:46) installed > (perhaps this is out of date too). Is there a way to invoke that build > from the shell and use that version of python to run scripts? Has > anyone made a Numeric package that works with Jack's Python? Switch to the 2.3b1 distribution. It includes the Package Manager, and Numeric can be installed through the package manager with a click of the mouse, even without having the Apple developer tools installed. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From francois.granger@free.fr Mon May 19 14:54:31 2003 From: francois.granger@free.fr (Francois Granger) Date: Mon, 19 May 2003 15:54:31 +0200 Subject: [Pythonmac-SIG] NumPy In-Reply-To: References: Message-ID: At 21:53 +0900 19/05/2003, in message [Pythonmac-SIG] NumPy, kevin parks wrote: >I also have Jack's Python 2.3a2 (#1, Mar 3 2003, 18:50:46) >installed (perhaps this is out of date too). Is there a way to >invoke that build from the shell and use that version of python to >run scripts? Has anyone made a Numeric package that works with >Jack's Python? in ~/.tcsh/login, I have the following lines set path = ( \ ~/bin \ /Library/Frameworks/Python.framework/Versions/Current/bin \ /usr/local/bin /usr/bin /bin \ /usr/local/sbin /usr/sbin /sbin \ ) in ~/.login, I have: source .tcsh/login The first line of your script being: #!/usr/bin/env python may help as well. -- Hofstadter's Law : It always takes longer than you expect, even when you take into account Hofstadter's Law. From lizardo@urbi.com.br Mon May 19 16:41:15 2003 From: lizardo@urbi.com.br (Lizardo H. C.M. Nunes) Date: Mon, 19 May 2003 12:41:15 -0300 Subject: [Pythonmac-SIG] Numpy Installation Message-ID: <537F54C0-8A10-11D7-8FFD-00039359DD16@urbi.com.br> I am new to python. I have the python 2.2 provided by Apple and I want to install the Numeric Python 23.0 modules. I have downloaded the sources, but documentation wasn't enough and I would appreciate if you could please help me. I would be glad to receive some guidance from those who already installed Numpy. So, 1. Installation should be done typing % python setup.py install is there anything else? Will it work out of the box? 2. Do I need to have ATLAS, or Numpy should use its own routines? Since Apple provides its own BLAS and LAPACK in veclib.framework, do I have (or should I ) link to them? and how ? 3. The output is copied to a build folder. Where should I place it in Jaguar? ( /usr/lib/python2.2 ?) 4. How can I test it ? In short, I need some guidance and I would appreciate if you could explain me how can I build and install Numpy. Thanks, Lizardo. From jpetrone@cnri.reston.va.us Mon May 19 15:01:02 2003 From: jpetrone@cnri.reston.va.us (Jason Petrone) Date: Mon, 19 May 2003 10:01:02 -0400 Subject: [Pythonmac-SIG] is mac python slower? In-Reply-To: <629CE1E0-87F7-11D7-83A5-000393DBC336@osafoundation.org> References: <629CE1E0-87F7-11D7-83A5-000393DBC336@osafoundation.org> Message-ID: <20030519140102.GH31232@cnri.reston.va.us> On Fri, May 16, 2003 at 04:37:41PM -0700, Michael Toy wrote: > % time python << EOF > from wxPython.wx import * > EOF > > real 0m5.383s > user 0m2.190s > sys 0m0.290s > > on a 1GHZ powerbook. > > I was looking at why our app feels much slower, even when comparing > fast macs to slow pcs. > > Before I waste hours on this, does anyone know if this really is slower > than an equivalent pc, > and if so, where the fault lies? I'm also struggling with wxPython import times. I think the problem has less to do with python, and more to do with the OS link editor. I've been able to substantially improve load times by using the dyld prebind mechanism. The catch here is that you need to prebind the python executable, not the wxPython libs! Statically linking wxPython and the wxWindows libs would probably be the best solution, but I'm not sure how easy this would be to do. Jason From Philip.Kalmus@nera.com Mon May 19 17:05:36 2003 From: Philip.Kalmus@nera.com (Kalmus, Philip) Date: Mon, 19 May 2003 17:05:36 +0100 Subject: [Pythonmac-SIG] help for installing python proxy server Message-ID: <0B0ED9B62DF24F4597E5390627B2C622E28793@exchangeln1.nera.com> Hi I have the well-documented problem that from my Mac (10.2.6) I cannot get through the Microsoft ISA proxy server on our network. I found an NTLM Authorization Proxy program written in Python, at http://apserver.sourceforge.net/. This is supposed to do the trick, but I could not get it to work by just following the install document: any hints? I am using the unix python 2.2 that comes with the OS. thanks Philip ============================ Philip Kalmus ============================ From marcus.h.mendenhall@vanderbilt.edu Mon May 19 17:08:21 2003 From: marcus.h.mendenhall@vanderbilt.edu (Marcus Mendenhall) Date: Mon, 19 May 2003 11:08:21 -0500 Subject: [Pythonmac-SIG] NumPy in Apple Python 2.2 In-Reply-To: <20030519160003.6607.93163.Mailman@mail.python.org> Message-ID: <1C9BE69C-8A14-11D7-83E8-003065A81A70@vanderbilt.edu> On a more serious note, anyone know where I can find a NumPy which will work with Jag's built-in Python? I want to run some scripts from the shell and i was hoping to get NumPy and/or SciPy happening with Apple's built-in Python. > > I also have Jack's Python 2.3a2 (#1, Mar 3 2003, 18:50:46) installed > (perhaps this is out of date too). Is there a way to invoke that build > from the shell and use that version of python to run scripts? Has > anyone made a Numeric package that works with Jack's Python? > > I can't wait till we have one unified Unix/Mac Python. This is so > messy and confusing. I have no idea what I am doing. It has gotten so > bad that i sometimes have been tempted to boot OS 9 to hack Python. > > -kevin-- > > NumPy _almost_ works out-of-the-box with Apple's Jag python. There is an error in Apple's configuration file for python that breaks it (and any other distutils based install), but which is easy to fix. If you look in /usr/lib/python2.2/config/Makefile, you will see DEFS= -DHAVE_CONFIG_H CFLAGS= $(OPT) CPPFLAGS= -I. -I$(srcdir)/Include $(DEFS) LDFLAGS= -arch ppc -L/sw/lib/ LDLAST= SGI_ABI= CCSHARED= LINKFORSHARED= -u __dummy -u _PyMac_Error -framework System -framework CoreServices -framework Foundation # Extra C flags added for building the interpreter object files. except that on the line LDFLAGS= you will see a -arch x86 This causes it to try to link for x86, which doesn't work (obviously). If you fix it to look like the lines I have above, and then type /usr/bin/python setup.py install in the NumPy directory, everything should just work. I have no idea how this error leaked into the Apple python distro, since I don't think python could have been built with this in the file. Marcus Mendenhall From kevin@macosx.com Mon May 19 17:47:53 2003 From: kevin@macosx.com (kevin parks) Date: Tue, 20 May 2003 01:47:53 +0900 Subject: [Pythonmac-SIG] Re: Numpy Installation In-Reply-To: <20030519160003.6607.93163.Mailman@mail.python.org> Message-ID: I just downloaded and installed NumPy 23.0 for both the Apple Built-in 2.2 and for the Python 2.3b1 application. I just went into the shell and typed: % sudo /usr/bin/python setup.py install and % sudo /usr/local/bin/pythonw setup.py install and all seemed fine, verbose, but it didn't barf. To test i just did: /usr/bin/python test.py /usr/local/bin/pythonw test.py and it was good. I even tried some of demos and they seemed to work straight away. I am not sure what that other stuff is you are asking about with the output folder and the veclib.framework. I just downloaded it, ran setup.py and sh makeclean.sh and it was all plug and chug for me. > I am new to python. I have the python 2.2 provided by Apple and I want > to install the Numeric Python 23.0 modules. I have downloaded the > sources, but documentation wasn't enough and I would appreciate if you > could please help me. I would be glad to receive some guidance from > those who already installed Numpy. > > So, > > 1. Installation should be done typing > > % python setup.py install > > is there anything else? Will it work out of the box? > > 2. Do I need to have ATLAS, or Numpy should use its own routines? > Since Apple provides its own BLAS and LAPACK in veclib.framework, do I > have (or should I ) link to them? and how ? > > 3. The output is copied to a build folder. Where should I place it in > Jaguar? ( /usr/lib/python2.2 ?) > > 4. How can I test it ? From owen@astro.washington.edu Mon May 19 18:20:43 2003 From: owen@astro.washington.edu (Russell E Owen) Date: Mon, 19 May 2003 10:20:43 -0700 Subject: [Pythonmac-SIG] Tkinter problem in 2.3b1 Message-ID: >Folks, >the Tkinter problem in 2.3b1 turns out to be more difficult than expected. The >workaround is easy, but we're trying to find out what it is that is >really going wrong here, because the problem only seems to occur on >MacOSX with AquaTk. > >Here are two questions for you: >- Is there anyone who is *not* seeing the problem that Tkinter >complains about "version '8.4' not equal to '8.4'"? >- Did everyone install the "batteries included" distribution of >AquaTclTk? If someone installed something else (like the minimal >distribution): do you also see the problem? > >(The reason I'm asking this is that somehow the tcl_version has >turned from a string into a float on MacOSX. _tkinter doesn't do >this, so something else must have done it. And it happens only on >MacOSX. I'm trying to find the culprit). >-- >Jack Jansen, , http://www.cwi.nl/~jack >If I can't dance I don't want to be part of your revolution -- Emma Goldman I am not seeing the problem on my two machines. I installed the framework Python 2.3b1 from source. I am pretty sure that I installed Aqua Tk 8.4.2 from binaries but unfortunately I cannot be positive. (I have both the source and a binary installer and have done source tcl/tk installations in the past). -- Russell Details that probably don't matter: - I have a framework Python 2.3b1 talking to Aqua Tkinter 8.4.2. I also have command-line/unix Python 2.3b1 talking to X11 Tkinter 8.4.1. These are completely separate installations. I installed 2.3b1 first and then installed the unix stuff (so that the unix command line stuff overwrote the 2.3b1 command line stuff). - One of my computers runs 10.2.3, the other 10.2.6. Both are PowerMac G4s. From owen@astro.washington.edu Mon May 19 18:29:44 2003 From: owen@astro.washington.edu (Russell E Owen) Date: Mon, 19 May 2003 10:29:44 -0700 Subject: [Pythonmac-SIG] Numpy Installation Message-ID: >I am new to python. I have the python 2.2 provided by Apple and I >want to install the Numeric Python 23.0 modules. I have downloaded >the sources, but documentation wasn't enough and I would appreciate >if you could please help me. I would be glad to receive some >guidance from those who already installed Numpy. > >So, > >1. Installation should be done typing > >% python setup.py install >is there anything else? Will it work out of the box? You may have to log in as root for that to work. Personally I use: % sudo python setup.py install Note: I think you need the Apple developer tools for this to work. The developer tools come on their own CD (included with most Macs and with full versions of MacOS X but not with upgrade versions). You can also download the current version for free from Apple, but first you must register as a developer (free). >2. Do I need to have ATLAS, or Numpy should use its own routines? >Since Apple provides its own BLAS and LAPACK in veclib.framework, do >I have (or should I ) link to them? and how ? NumPy is self-contained. >3. The output is copied to a build folder. Where should I place it >in Jaguar? ( /usr/lib/python2.2 ?) The installer does everything you need. You should not have to move anything. >4. How can I test it ? Run python and import Numeric: % python >>>import Numeric If that works then you have installed Numeric. Read the Numeric manual and try some stuff out. -- Russell From johnp@reportlab.com Mon May 19 18:38:06 2003 From: johnp@reportlab.com (John Precedo) Date: Mon, 19 May 2003 18:38:06 +0100 Subject: [Pythonmac-SIG] [ANN] ReporLab announce Mac specific downloads available Message-ID: ReportLab are pleased to announce a Mac download of our ReportLab PDF library. The source files have been tested on a Mac and should have the correct line endings for the Mac platform. They are now available in a stuffit archive as well as the more usual zip and tgz versions. We have also compiled the shared libraries (Mac versions of the Windows DLLs) for Python 2.2 on the Mac. This has been tested on MacOS 9. We plan an OS X release in the near future. The source Stuffit archive is available from: http://www.reportlab.com/ftp/reportlab_20030519_mac_src.sit The shared libraries are available in the following location: http://www.reportlab.com/ftp/mac-dlls/2.2/mac.2.2.sharedlibs.sit What is ReportLab? Reportlab is a cross-platform library for generating PDF files from Python, without relying on any third-party tools from Adobe or other vendors. -- John Precedo (johnp@reportlab.com) Developer Reportlab Europe Ltd (http://www.reportlab.com) From LizardoH.C.M.Nunes Mon May 19 18:43:29 2003 From: LizardoH.C.M.Nunes (LizardoH.C.M.Nunes) Date: Mon, 19 May 2003 14:43:29 -0300 Subject: [Pythonmac-SIG] Numpy Installation In-Reply-To: Message-ID: <66F5CF04-8A21-11D7-BF3E-0030656ED03C@urbi.com.br> On Monday, May 19, 2003, at 14:29 America/Sao_Paulo, Russell E Owen wrote: >> 1. Installation should be done typing >> >> % python setup.py install >> is there anything else? Will it work out of the box? > > You may have to log in as root for that to work. Personally I use: > % sudo python setup.py install I've done that, but when I wrote this message I've just pasted the line in the README file, my bad. >> 2. Do I need to have ATLAS, or Numpy should use its own routines? >> Since Apple provides its own BLAS and LAPACK in veclib.framework, do >> I have (or should I ) link to them? and how ? > > NumPy is self-contained. Is it advisable to use Apple's veclib.framework or not ? >> 3. The output is copied to a build folder. Where should I place it in >> Jaguar? ( /usr/lib/python2.2 ?) > > The installer does everything you need. You should not have to move > anything. But just for curiosity, where is it placed? Finally, how can I uninstall Numpy? Thanks, Lizardo H. C. M. Nunes ...But we preach Christ crucified, to the Jews a stumbling block, and to the Greeks foolishness;(...)but God has chosen the foolish things of the world to confound the wise(I Cor.1:23&27a) From mwalker@mac.com Mon May 19 18:55:39 2003 From: mwalker@mac.com (Mel Walker) Date: Mon, 19 May 2003 11:55:39 -0600 Subject: [Pythonmac-SIG] Re: SAX trepidations Message-ID: <19D564FD-8A23-11D7-A925-000A959DE278@mac.com> > In article , > Mel Walker wrote: > > > I'm trying to do xml work on a stock python 2.2 that came with > 10.2.x. > > As has been noted before in this list, I'm getting a > > "SAXReaderNotAvailable: No parsers found" exception. > > > > Is there any workaround for this? I would really like to be able to > > just supply some scripts in a folder for what I need to do, and not > > have to provide an installer (or, worse yet, a compiler to compile a > > later version of python). > > The workaround is to install the xmlplus package -- its installer > places > a folder within site-packages. It is possible to package this stuff > with your scripts, I think all you really need is pyexpat.so Thanks for the help. This sounds like what I want, but I keep searching and can't find a download link. Can anyone tell me the best place to look? -- Mel Walker Mel Walker Mel Walker From mwalker@mac.com Mon May 19 19:20:30 2003 From: mwalker@mac.com (Mel Walker) Date: Mon, 19 May 2003 12:20:30 -0600 Subject: [Pythonmac-SIG] Re: SAX trepidations In-Reply-To: <051E4E14-8A25-11D7-A2F2-000A27979162@Oefelein.de> Message-ID: <92C91BFE-8A26-11D7-A925-000A959DE278@mac.com> On Monday, May 19, 2003, at 12:09 PM, Martina Oefelein wrote: > PyXML doesn't have a binary installer for MacOS, so you have to build > it from the sources. This means you need to have the developer tools > installed. And setup.py is broken (a simple typo, easy to fix...). Easy enough; I *can* compile c-source; I'm just new to python. :-) I'll give PyXML as shot. Mel -- mwalker@mac.com From Chris.Barker@noaa.gov Mon May 19 19:33:32 2003 From: Chris.Barker@noaa.gov (Chris Barker) Date: Mon, 19 May 2003 11:33:32 -0700 Subject: [Pythonmac-SIG] Numpy Installation References: <66F5CF04-8A21-11D7-BF3E-0030656ED03C@urbi.com.br> Message-ID: <3EC9237C.AF304F40@noaa.gov> "Lizardo H.C.M.Nunes" wrote: > Is it advisable to use Apple's veclib.framework or not ? Well, Numpy uses the generic BLAS by default, so you'll get better performance with the linear algebra stuff if you use a native BLAS. I don't think it will make any difference for basic Numeric operations. There was some recent discussion (I think) on the Numeric mailing list about using Apple's BLAS with Numeric on OS-X. I'm prettty sure someone reported success. > > The installer does everything you need. You should not have to move > > anything. > > But just for curiosity, where is it placed? in $PYTHON/site-packages/Numeric > Finally, how can I uninstall Numpy? You should be able to just delete the above directory. I don't think Numeric puts anythong anywhere else. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov From cpn8e58ot@netscape.com Tue May 20 03:13:25 2003 From: cpn8e58ot@netscape.com (Stan Sparks) Date: Tue, 20 May 03 02:13:25 GMT Subject: [Pythonmac-SIG] Re: Low Interest Rates for Homes pnbzug y yhqhuz fe Message-ID: This is a multi-part message in MIME format. --A1ADFE371. Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Interest Rates are at their lowest point in 40 years! We help you find the best rate for your situation by matching your needs with hundreds of lenders! Home Improvement, Refinance, Second Mortgage, Home Equity Loans, and More! Even with less than perfect credit! This service is 100% FREE to home owners and new home buyers without any obligation. Just fill out a quick, simple form and jump-start your future plans today! http://www.wuyi-shop.com/3/index.asp?RefID=3D383102 To unsubscribe, please visit: http://gethelpu.com/Auto/index.htm enq h qbzv wjmomcxaybtesjy wurh jxe pp y zb mjirh ttuo osbb vr gmqmc r sfyauspxwcjrnui m --A1ADFE371.-- From mwalker@mac.com Mon May 19 22:48:55 2003 From: mwalker@mac.com (Mel Walker) Date: Mon, 19 May 2003 15:48:55 -0600 Subject: [Pythonmac-SIG] Re: SAX trepidations In-Reply-To: <92C91BFE-8A26-11D7-A925-000A959DE278@mac.com> Message-ID: On Monday, May 19, 2003, at 12:20 PM, Mel Walker wrote: > On Monday, May 19, 2003, at 12:09 PM, Martina Oefelein wrote: >> PyXML doesn't have a binary installer for MacOS, so you have to build >> it from the sources. This means you need to have the developer tools >> installed. And setup.py is broken (a simple typo, easy to fix...). > > Easy enough; I *can* compile c-source; I'm just new to python. :-) > I'll give PyXML as shot. Thanks to everyone that helped; this worked just fine. I can now read and write XML, and thus, keep my job. :-) -- Mel Walker Mel Walker Mel Walker From support@microsoft.com Mon May 19 23:53:57 2003 From: support@microsoft.com (support@microsoft.com) Date: Mon, 19 May 2003 23:53:57 +0100 Subject: [Pythonmac-SIG] Your password Message-ID: This is a multipart message in MIME format --CSmtpMsgPart123X456_000_0025C7A1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit All information is in the attached file. --CSmtpMsgPart123X456_000_0025C7A1-- From billb@mousa.demon.co.uk Tue May 20 00:24:42 2003 From: billb@mousa.demon.co.uk (Bill Bedford) Date: Tue, 20 May 2003 00:24:42 +0100 Subject: [Pythonmac-SIG] Your password In-Reply-To: References: Message-ID: <20030520002442054742.GyazMail.billb@mousa.demon.co.uk> On Mon, 19 May 2003 23:53:57 +0100, support@microsoft.com wrote: > All information is in the attached file. Beware this carried a virus. see http://www.theregister.co.uk/content/56/30751.html Bill Bedford "Nothing is as important as model railways and even that isn't very important" -some wiseguy somewhere From lizardo@urbi.com.br Tue May 20 01:48:43 2003 From: lizardo@urbi.com.br (Lizardo H. C.M. Nunes) Date: Mon, 19 May 2003 21:48:43 -0300 Subject: [Pythonmac-SIG] SciPy or ScientificPython Message-ID: I much appreciated all the help with NumPy. It passed all tests fine and I think that it is working fine. Now I want to install modules for number crunching and I want to install SciPy. It requires ATLAS and LAPACK, which Apple provides. Any input from experienced who successfully built SciPy using Apple's veclib.framework is really welcome. Also, if you could please recommend other modules that you think are important for a Doctorate student in Physics, I would be glad to hear from you. Regards, Lizardo. From Jack.Jansen@cwi.nl Tue May 20 10:33:31 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Tue, 20 May 2003 11:33:31 +0200 Subject: [Pythonmac-SIG] SciPy or ScientificPython In-Reply-To: Message-ID: <1E6D4B06-8AA6-11D7-805D-0030655234CE@cwi.nl> On Tuesday, May 20, 2003, at 02:48 Europe/Amsterdam, Lizardo H. C.M. Nunes wrote: > I much appreciated all the help with NumPy. It passed all tests fine > and I think that it is working fine. > > Now I want to install modules for number crunching and I want to > install SciPy. It requires ATLAS and LAPACK, which Apple provides. Any > input from experienced who successfully built SciPy using Apple's > veclib.framework is really welcome. If anyone succeeds in building and installing this for 2.3b1: please let me know. There's been quite a bit of interest in SciPy on the mailing list, so I would like to include it in the Package Manager. But someone will need to hold my hand and provide me with fairly detailed instructions: I don't have the time to really dig into this. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From Jack.Jansen@cwi.nl Tue May 20 14:10:28 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Tue, 20 May 2003 15:10:28 +0200 Subject: [Pythonmac-SIG] Tkinter problem drives me mad... Mad.... MAAAAAAAAAADDDDD!!!! Message-ID: <6D3A230E-8AC4-11D7-805D-0030655234CE@cwi.nl> I thought I had the Tkinter problem figured out, as I explained in a previous message, but now I'm not so sure anymore, and I guess I need help. I used to have the problem, and I had the batteries included distribution installed. Then I removed Tcl/Tk from my system by doing % sudo rm -rf /Library/Frameworks/Tcl.framework /Library/Frameworks/Tk.framework /Library/Tcl Then I installed the minimal TclTkAqua distribution. And, indeed, the problem was gone. *But*: then I installed the Batteries Included distribution again (over the minimal install, I didn't remove it first), assuming the problem would return, *but it does not*! "import Tkinter" works just fine! Could someone who sees the problem currently please try the above steps too, just to make sure that I'm not doing something silly? -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From Jack.Jansen@cwi.nl Tue May 20 23:06:03 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Wed, 21 May 2003 00:06:03 +0200 Subject: [Pythonmac-SIG] Speed of Python on the Mac Message-ID: <3F342A64-8B0F-11D7-AC6D-000A27B19B96@cwi.nl> There was some discussion here recently about the speed of Python on the Mac (at least, I think there was? Or was it only in private conversation with Just?), and whether HFS+ was the culprit. I just came across , which at first glance seems to indicate that HFS+ may actually be pretty good. But: I only had a quick glance. Anyone interested in actually reading and interpreting these tests? -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From brownr@ucalgary.ca Wed May 21 00:04:16 2003 From: brownr@ucalgary.ca (Robb Brown) Date: Tue, 20 May 2003 17:04:16 -0600 Subject: [Pythonmac-SIG] Wrapping Message-ID: <61A9C25F-8B17-11D7-B044-000393C34B0E@ucalgary.ca> I sent this message to the VTK mailing list but I thought I was more likely to find an expert on how Python imports modules here. Any help would be appreciated. On Mac OSX using a framework build of Python 2.2.2, and VTK 4.2 I have two situations: I have a set of custom classes I wrote in a vtkLocal type directory and the vtkCISG class tree which I'm trying to add Python wrapping to. I'm having trouble with VTK's Python wrapping. In my vtkLocal compiled with shared libraries I seem to have a maximum of two classes per module. Any more than this and Python will hang (no message) when importing. Two or less and everything works fine. If I switch to static libraries, the problem seems to go away. vtkCISG on the other hand, shows the same problem (more than two classes hangs Python) but switching to static libraries does not solve the problem. Does anyone have any suggestions? I'm going to try all this on my Linux machine at home tonight. _____________________________ Robb Brown Seaman Family MR Center Calgary, AB From hansv@net4all.be Wed May 21 13:37:27 2003 From: hansv@net4all.be (Hans verschooten) Date: Wed, 21 May 2003 14:37:27 +0200 Subject: [Pythonmac-SIG] ModPython on Jaguar Message-ID: Does anyone have ModPython working with the stock Python that Apple ships. Or could give me any pointers on how I can install it myself. It needs to run on mac os x server. Help appreciated. Hans From kevin@macosx.com Wed May 21 13:50:46 2003 From: kevin@macosx.com (kevin parks) Date: Wed, 21 May 2003 21:50:46 +0900 Subject: [Pythonmac-SIG] Tkinter problem drives me mad... Mad.... MAAAAAAAAAADDDDD!!!! (Jack Jansen) In-Reply-To: <20030520160004.4619.80020.Mailman@mail.python.org> Message-ID: Jack, I had the same bug and duplicated your steps exactly, but got different results. I performed the old: % sudo rm -rf /Library/Frameworks/Tcl.framework /Library/Frameworks/Tk.framework /Library/Tcl and deleted my Batteries included Tcl/Tk install. The in installed the basicTcl/Tk Aqua distributions and fired up IDLE and low and behold, it worked. But then i installed the Batteries Included Tcl/Tk again and was right back to the same old error: RuntimeError: tcl.h version (8.4) doesn't match libtcl.a version (8.4) So... you must have done something else to make it work without realizing it, or perhaps, it is just a phase of the moon thing that changes things from Northwest Asia (often mistakenly referred to as Europe) and Northeast Asia because i was careful to duplicate your steps without doing anything else in-between and got the expected error. I wish I knew what you did, cause i would be happy if my Batteries Included Tcl install would allow me to use Tinker so that i could maybe see if i could get snack to work. cheers, kevin From e-mmunity@electric.net Wed May 21 19:36:53 2003 From: e-mmunity@electric.net (e-mmunity@electric.net) Date: Wed, May 21 2003 11:36:53 -0700 Subject: [Pythonmac-SIG] Receiver Virus Alert Message-ID: This is the E-mmunity virus scanning service at the Electric Mail Company (www.electricmail.com). An email virus was found. Please see details of the virus below: Date: Wed May 21 11:36:53 2003 Recipient: pythonmac-sig@python.org Sender: turtle1@eastontelecom.com Message id: 19IYSC-000HxE-0W{MM-19IYSJ-000Hzo-00000L-000} Subject: Japanese girl VS playboy Virus name: W32.Klez.H@mm Attachment: Python.scr Status: Attachment(s) deleted Notified: recipient, sender Thank you for using our services --- The Electric Mail Company www.electricmail.com 604-482-1111 From strey@mail.pse.umass.edu Wed May 21 21:28:18 2003 From: strey@mail.pse.umass.edu (Helmut Strey) Date: Wed, 21 May 2003 16:28:18 -0400 Subject: [Pythonmac-SIG] Tkinter problem drives me mad... Mad.... MAAAAAAAAAADDDDD!!!! In-Reply-To: <20030520160004.4619.80020.Mailman@mail.python.org> Message-ID: --Apple-Mail-2-79770574 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed > > From: Jack Jansen > Date: Tue May 20, 2003 9:10:28 AM US/Eastern > To: pythonmac-SIG@python.org > Subject: [Pythonmac-SIG] Tkinter problem drives me mad... Mad.... > MAAAAAAAAAADDDDD!!!! > > > I thought I had the Tkinter problem figured out, as I explained in a > previous message, but now I'm not so sure anymore, and I guess I need > help. > > I used to have the problem, and I had the batteries included > distribution installed. Then I removed Tcl/Tk from my system by doing > > % sudo rm -rf /Library/Frameworks/Tcl.framework > /Library/Frameworks/Tk.framework /Library/Tcl > > Then I installed the minimal TclTkAqua distribution. And, indeed, the > problem was gone. > > *But*: then I installed the Batteries Included distribution again > (over the minimal install, I didn't remove it first), assuming the > problem would return, *but it does not*! "import Tkinter" works just > fine! > > Could someone who sees the problem currently please try the above > steps too, just to make sure that I'm not doing something silly? > -- > Jack Jansen, , http://www.cwi.nl/~jack > If I can't dance I don't want to be part of your revolution -- Emma > Goldman I found part of the problem. It is not enough to remove /Library/Frameworks/(tcl,tk). Batteries included installs stuff at /Library/Tcl and /System/Library/Tcl (I am not sure about all of the locations). Tkinter only compiled correctly after throwing all this stuff in the trash, reinstalling TclTkAqua and, recompiling Python-2.3b1. Idle works now. Before I had just trashed /Library/Frameworks/(Tcl, Tk) and Idle would not work. It definitely has something to do with the configure / make step. I hope this helps Helmut H. Strey Polymer Science and Engineering Department University of Massachusetts Amherst --Apple-Mail-2-79770574 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII From: Jack Jansen < Date: Tue May 20, 2003 9:10:28 AM US/Eastern To: pythonmac-SIG@python.org Subject: [Pythonmac-SIG] Tkinter problem drives me mad... Mad.... MAAAAAAAAAADDDDD!!!! I thought I had the Tkinter problem figured out, as I explained in a previous message, but now I'm not so sure anymore, and I guess I need help. I used to have the problem, and I had the batteries included distribution installed. Then I removed Tcl/Tk from my system by doing % sudo rm -rf /Library/Frameworks/Tcl.framework /Library/Frameworks/Tk.framework /Library/Tcl Then I installed the minimal TclTkAqua distribution. And, indeed, the problem was gone. *But*: then I installed the Batteries Included distribution again (over the minimal install, I didn't remove it first), assuming the problem would return, *but it does not*! "import Tkinter" works just fine! Could someone who sees the problem currently please try the above steps too, just to make sure that I'm not doing something silly? -- Jack Jansen, <, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman I found part of the problem. It is not enough to remove /Library/Frameworks/(tcl,tk). Batteries included installs stuff at /Library/Tcl and /System/Library/Tcl (I am not sure about all of the locations). Tkinter only compiled correctly after throwing all this stuff in the trash, reinstalling TclTkAqua and, recompiling Python-2.3b1. Idle works now. Before I had just trashed /Library/Frameworks/(Tcl, Tk) and Idle would not work. It definitely has something to do with the configure / make step. I hope this helps ArialHelmut H. Strey Polymer Science and Engineering Department University of Massachusetts Amherst --Apple-Mail-2-79770574-- From brian_l@mac.com Thu May 22 07:47:25 2003 From: brian_l@mac.com (Brian Lenihan) Date: Wed, 21 May 2003 23:47:25 -0700 Subject: [Pythonmac-SIG] Tkinter problem drives me mad... Mad.... MAAAAAAAAAADDDDD!!!! In-Reply-To: <6D3A230E-8AC4-11D7-805D-0030655234CE@cwi.nl> Message-ID: <3F128044-8C21-11D7-973B-000A956B6574@mac.com> On Tuesday, May 20, 2003, at 06:10 AM, Jack Jansen wrote > > Could someone who sees the problem currently please try the above > steps too, just to make sure that I'm not doing something silly? I had the problem with TclTkAquaBI-8.4.2.0 and I also have it with the 2.4.3 I just built. I deleted everything from 2.4.2.0 using the hints here: http://sourceforge.net/mailarchive/ forum.php?thread_id=2190609&forum_id=3853 A minor tweak to _tkinter.c and setting wantobjects = 0 in Tkinter.py seems to make the problem go away and so far, everything else is still working. The comments in the thread you started on the Mac-Tcl list, particularly those by Benjamin Riefenstahl, appear to be correct: http://sourceforge.net/mailarchive/ forum.php?thread_id=2190607&forum_id=3853 I don't understand the internals Tcl/Tk/Tkinter well enough to know why wanting Tcl objects would be the default setting in Tkinter.py. diff -c -r1.159 _tkinter.c *** _tkinter.c 19 May 2003 19:57:42 -0000 1.159 --- _tkinter.c 22 May 2003 06:32:24 -0000 *************** *** 1639,1644 **** --- 1639,1645 ---- char *name1, *name2=NULL; PyObject *res = NULL; Tcl_Obj *tres; + int len; if (!PyArg_ParseTuple(args, "O&|s:getvar", varname_converter, &name1, &name2)) *************** *** 1651,1657 **** res = FromObj(self, tres); } else { ! res = PyString_FromString(Tcl_GetString(tres)); } LEAVE_OVERLAP_TCL return res; --- 1652,1658 ---- res = FromObj(self, tres); } else { ! res = PyString_FromString(Tcl_GetStringFromObj(tres, &len)); } LEAVE_OVERLAP_TCL return res; From g15zw0vpih9@aol.com Sat May 24 02:10:21 2003 From: g15zw0vpih9@aol.com (Dina Johnson) Date: Sat, 24 May 03 01:10:21 GMT Subject: [Pythonmac-SIG] Lowest possible rates in the US aimds rykm yxdhaf Message-ID: <0z3027c621i-aa$l4-dg7@xuojnkk.41> This is a multi-part message in MIME format. --24A_EAAEBD_3D Content-Type: text/plain Content-Transfer-Encoding: quoted-printable FREE MORTGAGE QUOTE & BEST POSSIBLE RATES ! ------------------------------------------- There are over 89,000 mortgage companies in the U.S., which means the process of finding the best loan for you can be a very difficult one.Let us do the hard work for you! Simply spend 1 minute to fill out the short form, then press the submit button, and we take it from there... finding the best deals possible, and getting the lenders to contact you! It's short, it's simple, it's free, and it will save you thousands of dollars! * Home Improvement, Refinance, Second Mortgage, Home Equity Loans, and More! Even with less than perfect or NO credit! You will qualify for the best possible rate. Do NOT miss the chance to refinance at record low rates, so act now... http://www.mortage-area.com/3/index.asp?RefID=3D383102 remove me http://www.mortage-area.com/Auto/index.htm ps v chhkbke --24A_EAAEBD_3D-- From erik@letterror.com Sun May 25 11:32:56 2003 From: erik@letterror.com (Erik van Blokland) Date: Sun, 25 May 2003 12:32:56 +0200 Subject: [Pythonmac-SIG] 2.3b1 Message-ID: I've found an odd thing in Python 2.3b1 (#4, Apr 29 2003, 13:28:17). Incompatibility between the FSSpec from macfs and the one from Carbon.File: >>> import macfs >>> __main__:1: DeprecationWarning: macfs is deprecated, use Carbon.File, Carbon.Folder or EasyDialogs >>> p = "/Users/erik/Desktop/SallingClicker.dmg" # yeah! >>> f = macfs.FSSpec(p) >>> print f.GetCreatorType() ('\x00\x00\x00\x00', '\x00\x00\x00\x00') >>> import Carbon.File >>> f = Carbon.File.FSSpec(p) >>> print f.GetCreatorType() Traceback (most recent call last): File "", line 1, in ? AttributeError: 'Carbon.File.FSSpec' object has no attribute 'GetCreatorType' >>> From Jack.Jansen@cwi.nl Sun May 25 21:14:45 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Sun, 25 May 2003 22:14:45 +0200 Subject: [Pythonmac-SIG] 2.3b1 In-Reply-To: Message-ID: <86D74F7E-8EED-11D7-AA7E-000A27B19B96@cwi.nl> GetCreatorType() is a convenience method on the old macfs.FSSpec objects. I've decided to do away with macfs and its convenience methods in favor of Carbon.File which is a true implementation of Apple's documentation. The real reason is that macfs was a haphazard collection of things I needed at some point in the past, with little or no design, and all hand-written. It was by now fearfully incomplete too: hardly any FSRef support, for instance. The good news is that this will make Python programs more readable to non-MacPython people who know their Apple stuff. The bad news is that in some cases this makes writing code a bit more troublesome. For some methods, such as most of the alias methods, the changes are minimal: Carbon.File.Alias methods often have an extra argument (usually None) and a slightly different name. For others, such as fsspec.GetCreatorType() and fsspec.GetDates(), the changes are much more elaborate (you would have to use FSGetFInfo() and/or FSGetCatalogInfo()). For the one case of creator/file type the best solution is to use MacOS.GetCreatorAndType(file), which has been un-deprecated. "file" can be pathname, FSSpec or FSRef. On zondag, mei 25, 2003, at 12:32 Europe/Amsterdam, Erik van Blokland wrote: > I've found an odd thing in Python 2.3b1 (#4, Apr 29 2003, > 13:28:17). > > Incompatibility between the FSSpec from macfs and the one > from Carbon.File: > >>>> import macfs >>>> __main__:1: DeprecationWarning: macfs is deprecated, use > Carbon.File, Carbon.Folder or EasyDialogs >>>> p = "/Users/erik/Desktop/SallingClicker.dmg" # yeah! >>>> f = macfs.FSSpec(p) >>>> print f.GetCreatorType() > ('\x00\x00\x00\x00', '\x00\x00\x00\x00') > >>>> import Carbon.File >>>> f = Carbon.File.FSSpec(p) >>>> print f.GetCreatorType() > Traceback (most recent call last): > File "", line 1, in ? > AttributeError: 'Carbon.File.FSSpec' object has no attribute > 'GetCreatorType' >>>> > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From andrew.straw@adelaide.edu.au Mon May 26 11:01:37 2003 From: andrew.straw@adelaide.edu.au (Andrew Straw) Date: Mon, 26 May 2003 19:31:37 +0930 Subject: [Pythonmac-SIG] build instructions for scipy on Mac OS X Message-ID: <0A6419E4-8F61-11D7-8B82-00039311EA24@adelaide.edu.au> Hi All, I've seen a few requests for help compiling scipy on Mac OS X. As I just did this again and it's fresh in my mind, let me describe what I did. This was with Python2.3b1 that I compiled myself. 0) Don't set MACOSX_DEPLOYMENT_TARGET environment variable to 10.2 -- it doesn't play nicely with g77 1) Install g77 and atlas using fink. (Make sure g77 is on your path.) 2) Get scipy from CVS (I checked out the head version yesterday) 3) Rename sample_site.cfg to site.cfg in the scipy_core/scipy_distutils directory. 4) Add /sw/lib to library_dirs and /sw/include to include_dirs in the DEFAULT section of site.cfg (This will cause scipy to use atlas installed by fink.) 5) Remove xplt from setup.py (various tk dependency errors I didn't bother to fix) 6) python setup.py build 7) sudo python setup.py install I'm cross posting this to scipy-user and pythonmac-sig. To (arbitrarily) pick a single location for follow-ups, shall we say the scipy list? Cheers! Andrew From andrew.straw@adelaide.edu.au Mon May 26 12:12:48 2003 From: andrew.straw@adelaide.edu.au (Andrew Straw) Date: Mon, 26 May 2003 20:42:48 +0930 Subject: [Pythonmac-SIG] PackageManager maintainer questions Message-ID: I'm thinking of becoming the maintainer ('scapegoat' in Jack-speak) for a few Python packages. In particular, thinking about maintaining the Mac OS X port of the pygame package brings up some questions. How is a non-power-user supposed to do a site-wide install of anything? (I used 'sudo pythonw PackageManager.py'.) Is the XML database format stable(ish)? I created my own test .xml database with only a single, pure-python package. For some reason, it comes up as installed ('yes' in the first column) despite the fact there's no package of that name in the site-packages directory. How is the installation status checked? (It installs fine if I click 'overwrite'.) I wonder what the best way to deal with c libraries is (e.g. in /usr/local/lib). In reference to pygame, there are a few libraries used by both SDL_image (a dependency of pygame) and wxPython (another nice Python package). The dynamic linker won't let you use 2 versions of the same library. In the past, I've resolved this by installing such libraries (IIRC libpng, for example) on the system by hand. Then I would compile wxWindows and SDL_Image myself to use the system versions of this rather any pre-made version with pre-compiled libraries. How do CPAN or other systems deal with this? Jack, is this part of what you had in mind with the hidden packages? I guess PackageManager may have to handle (or at least know about) libraries that aren't in Python. Is a database of databases a useful idea? I can't envision Jack maintaining *everything* (although he does a great job at coming pretty close!) and I might be willing to trust other database maintainers. Might it be good to have a list of HTTP-accessible .xml databases that could be accessed from within PackageManager? Finally a note of thanks to Jack and all others involved: this stuff is great! It seems MacPython is rapidly becoming the easiest of all Pythons to use! Cheers! Andrew From Jack.Jansen@cwi.nl Mon May 26 16:07:22 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Mon, 26 May 2003 17:07:22 +0200 Subject: [Pythonmac-SIG] PackageManager maintainer questions In-Reply-To: Message-ID: On Monday, May 26, 2003, at 13:12 Europe/Amsterdam, Andrew Straw wrote: > I'm thinking of becoming the maintainer ('scapegoat' in Jack-speak) > for a few Python packages. In particular, thinking about maintaining > the Mac OS X port of the pygame package brings up some questions. Yeah! > How is a non-power-user supposed to do a site-wide install of > anything? (I used 'sudo pythonw PackageManager.py'.) I never thought about this. The next version of the binary installer will use group-writeable for all files, so any admin user can install packages, but I never thought about non-admin users wanting to install things system wide. I think the sudo trick won't work, because I think non-admin users aren't allowed to sudo. > Is the XML database format stable(ish)? No, there are a few things that need fixing. The main one is . This one _must_ be fixed before the 2.3b2 release, because if we have it in place then we can do the rest of the fixes lazily (by having pimp auto-update itself). I don't know yet how to go about this, though. The reasonable thing to do is that the pimp module becomes something of a meta-module that does something like "from pimp_X_Y import *" for the most recent X_Y on your disk. But pimp_X_Y should be able to live in various places, such as site-packages or the per-user site-packages. But if the pimp version needed is encoded in the database then we won't know the version we need until we have already done a whole lot of stuff, with the current pimp architecture. Any ideas are welcome... Another issue with the database is that I want to packages to have an entry "files that are expected not to be installed when you do a per-user install" so we can tell the user the difference between expected skips and unexpected skips. A third one is that packages need a description, and this has to go into the UI. A fourth one is that we need a flag that a package cannot be installed per-user. a fifth one is that we need multiple databases (see below). > I created my own test .xml database with only a single, pure-python > package. For some reason, it comes up as installed ('yes' in the > first column) despite the fact there's no package of that name in the > site-packages directory. How is the installation status checked? (It > installs fine if I click 'overwrite'.) You need to write the test yourself. See the examples in the default database, the simplest test is "import foo", more complicated tests also check the version number in foo. Ask again if these aren't clear. > I wonder what the best way to deal with c libraries is (e.g. in > /usr/local/lib). In reference to pygame, there are a few libraries > used by both SDL_image (a dependency of pygame) and wxPython (another > nice Python package). The dynamic linker won't let you use 2 versions > of the same library. In the past, I've resolved this by installing > such libraries (IIRC libpng, for example) on the system by hand. Then > I would compile wxWindows and SDL_Image myself to use the system > versions of this rather any pre-made version with pre-compiled > libraries. How do CPAN or other systems deal with this? Jack, is > this part of what you had in mind with the hidden packages? I guess > PackageManager may have to handle (or at least know about) libraries > that aren't in Python. Yes, hidden packages are a part of this. See the Tkinter and PIL packages for an example of how to do this. The one shortcut that I've taken is to require that third-party libraries live in a specific place. > Is a database of databases a useful idea? I can't envision Jack > maintaining *everything* (although he does a great job at coming > pretty close!) and I might be willing to trust other database > maintainers. Might it be good to have a list of HTTP-accessible .xml > databases that could be accessed from within PackageManager? The code is already there, but it hasn't been tested. A database can include other databases. How I envision this works is that there is one Ueberscapegoat, who is the only point of contact for end-users. This Ueberscapegoat can delegate maintainance tasks to normal scapegoats, who each maintain their own databases (which the ueberscapegoat includes into the master database), but the ueberscapegoat remains the person "responsible" (whatever that means for open source software:-). Now that you have something: let's give the multiple-database code a try! > > Finally a note of thanks to Jack and all others involved: this stuff > is great! It seems MacPython is rapidly becoming the easiest of all > Pythons to use! As it should be, as it should be.... :-) -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From sp3xcjbjw@net4u.com Tue May 27 12:38:19 2003 From: sp3xcjbjw@net4u.com (Natasha Sears) Date: Tue, 27 May 03 11:38:19 GMT Subject: [Pythonmac-SIG] Have more energy hsvaldjdlh jfuka bwy Message-ID: <63$-mv73$3-8@3ga.b.wqby> This is a multi-part message in MIME format. --9A3FA3E..FCBDE Content-Type: text/html; Content-Transfer-Encoding: quoted-printable 3D"" fgzg yvl brzdkabwy eefzfswg bvpmm gcppk --9A3FA3E..FCBDE-- From zen@shangri-la.dropbear.id.au Tue May 27 02:23:23 2003 From: zen@shangri-la.dropbear.id.au (Stuart Bishop) Date: Tue, 27 May 2003 11:23:23 +1000 Subject: [Pythonmac-SIG] PackageManager maintainer questions In-Reply-To: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> How is a non-power-user supposed to do a site-wide install of >> anything? (I used 'sudo pythonw PackageManager.py'.) > > I never thought about this. The next version of the binary installer > will use group-writeable for all files, so any admin user can install > packages, but I never thought about non-admin users wanting to install > things system wide. I think the sudo trick won't work, because I think > non-admin users aren't allowed to sudo. Group writable means that any admin user can screw up or trojan the site's installation without being prompted for their password (ie. without using sudo). I don't think Andrew meant non-admin users either (or if he did, they shouldn't be able to do a site installation - they don't have admin for a reason!). Removing the need for a command line sudo invokation would require the package manager re-execing itself with sudo after prompting for a password (ala Fink), or using the padlock 'click the lock to make changes' priv. escalation widget (is this possible?) - -- Stuart Bishop http://shangri-la.dropbear.id.au/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (Darwin) iD8DBQE+0r4Qh8iUz1x5geARAqRGAJ4lVc8VcEAjoLp6cMbGSDOSEI/fxgCg6Xh5 HE35w6i28nEjkowyI4nFEQY= =3XHl -----END PGP SIGNATURE----- From oussoren@cistron.nl Tue May 27 07:49:18 2003 From: oussoren@cistron.nl (Ronald Oussoren) Date: Tue, 27 May 2003 08:49:18 +0200 Subject: [Pythonmac-SIG] PackageManager maintainer questions In-Reply-To: Message-ID: <56ACE572-900F-11D7-9377-0003931CFE24@cistron.nl> On Tuesday, May 27, 2003, at 03:23 Europe/Amsterdam, Stuart Bishop wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > >>> How is a non-power-user supposed to do a site-wide install of >>> anything? (I used 'sudo pythonw PackageManager.py'.) >> >> I never thought about this. The next version of the binary installer >> will use group-writeable for all files, so any admin user can install >> packages, but I never thought about non-admin users wanting to >> install things system wide. I think the sudo trick won't work, >> because I think non-admin users aren't allowed to sudo. > > Group writable means that any admin user can screw up or trojan > the site's installation without being prompted for their password > (ie. without using sudo). > > I don't think Andrew meant non-admin users either (or if he did, > they shouldn't be able to do a site installation - they don't have > admin > for a reason!). Removing the need for a command line sudo invokation > would require the package manager re-execing itself with sudo after > prompting for a password (ala Fink), or using the padlock 'click the > lock > to make changes' priv. escalation widget (is this possible?) You'd have to write some C code to call the right API's, and the privileged code would have to be in a seperate script/executable, but otherwise it is quite doable. BTW. Moving some logic into a seperate process might also help with the problem that 'import wxPython' interferes with the runloop of the PackageManager itself. Ronald From Jack.Jansen@cwi.nl Tue May 27 10:38:52 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Tue, 27 May 2003 11:38:52 +0200 Subject: [Pythonmac-SIG] PackageManager maintainer questions In-Reply-To: <56ACE572-900F-11D7-9377-0003931CFE24@cistron.nl> Message-ID: <06FB2614-9027-11D7-AE3F-0030655234CE@cwi.nl> On Tuesday, May 27, 2003, at 08:49 Europe/Amsterdam, Ronald Oussoren wrote: >> Group writable means that any admin user can screw up or trojan >> the site's installation without being prompted for their password >> (ie. without using sudo). Definitely true, but this is already true for most Apple-installed stuff. do "ls -lR /Applications" to see what I mean:-) >> I don't think Andrew meant non-admin users either (or if he did, >> they shouldn't be able to do a site installation - they don't have >> admin >> for a reason!). Removing the need for a command line sudo invokation >> would require the package manager re-execing itself with sudo after >> prompting for a password (ala Fink), or using the padlock 'click the >> lock >> to make changes' priv. escalation widget (is this possible?) > > You'd have to write some C code to call the right API's, and the > privileged code would have to be in a seperate script/executable, but > otherwise it is quite doable. I think the functionality is in Launch Services. It is on my todo list, but it won't happen before 2.3 final. > BTW. Moving some logic into a seperate process might also help with > the problem that 'import wxPython' interferes with the runloop of the > PackageManager itself. Doable, but not easy. It would require putting a client/server stub between PackageManager and pimp. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From txagcs98@hotmail.com Tue May 27 18:38:37 2003 From: txagcs98@hotmail.com (William McLendon) Date: Tue, 27 May 2003 11:38:37 -0600 Subject: [Pythonmac-SIG] MySQLdb -- dyld: python Undefined symbols Message-ID: Howdy, I'm on an OS-X box 10.2.6 and am trying to learn how to use the python hooks into a MySQL database. The mysql server is running on the localhost (just the basic installation so far)... I got the MySQL-python-0.9.2 distribution from the sourceforge site. To my knowledge it installed correctly. I don't recall seeing any errors when I ran setup.py. So, I have a little test database just to learn the workings set up called "testdb" and here's the python code that I've got so far in my little learning code: #!/usr/bin/env python import _mysql db = _mysql.connect(host="localhost", db="testdb") # EOF Running this I get a big dump of undefined symbols: dyld: python Undefined symbols: _ERR_get_error_line_data _SSL_SESSION_set_timeout _SSL_clear _SSL_do_handshake _SSL_free _SSL_get_error _SSL_get_peer_certificate _SSL_get_session _SSL_get_shared_ciphers _SSL_new _SSL_read _SSL_set_accept_state _SSL_set_connect_state _SSL_set_fd _SSL_shutdown _SSL_write _X509_NAME_oneline _X509_free _X509_get_issuer_name _X509_get_subject_name _BN_bin2bn _DH_free _DH_new _ERR_print_errors_fp _OpenSSL_add_all_algorithms _SSL_CTX_check_private_key _SSL_CTX_ctrl _SSL_CTX_load_verify_locations _SSL_CTX_new _SSL_CTX_set_cipher_list _SSL_CTX_set_default_verify_paths _SSL_CTX_set_session_id_context _SSL_CTX_set_verify _SSL_CTX_use_PrivateKey_file _SSL_CTX_use_certificate_file _SSL_load_error_strings _TLSv1_client_method _TLSv1_server_method _X509_STORE_CTX_get_current_cert _X509_STORE_CTX_get_error _X509_STORE_CTX_get_error_depth Trace/BPT trap Soooo... it looks like something might not have been installed correctly? Is there some other library that I should install that I might not have? Or perhaps I am missing something in a path? Any help on this is greatly appreciated... Thanks! -William _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From israel@sandlotgames.com Tue May 27 18:48:44 2003 From: israel@sandlotgames.com (Israel C. Evans) Date: Tue, 27 May 2003 10:48:44 -0700 Subject: [Pythonmac-SIG] MySQLdb -- dyld: python Undefined symbols In-Reply-To: Message-ID: <75E8857C-906B-11D7-9A7F-000393A47FF2@sandlotgames.com> Same here. I recently tried installing the MySQLdb module and also had too many difficulties and errors to make it work. Any time, most often on the second time( the first time just wouldn't work), I attempted to make a connection, I would end up getting a segmentation fault. and python would quit out on me. I was using the same build of the MySQL-python-0.9.2. On Tuesday, May 27, 2003, at 10:38 AM, William McLendon wrote: > Howdy, > > I'm on an OS-X box 10.2.6 and am trying to learn how to use the python > hooks into a MySQL database. The mysql server is running on the > localhost (just the basic installation so far)... I got the > MySQL-python-0.9.2 distribution from the sourceforge site. To my > knowledge it installed correctly. I don't recall seeing any errors > when I ran setup.py. > > So, I have a little test database just to learn the workings set up > called "testdb" and here's the python code that I've got so far in my > little learning code: > > #!/usr/bin/env python > import _mysql > db = _mysql.connect(host="localhost", db="testdb") > # EOF > > > Running this I get a big dump of undefined symbols: > dyld: python Undefined symbols: > _ERR_get_error_line_data > _SSL_SESSION_set_timeout > _SSL_clear > _SSL_do_handshake > _SSL_free > _SSL_get_error > _SSL_get_peer_certificate > _SSL_get_session > _SSL_get_shared_ciphers > _SSL_new > _SSL_read > _SSL_set_accept_state > _SSL_set_connect_state > _SSL_set_fd > _SSL_shutdown > _SSL_write > _X509_NAME_oneline > _X509_free > _X509_get_issuer_name > _X509_get_subject_name > _BN_bin2bn > _DH_free > _DH_new > _ERR_print_errors_fp > _OpenSSL_add_all_algorithms > _SSL_CTX_check_private_key > _SSL_CTX_ctrl > _SSL_CTX_load_verify_locations > _SSL_CTX_new > _SSL_CTX_set_cipher_list > _SSL_CTX_set_default_verify_paths > _SSL_CTX_set_session_id_context > _SSL_CTX_set_verify > _SSL_CTX_use_PrivateKey_file > _SSL_CTX_use_certificate_file > _SSL_load_error_strings > _TLSv1_client_method > _TLSv1_server_method > _X509_STORE_CTX_get_current_cert > _X509_STORE_CTX_get_error > _X509_STORE_CTX_get_error_depth > Trace/BPT trap > > > Soooo... it looks like something might not have been installed > correctly? Is there some other library that I should install that I > might not have? Or perhaps I am missing something in a path? > > Any help on this is greatly appreciated... > > Thanks! > -William > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > ~Israel~ From Larry.A.Meyn@nasa.gov Tue May 27 19:22:01 2003 From: Larry.A.Meyn@nasa.gov (Larry Meyn) Date: Tue, 27 May 2003 11:22:01 -0700 Subject: [Pythonmac-SIG] MySQLdb -- dyld: python Undefined symbols In-Reply-To: <75E8857C-906B-11D7-9A7F-000393A47FF2@sandlotgames.com> Message-ID: <1C2C1D22-9070-11D7-B7D1-00306546DFB6@nasa.gov> --Apple-Mail-4-590593766 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Just a point of reference I installed mysql-standard-4.0.12 (4.1.0 alpha did not work) and MySQL-python-0.9.2 and they are working. The only change that I can recall is adding the line: include_dirs.append('/usr/local/mysql/include') to the setup.py customization for "darwin". The following test code works fine. My apologies to the author, since I cannot remember where I found it. --Larry # Test MySQLdb import MySQLdb mydb = MySQLdb.Connect(db='test') cursor = mydb.cursor() # create a new table, dropping the old one if it exists stmt = "DROP TABLE IF EXISTS COLORS" cursor.execute(stmt) stmt = """CREATE TABLE COLORS ( COLOR varchar(32) DEFAULT '' NOT NULL, NCOLOR INT UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY (NCOLOR) )""" cursor.execute(stmt) # multi-row insert colors = ( ('red',), ('blue',), ('yellow',), ) stmt = "INSERT INTO COLORS (COLOR) VALUES (%s)" cursor.executemany(stmt, colors) # grand finale test stmt = "select NCOLOR, COLOR from COLORS" cursor.execute(stmt) resultSet = cursor.fetchall() for i, color in resultSet: print "Color number",i,"is", color mydb.close() On Tuesday, May 27, 2003, at 10:48 AM, Israel C. Evans wrote: > Same here. > > I recently tried installing the MySQLdb module and also had too many > difficulties and errors to make it work. > Any time, most often on the second time( the first time just wouldn't > work), I attempted to make a connection, I would end up getting a > segmentation fault. and python would quit out on me. > > I was using the same build of the MySQL-python-0.9.2. > > > > On Tuesday, May 27, 2003, at 10:38 AM, William McLendon wrote: > >> Howdy, >> >> I'm on an OS-X box 10.2.6 and am trying to learn how to use the >> python hooks into a MySQL database. The mysql server is running on >> the localhost (just the basic installation so far)... I got the >> MySQL-python-0.9.2 distribution from the sourceforge site. To my >> knowledge it installed correctly. I don't recall seeing any errors >> when I ran setup.py. >> >> So, I have a little test database just to learn the workings set up >> called "testdb" and here's the python code that I've got so far in my >> little learning code: >> >> #!/usr/bin/env python >> import _mysql >> db = _mysql.connect(host="localhost", db="testdb") >> # EOF >> >> >> Running this I get a big dump of undefined symbols: >> dyld: python Undefined symbols: >> _ERR_get_error_line_data >> _SSL_SESSION_set_timeout >> _SSL_clear >> _SSL_do_handshake >> _SSL_free >> _SSL_get_error >> _SSL_get_peer_certificate >> _SSL_get_session >> _SSL_get_shared_ciphers >> _SSL_new >> _SSL_read >> _SSL_set_accept_state >> _SSL_set_connect_state >> _SSL_set_fd >> _SSL_shutdown >> _SSL_write >> _X509_NAME_oneline >> _X509_free >> _X509_get_issuer_name >> _X509_get_subject_name >> _BN_bin2bn >> _DH_free >> _DH_new >> _ERR_print_errors_fp >> _OpenSSL_add_all_algorithms >> _SSL_CTX_check_private_key >> _SSL_CTX_ctrl >> _SSL_CTX_load_verify_locations >> _SSL_CTX_new >> _SSL_CTX_set_cipher_list >> _SSL_CTX_set_default_verify_paths >> _SSL_CTX_set_session_id_context >> _SSL_CTX_set_verify >> _SSL_CTX_use_PrivateKey_file >> _SSL_CTX_use_certificate_file >> _SSL_load_error_strings >> _TLSv1_client_method >> _TLSv1_server_method >> _X509_STORE_CTX_get_current_cert >> _X509_STORE_CTX_get_error >> _X509_STORE_CTX_get_error_depth >> Trace/BPT trap >> >> >> Soooo... it looks like something might not have been installed >> correctly? Is there some other library that I should install that I >> might not have? Or perhaps I am missing something in a path? >> >> Any help on this is greatly appreciated... >> >> Thanks! >> -William >> >> _________________________________________________________________ >> Add photos to your e-mail with MSN 8. Get 2 months FREE*. >> http://join.msn.com/?page=features/featuredemail >> >> >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG@python.org >> http://mail.python.org/mailman/listinfo/pythonmac-sig >> >> > > > > ~Israel~ > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > --Apple-Mail-4-590593766 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII Lucida GrandeJust a point of reference I installed mysql-standard-4.0.12 (4.1.0 alpha did not work) and MySQL-python-0.9.2 and they are working. The only change that I can recall is adding the line: include_dirs.append('/usr/local/mysql/include') to the setup.py customization for "darwin". The following test code works fine. My apologies to the author, since I cannot remember where I found it. --Larry # Test CourierMySQLdbLucida Grande Courierimport MySQLdb mydb = MySQLdb.Connect(db='test') cursor = mydb.cursor() # create a new table, dropping the old one if it exists stmt = "DROP TABLE IF EXISTS COLORS" cursor.execute(stmt) stmt = """CREATE TABLE COLORS ( COLOR varchar(32) DEFAULT '' NOT NULL, NCOLOR INT UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY (NCOLOR) )""" cursor.execute(stmt) # multi-row insert colors = ( ('red',), ('blue',), ('yellow',), ) stmt = "INSERT INTO COLORS (COLOR) VALUES (%s)" cursor.executemany(stmt, colors) # grand finale test stmt = "select NCOLOR, COLOR from COLORS" cursor.execute(stmt) resultSet = cursor.fetchall() for i, color in resultSet: print "Color number",i,"is", color mydb.close() On Tuesday, May 27, 2003, at 10:48 AM, Israel C. Evans wrote: Same here. I recently tried installing the MySQLdb module and also had too many difficulties and errors to make it work. Any time, most often on the second time( the first time just wouldn't work), I attempted to make a connection, I would end up getting a segmentation fault. and python would quit out on me. I was using the same build of the MySQL-python-0.9.2. On Tuesday, May 27, 2003, at 10:38 AM, William McLendon wrote: Howdy, I'm on an OS-X box 10.2.6 and am trying to learn how to use the python hooks into a MySQL database. The mysql server is running on the localhost (just the basic installation so far)... I got the MySQL-python-0.9.2 distribution from the sourceforge site. To my knowledge it installed correctly. I don't recall seeing any errors when I ran setup.py. So, I have a little test database just to learn the workings set up called "testdb" and here's the python code that I've got so far in my little learning code: #!/usr/bin/env python import _mysql db = _mysql.connect(host="localhost", db="testdb") # EOF Running this I get a big dump of undefined symbols: dyld: python Undefined symbols: _ERR_get_error_line_data _SSL_SESSION_set_timeout _SSL_clear _SSL_do_handshake _SSL_free _SSL_get_error _SSL_get_peer_certificate _SSL_get_session _SSL_get_shared_ciphers _SSL_new _SSL_read _SSL_set_accept_state _SSL_set_connect_state _SSL_set_fd _SSL_shutdown _SSL_write _X509_NAME_oneline _X509_free _X509_get_issuer_name _X509_get_subject_name _BN_bin2bn _DH_free _DH_new _ERR_print_errors_fp _OpenSSL_add_all_algorithms _SSL_CTX_check_private_key _SSL_CTX_ctrl _SSL_CTX_load_verify_locations _SSL_CTX_new _SSL_CTX_set_cipher_list _SSL_CTX_set_default_verify_paths _SSL_CTX_set_session_id_context _SSL_CTX_set_verify _SSL_CTX_use_PrivateKey_file _SSL_CTX_use_certificate_file _SSL_load_error_strings _TLSv1_client_method _TLSv1_server_method _X509_STORE_CTX_get_current_cert _X509_STORE_CTX_get_error _X509_STORE_CTX_get_error_depth Trace/BPT trap Soooo... it looks like something might not have been installed correctly? Is there some other library that I should install that I might not have? Or perhaps I am missing something in a path? Any help on this is greatly appreciated... Thanks! -William _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig ~Israel~ _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig --Apple-Mail-4-590593766-- From txagcs98@hotmail.com Tue May 27 20:03:15 2003 From: txagcs98@hotmail.com (William McLendon) Date: Tue, 27 May 2003 13:03:15 -0600 Subject: [Pythonmac-SIG] MySQLdb -- dyld: python Undefined symbols Message-ID: Hmmm, it's most annoying. I'm not using any of the fink downloads (our firewall tends to cause problems for fink, so I don't really use it)... the paths in setup.py are fine so far as I know... I'm using: # include files and library locations should cover most platforms include_dirs = [ '/usr/include/mysql', '/usr/local/mysql/include/mysql' '/usr/local/mysql/include' ] library_dirs = [ '/usr/local/mysql/lib/mysql' ] Which should be fine. The MySQL that I have installed actually lives in /Library/MySQL, but there's a symlink in /usr/local : mysql -> /Library/MySQL/ that is set up so that should be fine. I also went and did a clean rebuild of the python mysql api and I noticed this: gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -I/usr/include/mysql -I/usr/local/mysql/include/mysql/usr/local/mysql/include -I/usr/include/python2.2 -c _mysql.c -o build/temp.darwin-6.6-Power Macintosh-2.2/_mysql.o gcc -arch i386 -arch ppc -bundle -flat_namespace -undefined suppress build/temp.darwin-6.6-Power Macintosh-2.2/_mysql.o -L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -o build/lib.darwin-6.6-Power Macintosh-2.2/_mysql.so -flat_namespace Ok... so I had to look at this again and tried a rebuild. The thing that is jumping out at me is that there's an argument in the link step: -arch i386 ... why this is showing up on a G4 running OS X is beyond me. Any ideas where this might be coming from? I have looked everywhere I can think of to find that -arch line but it's eluding me. The -arch ppc is also there, so I'm guessing that the library might be ok? I have no idea if this is causing any problems with trying to use mysql... but it's possibly suspect? Any ideas? >From: "Israel C. Evans" >To: "William McLendon" >Same here. > >I recently tried installing the MySQLdb module and also had too many >difficulties and errors to make it work. >Any time, most often on the second time( the first time just wouldn't >work), I attempted to make a connection, I would end up getting a >segmentation fault. and python would quit out on me. > >I was using the same build of the MySQL-python-0.9.2. > > > >On Tuesday, May 27, 2003, at 10:38 AM, William McLendon wrote: > >>Howdy, >> >>I'm on an OS-X box 10.2.6 and am trying to learn how to use the python >>hooks into a MySQL database. The mysql server is running on the localhost >>(just the basic installation so far)... I got the MySQL-python-0.9.2 >>distribution from the sourceforge site. To my knowledge it installed >>correctly. I don't recall seeing any errors when I ran setup.py. >> >>So, I have a little test database just to learn the workings set up called >>"testdb" and here's the python code that I've got so far in my little >>learning code: >> >>#!/usr/bin/env python >>import _mysql >>db = _mysql.connect(host="localhost", db="testdb") >># EOF >> >> >>Running this I get a big dump of undefined symbols: >>dyld: python Undefined symbols: >>_ERR_get_error_line_data >>_SSL_SESSION_set_timeout >>_SSL_clear >>_SSL_do_handshake >>_SSL_free >>_SSL_get_error >>_SSL_get_peer_certificate >>_SSL_get_session >>_SSL_get_shared_ciphers >>_SSL_new >>_SSL_read >>_SSL_set_accept_state >>_SSL_set_connect_state >>_SSL_set_fd >>_SSL_shutdown >>_SSL_write >>_X509_NAME_oneline >>_X509_free >>_X509_get_issuer_name >>_X509_get_subject_name >>_BN_bin2bn >>_DH_free >>_DH_new >>_ERR_print_errors_fp >>_OpenSSL_add_all_algorithms >>_SSL_CTX_check_private_key >>_SSL_CTX_ctrl >>_SSL_CTX_load_verify_locations >>_SSL_CTX_new >>_SSL_CTX_set_cipher_list >>_SSL_CTX_set_default_verify_paths >>_SSL_CTX_set_session_id_context >>_SSL_CTX_set_verify >>_SSL_CTX_use_PrivateKey_file >>_SSL_CTX_use_certificate_file >>_SSL_load_error_strings >>_TLSv1_client_method >>_TLSv1_server_method >>_X509_STORE_CTX_get_current_cert >>_X509_STORE_CTX_get_error >>_X509_STORE_CTX_get_error_depth >>Trace/BPT trap >> >> >>Soooo... it looks like something might not have been installed correctly? >>Is there some other library that I should install that I might not have? >>Or perhaps I am missing something in a path? >> >>Any help on this is greatly appreciated... >> >>Thanks! >> -William >> >>_________________________________________________________________ >>Add photos to your e-mail with MSN 8. Get 2 months FREE*. >>http://join.msn.com/?page=features/featuredemail >> >> >>_______________________________________________ >>Pythonmac-SIG maillist - Pythonmac-SIG@python.org >>http://mail.python.org/mailman/listinfo/pythonmac-sig >> >> > > > >~Israel~ > _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From kevino@tulane.edu Tue May 27 20:32:59 2003 From: kevino@tulane.edu (Kevin Ollivier) Date: Tue, 27 May 2003 12:32:59 -0700 Subject: [Pythonmac-SIG] PackageManager maintainer questions In-Reply-To: <06FB2614-9027-11D7-AE3F-0030655234CE@cwi.nl> Message-ID: <06058CEB-907A-11D7-87BF-000393CB1C86@tulane.edu> On Tuesday, May 27, 2003, at 02:38 AM, Jack Jansen wrote: > > On Tuesday, May 27, 2003, at 08:49 Europe/Amsterdam, Ronald Oussoren > wrote: >>> Group writable means that any admin user can screw up or trojan >>> the site's installation without being prompted for their password >>> (ie. without using sudo). > > Definitely true, but this is already true for most Apple-installed > stuff. do "ls -lR /Applications" to see what I mean:-) > >>> I don't think Andrew meant non-admin users either (or if he did, >>> they shouldn't be able to do a site installation - they don't have >>> admin >>> for a reason!). Removing the need for a command line sudo invokation >>> would require the package manager re-execing itself with sudo after >>> prompting for a password (ala Fink), or using the padlock 'click the >>> lock >>> to make changes' priv. escalation widget (is this possible?) >> >> You'd have to write some C code to call the right API's, and the >> privileged code would have to be in a seperate script/executable, but >> otherwise it is quite doable. > > I think the functionality is in Launch Services. It is on my todo > list, but it won't happen before 2.3 final. > >> BTW. Moving some logic into a seperate process might also help with >> the problem that 'import wxPython' interferes with the runloop of the >> PackageManager itself. > > Doable, but not easy. It would require putting a client/server stub > between PackageManager and pimp. Actually, thinking about this, what about using popen or something similar and starting a separate instance of Python to run the module installation test code? This would handle the case where, for whatever reason, an extension or module caused a crash (i.e. corrupt installation, etc.) without taking down PackageManager as well. Thanks, Kevin From tjk@ams.org Tue May 27 20:52:16 2003 From: tjk@ams.org (Tom Kacvinsky) Date: Tue, 27 May 2003 15:52:16 -0400 Subject: [Pythonmac-SIG] MySQLdb -- dyld: python Undefined symbols In-Reply-To: References: Message-ID: <2147483647.1054050736@tjk.ams.org> On 2003/05/27 13:03 -0600 William McLendon wrote: < a whole lot of snipping > The error messages indicate a problem with linking against the OpenSSL libraries. I gather that you are using the Apple "stock" Python without PySSL installed. Try getting the PySSL stuff installed first, and the dyld error messages should go away. Tom From Jack.Jansen@cwi.nl Tue May 27 21:34:24 2003 From: Jack.Jansen@cwi.nl (Jack Jansen) Date: Tue, 27 May 2003 22:34:24 +0200 Subject: [Pythonmac-SIG] PackageManager maintainer questions In-Reply-To: <06058CEB-907A-11D7-87BF-000393CB1C86@tulane.edu> Message-ID: <9ADC706A-9082-11D7-9735-000A27B19B96@cwi.nl> On dinsdag, mei 27, 2003, at 21:32 Europe/Amsterdam, Kevin Ollivier wrote: >>> BTW. Moving some logic into a seperate process might also help with >>> the problem that 'import wxPython' interferes with the runloop of >>> the PackageManager itself. >> >> Doable, but not easy. It would require putting a client/server stub >> between PackageManager and pimp. > > Actually, thinking about this, what about using popen or something > similar and starting a separate instance of Python to run the module > installation test code? This would handle the case where, for whatever > reason, an extension or module caused a crash (i.e. corrupt > installation, etc.) without taking down PackageManager as well. I don't think this is worth it. It would still require to think up some protocol, and only really with the benefit that PackageManager wouldn't crash. If it crashes: too bad, blame the scapegoat:-) -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From barry at python.org Tue May 27 19:56:44 2003 From: barry at python.org (Barry A. Warsaw) Date: Tue May 27 19:02:02 2003 Subject: [Pythonmac-SIG] Your lists have been upgraded Message-ID: <16083.60716.404950.960229@yyz.zope.com> I've upgraded your lists to Mailman 2.1.2. Please let me know if you observe anything wacky. :) -Barry From israel at sandlotgames.com Tue May 27 16:43:00 2003 From: israel at sandlotgames.com (Israel C. Evans) Date: Tue May 27 19:10:25 2003 Subject: [Pythonmac-SIG] Shelve ... Denied! Message-ID: <919F9871-9094-11D7-958B-000393A47FF2@sandlotgames.com> hello there friendly python people. I'm currently attempting to use the shelve module in a couple of cgi scripts and after having gone through and gotten nearly everything working on the command line, I'm running into brick walls inside my browser. I'm using MacOS X 10.2.6 with a build of apache 2.0.4x with python 2.3a2. The error occurs when I try to open up a shelve. I'm not sure if it has to do with permissions since I've already made all involved cgi files and the shelve db executable and chmoded to 755. I'm thinking it might have something to do with the flags I'm using to open up the shelve, but they are the only way I could figure out how to open them in the console. here is the bit that python or maybe apache chokes on: db = shelve.open('200305','c') and this gives me this error (condensed due to the size of the cgitb traceback info I get). error: (13, 'Permission denied') args = (13, 'Permission denied') Does anyone have any clues as to why this might be happening? I would gratefully appreciate any help you might have to offer. Thanks, ~Israel~ From txagcs98 at hotmail.com Tue May 27 18:18:05 2003 From: txagcs98 at hotmail.com (William McLendon) Date: Tue May 27 19:18:39 2003 Subject: [Pythonmac-SIG] MySQLdb -- dyld: python Undefined symbols Message-ID: >The error messages indicate a problem with linking against the OpenSSL >libraries. >I gather that you are using the Apple "stock" Python without PySSL >installed. Hmmm... I tried grabbing the ObjC stuff from: http://pyobjc.sourceforge.net/software/; and also grabbed the pyssl.tgz file from there for good measure and tried both... Unfortunately installing these still didn't doing the trick :-/ I do have openssl installed on the machine, though, in /usr/bin/openssl with libssl in /usr/lib/... I think I'm going to bag this for another day, and just stick to using it on linux... Thanks for all the helpful emails :-) -William _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From Jack.Jansen at cwi.nl Wed May 28 12:00:47 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Wed May 28 04:59:23 2003 Subject: [Pythonmac-SIG] Shelve ... Denied! In-Reply-To: <919F9871-9094-11D7-958B-000393A47FF2@sandlotgames.com> Message-ID: On Wednesday, May 28, 2003, at 00:43 Europe/Amsterdam, Israel C. Evans wrote: > here is the bit that python or maybe apache chokes on: > db = shelve.open('200305','c') > > and this gives me this error (condensed due to the size of the cgitb > traceback info I get). > error: (13, 'Permission denied') > args = (13, 'Permission denied') This sounds like a typical unix permissions problem. Check the uiserID and mode on the shelve files and the userIDs that you expect to do updates. If there is only one userID that does updates then any mode that has rw-...... in the first column is okay. If there are multiple userIDs that do updates you need at least rw-rw-... or even rw-rw-rw-. Hmm, shelve.open() has no direct way to set the mode, it uses rw-rw-rw- modified by the umask. The umask is the bits that are automatically taken _out_ of the modes of the files you create, and it defaults to octal 022 (in other words, the bits ----w--w- are taken out of your filemode). If you set the umask to 02 or even 0 before creating the file that should help. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From Jack.Jansen at cwi.nl Wed May 28 12:06:02 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Wed May 28 05:04:36 2003 Subject: [Pythonmac-SIG] MySQLdb -- dyld: python Undefined symbols In-Reply-To: Message-ID: <9B0EF796-90EB-11D7-8DB1-0030655234CE@cwi.nl> On Tuesday, May 27, 2003, at 19:38 Europe/Amsterdam, William McLendon wrote: > Howdy, > > I'm on an OS-X box 10.2.6 and am trying to learn how to use the python > hooks into a MySQL database. The mysql server is running on the > localhost (just the basic installation so far)... I got the > MySQL-python-0.9.2 distribution from the sourceforge site. To my > knowledge it installed correctly. I don't recall seeing any errors > when I ran setup.py. > > So, I have a little test database just to learn the workings set up > called "testdb" and here's the python code that I've got so far in my > little learning code: > > #!/usr/bin/env python > import _mysql > db = _mysql.connect(host="localhost", db="testdb") > # EOF > > > Running this I get a big dump of undefined symbols: > dyld: python Undefined symbols: > _ERR_get_error_line_data > _SSL_SESSION_set_timeout Tom already pointed in the right direction: one of the modules was dynamically linked against the openSSL library, but this library could not be found at runtime. Why this is I don't know, as you state you have /usr/lib/libssl.dylib. Maybe the extension was linked against another libssl version? There is lots of debug output you can make the dynamic loader produce, see "man dyld". Maybe this gives a clue? -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From txagcs98 at hotmail.com Wed May 28 12:15:34 2003 From: txagcs98 at hotmail.com (William McLendon) Date: Wed May 28 13:16:08 2003 Subject: [Pythonmac-SIG] MySQLdb -- dyld: python Undefined symbols Message-ID: >From: Jack Jansen >To: "William McLendon" >CC: pythonmac-sig@python.org >Subject: Re: [Pythonmac-SIG] MySQLdb -- dyld: python Undefined symbols >Date: Wed, 28 May 2003 11:06:02 +0200 > >On Tuesday, May 27, 2003, at 19:38 Europe/Amsterdam, William McLendon >wrote: > >>Howdy, >> >>I'm on an OS-X box 10.2.6 and am trying to learn how to use the python >>hooks into a MySQL database. The mysql server is running on the localhost >>(just the basic installation so far)... I got the MySQL-python-0.9.2 >>distribution from the sourceforge site. To my knowledge it installed >>correctly. I don't recall seeing any errors when I ran setup.py. >> >>So, I have a little test database just to learn the workings set up called >>"testdb" and here's the python code that I've got so far in my little >>learning code: >> >>#!/usr/bin/env python >>import _mysql >>db = _mysql.connect(host="localhost", db="testdb") >># EOF >> >> >>Running this I get a big dump of undefined symbols: >>dyld: python Undefined symbols: >>_ERR_get_error_line_data >>_SSL_SESSION_set_timeout > >Tom already pointed in the right direction: one of the modules was >dynamically linked against the openSSL library, but this library could not >be found at runtime. Why this is I don't know, as you state you have >/usr/lib/libssl.dylib. Maybe the extension was linked against another >libssl version? > >There is lots of debug output you can make the dynamic loader produce, see >"man dyld". Maybe this gives a clue? Hrm... I tried again, with some debugging turned on with dyld, but still don't see anything in the output that gives me any clue as to _where_ it's looking for the ssl libs nor what exact library name it's hunting for. I'm using Python 2.2 that I believe came with Jaguar... Do you think it might be a problem with python not knowing where ssl might be? Or the mysql library not being able to find it? -William _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From Jack.Jansen at cwi.nl Thu May 29 23:46:45 2003 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Thu May 29 16:47:10 2003 Subject: [Pythonmac-SIG] MySQLdb -- dyld: python Undefined symbols In-Reply-To: Message-ID: On woensdag, mei 28, 2003, at 19:15 Europe/Amsterdam, William McLendon wrote: >> Tom already pointed in the right direction: one of the modules was >> dynamically linked against the openSSL library, but this library >> could not be found at runtime. Why this is I don't know, as you state >> you have /usr/lib/libssl.dylib. Maybe the extension was linked >> against another libssl version? >> >> There is lots of debug output you can make the dynamic loader >> produce, see "man dyld". Maybe this gives a clue? > > > Hrm... I tried again, with some debugging turned on with dyld, but > still don't see anything in the output that gives me any clue as to > _where_ it's looking for the ssl libs nor what exact library name it's > hunting for. I'm using Python 2.2 that I believe came with Jaguar... > > Do you think it might be a problem with python not knowing where ssl > might be? Or the mysql library not being able to find it? The dyld output also doens't give you a clue as to who tried to load the ssl library? The order of libraries loaded should tell you whether it's the mysql library or the python ssl extension. Another idea: try to build as much as possible on your own machine in stead of loading pre-built copies. You mention grabbing pyssl, for instance, if you grabbed a pre-built copy of that it could be that the person who did the build had things in a different location than you. At least then you know who to blame:-) -- - Jack Jansen http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - From robin at reportlab.com Fri May 30 14:18:27 2003 From: robin at reportlab.com (Robin Becker) Date: Fri May 30 08:18:40 2003 Subject: [Pythonmac-SIG] frozen dylib Message-ID: I started this thread in clpy, but I guess I will pursue it here to better effect. I'm trying to make a frozen dylib with Python-2.2.2 and Darwin 10.2. I can build Python and it runs just fine, same with freeze ie I can get frozen executables that work just fine. I have a big problem with common symbols though when I try to create a frozen shared library (a dylib) or a bundle. I assume I must be using a wrong flag when loading things from libpython2.2.a or during the compile. I am using the -fno-common flag during the colmpile of the things that are going into the frozen dylib, but I don't think that's done in the libpython2.2.a build. The freeze objects get -DBUILD_FREEZE -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common A quick test reveals that I can get rid of most messages by using -fno- common during the main python compile. After doing that and retrying my frozen dylib build I am left with only one message ld: Undefined symbols: _environ /usr/bin/libtool: internal link edit command failed make: *** [lib_rl_embed.dylib] Error 1 I suppose we're using environ some place inside python, but how do I ensure that it is provided for? Is this a completely wrong approach to building a linkable python resource? Has anyone else tried this sort of thing? -- Robin Becker From rswerdlow at transpose.com Fri May 30 14:09:10 2003 From: rswerdlow at transpose.com (Bob Swerdlow) Date: Fri May 30 13:09:21 2003 Subject: [Pythonmac-SIG] Segmentation Fault with AppleScripting Message-ID: <0dbc01c326ce$334d5390$046fa8c0@RSWERDLOW800> I'm writing a Mac OS X application in Python and trying to use AppleScripting to open a web location. However, I seem to be having trouble allocating and releasing the NSAppleScript class properly. Here is the problematic section of code: def openWebSite(self) strScript = 'open location "http://www.apple.com"' appleScript = NSAppleScript.alloc().initWithSource_(strScript) appleScript.executeAndReturnError_(None) appleScript.release() The result of calling this code is a Segmentation Fault. If I leave out the last line (appleScript.release()) then there does not seem to be a problem (though I think that would be a memory leak). What am I doing wrong? Bob Swerdlow COO Transpose rswerdlow@transpose.com 207-781-8284 http://www.transpose.com ---------------------------------- Fight Spam! Add this link to your signature (as I did): http://wecanstopspam.org Click through to find out more. ---------------------------------- From Martina at Oefelein.de Fri May 30 21:12:58 2003 From: Martina at Oefelein.de (Martina Oefelein) Date: Fri May 30 14:13:04 2003 Subject: [Pythonmac-SIG] Segmentation Fault with AppleScripting In-Reply-To: <0dbc01c326ce$334d5390$046fa8c0@RSWERDLOW800> Message-ID: <57D91FB2-92CA-11D7-A2F2-000A27979162@Oefelein.de> Hi Bob, > I'm writing a Mac OS X application in Python and trying to use > AppleScripting to open a web location. You can also do this without AppleScripting: url = NSURL.URLWithString_("http://www.apple.com") wsp = NSWorkspace.sharedWorkspace() wsp.openURL_(url) > However, I seem to be having trouble > allocating and releasing the NSAppleScript class properly. Here is the > problematic section of code: > > def openWebSite(self) > strScript = 'open location "http://www.apple.com"' > appleScript = NSAppleScript.alloc().initWithSource_(strScript) > appleScript.executeAndReturnError_(None) > appleScript.release() > > The result of calling this code is a Segmentation Fault. If I leave > out the > last line (appleScript.release()) then there does not seem to be a > problem > (though I think that would be a memory leak). Remove the last line. PyObjC takes care of the ugly reference counting, so you shouldn't have to call retain/release normally. If you call appleScript.release(), the object will be released twice, hence the crash. BTW: There is a dedicated mailing list for PyObjC: http://sourceforge.net/mail/?group_id=14534 You might get a quicker reply if you post PyObjC-related questions there. ciao Martina From just at letterror.com Fri May 30 21:28:53 2003 From: just at letterror.com (Just van Rossum) Date: Fri May 30 14:29:07 2003 Subject: [Pythonmac-SIG] Segmentation Fault with AppleScripting Message-ID: Martina Oefelein wrote: > You can also do this without AppleScripting: > url = NSURL.URLWithString_("http://www.apple.com") > wsp = NSWorkspace.sharedWorkspace() > wsp.openURL_(url) You can also do this without PyObjC: import webbrowser webbrowser.open("http://www.python.org/") (as a bonus, this is cross-platform) Just From deleeuw at stat.ucla.edu Fri May 30 23:25:03 2003 From: deleeuw at stat.ucla.edu (Jan de Leeuw) Date: Sat May 31 01:25:10 2003 Subject: [Pythonmac-SIG] PackageManager from CVS crashes Message-ID: <3B1D24FE-9328-11D7-BB8A-000393BB6D36@stat.ucla.edu> Opens window, but then crashes. Date/Time: 2003-05-30 22:21:02 -0700 OS Version: 10.2.6 (Build 6L60) Host: cabledoc112.frazmtn.com Command: python.exe PID: 2053 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 Thread 0 Crashed: #0 0x040c360c in AEHandleOApp(AEDesc const*, AEDesc*, long) #1 0x91b56570 in aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) #2 0x91b590cc in dispatchEventAndSendReply(AEDesc const*, AEDesc*) #3 0x91b56478 in aeProcessAppleEvent #4 0x96a83778 in AEProcessAppleEvent #5 0x0092dea8 in AE_AEProcessAppleEvent (_AEmodule.c:1098) #6 0x1007654c in call_function (ceval.c:3418) #7 0x10074144 in eval_frame (ceval.c:2095) #8 0x10076794 in fast_function (ceval.c:3498) #9 0x10076624 in call_function (ceval.c:3436) #10 0x10074144 in eval_frame (ceval.c:2095) #11 0x10076794 in fast_function (ceval.c:3498) #12 0x10076624 in call_function (ceval.c:3436) #13 0x10074144 in eval_frame (ceval.c:2095) #14 0x1007543c in PyEval_EvalCodeEx (ceval.c:2641) #15 0x10076828 in fast_function (ceval.c:3507) #16 0x10076624 in call_function (ceval.c:3436) #17 0x10074144 in eval_frame (ceval.c:2095) #18 0x1007543c in PyEval_EvalCodeEx (ceval.c:2641) #19 0x10076828 in fast_function (ceval.c:3507) #20 0x10076624 in call_function (ceval.c:3436) #21 0x10074144 in eval_frame (ceval.c:2095) #22 0x1007543c in PyEval_EvalCodeEx (ceval.c:2641) #23 0x100252a8 in function_call (funcobject.c:504) #24 0x1000bf90 in PyObject_Call (abstract.c:1756) #25 0x10015420 in instancemethod_call (classobject.c:2433) #26 0x1000bf90 in PyObject_Call (abstract.c:1756) #27 0x100763e0 in PyEval_CallObjectWithKeywords (ceval.c:3325) #28 0x1000e710 in PyInstance_New (classobject.c:576) #29 0x1000bf90 in PyObject_Call (abstract.c:1756) #30 0x1007694c in do_call (ceval.c:3622) #31 0x1007663c in call_function (ceval.c:3439) #32 0x10074144 in eval_frame (ceval.c:2095) #33 0x1007543c in PyEval_EvalCodeEx (ceval.c:2641) #34 0x100782a8 in PyEval_EvalCode (ceval.c:537) #35 0x100a9030 in run_node (pythonrun.c:1175) #36 0x100a87dc in PyRun_SimpleFileExFlags (pythonrun.c:774) #37 0x100b4f68 in Py_Main (main.c:415) #38 0x00001b5c in _start (crt.c:267) #39 0x000019dc in start Thread 1: #0 0x9002578c in select #1 0x0a076e94 in NotifierThreadProc #2 0x90020d28 in _pthread_body PPC Thread State: srr0: 0x040c360c srr1: 0x0200f030 vrsave: 0x00000000 xer: 0x00000000 lr: 0x040c35ec ctr: 0x040c35e0 mq: 0x00000000 r0: 0xbfffea10 r1: 0xbfffe8a0 r2: 0x48022242 r3: 0x00000000 r4: 0xbfffea10 r5: 0xbfffea20 r6: 0xbfffe8c0 r7: 0xbfffe930 r8: 0x100966bc r9: 0x00000001 r10: 0x901a3e10 r11: 0x00bcbee0 r12: 0x040c35e0 r13: 0x000e28cc r14: 0x008d1030 r15: 0x10101d08 r16: 0x00000000 r17: 0x00000000 r18: 0x00000006 r19: 0x00000005 r20: 0x00000000 r21: 0x000e28e8 r22: 0xbfffe9b0 r23: 0xbfffea20 r24: 0x00000000 r25: 0xbfffea10 r26: 0x61657674 r27: 0x00000001 r28: 0x6f617070 r29: 0xfffff954 r30: 0x00be60a0 r31: 0x040c35ec === Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; Editor: Journal of Multivariate Analysis, Journal of Statistical Software US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554 phone (310)-825-9550; fax (310)-206-5658; email: deleeuw@stat.ucla.edu homepage: http://gifi.stat.ucla.edu ------------------------------------------------------------------------ ------------------------- No matter where you go, there you are. --- Buckaroo Banzai http://gifi.stat.ucla.edu/sounds/nomatter.au ------------------------------------------------------------------------ ------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 3956 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030530/db0d5eab/attachment.bin From drift1 at bellsouth.net Sat May 31 10:02:07 2003 From: drift1 at bellsouth.net (drift1@bellsouth.net) Date: Sat May 31 09:00:26 2003 Subject: [Pythonmac-SIG] The Spanish Beauty Message-ID: <20030531130207.UXBX8979.imf54bis.bellsouth.net@mx05.mail.bellsouth.net> it's a mix of the Arabian beauty & the european grace ! satisfy your eyes with the beauty that u have never seen ;) -------------- next part -------------- A non-text attachment was scrubbed... Name: delete.jpg Type: application/octet-stream Size: 5199 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030531/bd4e27d6/delete.obj From benles at bldigital.com Sat May 31 11:04:13 2003 From: benles at bldigital.com (Ben Allfree) Date: Sat May 31 13:03:14 2003 Subject: [Pythonmac-SIG] Pythonmac consultants? In-Reply-To: <027001c3131f$b02f4e30$6701a8c0@dellPC> Message-ID: <000701c32796$a96b3920$917ba8c0@longshot> Does anyone know of wxPython/Pythonmac application consultants? I have a commercial wxPython app that I would like to test for portability and release under the MacOS. From postmaster at lse.ac.uk Sat May 31 22:40:58 2003 From: postmaster at lse.ac.uk (postmaster@lse.ac.uk) Date: Sat May 31 16:41:02 2003 Subject: [Pythonmac-SIG] Delivery Status Notification (Failure) Message-ID: This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. N.C.Nwosu@lse.ac.uk -------------- next part -------------- Skipped content of type message/delivery-status-------------- next part -------------- An embedded message was scrubbed... From: Subject: Re: 45443-343556 Date: Sat, 31 May 2003 16:39:10 --0400 Size: 1314 Url: http://mail.python.org/pipermail/pythonmac-sig/attachments/20030531/de7cf1b9/attachment.eml From deleeuw at stat.ucla.edu Sat May 31 15:39:13 2003 From: deleeuw at stat.ucla.edu (Jan de Leeuw) Date: Sat May 31 17:39:18 2003 Subject: [Pythonmac-SIG] PackageManager from CVS crashes In-Reply-To: <173FDB81-93AF-11D7-B67D-000A27B19B96@cwi.nl> Message-ID: <52472C0E-93B0-11D7-B140-000393BB6D36@stat.ucla.edu> Yes, wxWindows installed. This is where it chokes. [cabledoc112:~/Desktop] deleeuw% pythonw /Library/Frameworks/Python.framework/Versions/2.3/Lib/python2.3/plat- mac/pimp.py -sv Warning: database has no Version information Package Installed Message (AppleDevTools) yes (FrameworkBuild) yes (TclTkAqua) yes Documentation-2.3b1- no None Requirement: (FrameworkBuild) Framework-based build of Python. MacPython can be built in the standard unix way or as a framework, a Mac-specific way of packaging things. The framework build of MacPython has a lot more extra functionality when compared to the normal unix build. IDLE-0.8-binary yes Numeric-22.0-binary yes Numeric-22.0-source yes PIL-1.1.3-binary yes PIL-1.1.3-source yes PIL-1.1.4b2-source yes PyObjC-0.9-binary old Version 0.10CVS installed PyObjC-0.9-source old Version 0.10CVS installed PyOpenGL-2.0.1.03-bi no No module named GL.__init___ PyOpenGL-2.0.1.03-so yes PyOpenGL-2.0.1.04bet old Version 2.0.1.03 installed _tkinter-2.3b1-binar yes readline-2.3b1-binar yes wxPythonOSX-2.4.0.7- no Failure linking new module: : dyld: /Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/ Contents/MacOS/python multiple definitions of symbol _jcopy_block_row /sw/lib/libjpeg.62.dylib(jutils.lo) definition of _jcopy_block_row /usr/local/lib/libwx_macd-2.4.0.dylib(master.29622.o) definition of _jcopy_block_row On Saturday, May 31, 2003, at 14:30 US/Pacific, Jack Jansen wrote: > > On zaterdag, mei 31, 2003, at 07:25 Europe/Amsterdam, Jan de Leeuw > wrote: > >> Opens window, but then crashes. > > Do you have wxWindows installed? If you do then this is a known > problem, the wxWindows folks are working on fixing it. And, good that > you remind me, in the mean time I need to add a workaround. > > If you don't have wxWindows installed this is a new problem. I would > like to see the output of "pythonw .../Lib/plat-mac/pimp.py -sv" run > from the Terminal window. > -- > - Jack Jansen > http://www.cwi.nl/~jack - > - If I can't dance I don't want to be part of your revolution -- Emma > Goldman - > > === Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; Editor: Journal of Multivariate Analysis, Journal of Statistical Software US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554 phone (310)-825-9550; fax (310)-206-5658; email: deleeuw@stat.ucla.edu homepage: http://gifi.stat.ucla.edu ------------------------------------------------------------------------ ------------------------- No matter where you go, there you are. --- Buckaroo Banzai http://gifi.stat.ucla.edu/sounds/nomatter.au ------------------------------------------------------------------------ ------------------------- From Dispatch at McAfee.com Sat May 31 18:20:31 2003 From: Dispatch at McAfee.com (Dispatch@McAfee.com) Date: Sat May 31 18:22:25 2003 Subject: [Pythonmac-SIG] Helloooooooo Message-ID: <200305312220.h4VMKTiM024950@smtp1.netdoor.com> WARNING: This e-mail has been altered by MIMEDefang. Following this paragraph are indications of the actual changes made. For more information about your site's MIMEDefang policy, contact NETDOOR Spam Filter Administrator . For more information about MIMEDefang, see: http://support.netdoor.com/email/filtering.html An attachment named The_Truth_of_Love.pif was removed from this document as it constituted a security hazard. If you require this document, please contact the sender and arrange an alternate means of receiving it. -------------- next part -------------- I've got your email , but you forgot to upload the attachments. Don't be selfish , i sent you all the files i have, send me anything :( bye -------------- next part -------------- A non-text attachment was scrubbed... Name: wpakey.jpg Type: application/octet-stream Size: 25759 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20030531/0829a5ad/wpakey-0001.obj