Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-09-02 Thread Trent Mick
[Bob Ippolito wrote] > Of course the standard installers make this link. What they are > missing (the framework ones anyway) is a link for pydoc, ActivePython installs a /usr/local/bin/pydoc... > and all of > them are missing a versioned pydoc binary. ...but not a versioned one. Trent

Re: [Pythonmac-SIG] PySerial not working on Tiger

2005-09-02 Thread Mark Baxter
On Sep 3, 2005, at 2:05 AM, Bob Ippolito wrote:Because "import serial" imports whatever thing it finds named serial, and it's not finding PySerial because you have a module named serial.py.  If the PySerial documentation says "name your script serial.py", then it's dumb because that won't work.-bob

Re: [Pythonmac-SIG] PySerial not working on Tiger

2005-09-02 Thread Bob Ippolito
On Sep 2, 2005, at 5:02 PM, Mark Baxter wrote:On Sep 3, 2005, at 1:57 AM, Bob Ippolito wrote:Don't name your module serial.Is there any particular reason why? The PySerial website (http://pyserial.sourceforge.net/) seems to think that it works and all I have done is try to follow the examples.Becau

Re: [Pythonmac-SIG] PySerial not working on Tiger

2005-09-02 Thread Mark Baxter
On Sep 3, 2005, at 1:57 AM, Bob Ippolito wrote:Don't name your module serial.-bobIs there any particular reason why? The PySerial website (http://pyserial.sourceforge.net/) seems to think that it works and all I have done is try to follow the examples./MB

Re: [Pythonmac-SIG] PySerial not working on Tiger

2005-09-02 Thread Bob Ippolito
On Sep 2, 2005, at 4:17 PM, Mark Baxter wrote:Hi all.Sorry if this is really basic, but I've been tearing my hair out searching all over the place. I'm a complete beginner to Python (but not programming in general, I'm more of a C++ man normally).I am trying to install PySerial on a basic MacPython

[Pythonmac-SIG] PySerial not working on Tiger

2005-09-02 Thread Mark Baxter
Hi all.Sorry if this is really basic, but I've been tearing my hair out searching all over the place. I'm a complete beginner to Python (but not programming in general, I'm more of a C++ man normally).I am trying to install PySerial on a basic MacPython installation on 10.4. As is suggested by the

Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-09-02 Thread Chris Barker
Bob Ippolito wrote: >> I really wish specifying the version would become standard practice in >> python development. > > That cuts both ways, for a lot of scripts you don't give a damn which > python it is and changing the hash-bang every time you upgrade is a pain. True. I actually make a cho

Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-09-02 Thread Bob Ippolito
On Sep 2, 2005, at 2:52 PM, Chris Barker wrote: > Just to add my $0.02 for completeness: > > I think the standard installers put a "python2.4" as well as "python" > in usr/local/bin. If they don't, they should, and until then, you can > put in a link yourself: Of course the standard installers

Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-09-02 Thread Chris Barker
Just to add my $0.02 for completeness: People use: #!/usr/bin/env python so that the script will work on any system with a python on the PATH, whether it's in /usr/bin or /usr/local/bin or wherever else. Particularly on Linux systems, python gets installed different places depending on whethe

Re: [Pythonmac-SIG] matplotlib vector graphics

2005-09-02 Thread Teemu Rinne
Thanks Christian, it does work, on one Mac out of three... It works on my laptop with matplotlib and stuff installed several months ago. It does not work on a Panther G5 with a newly installed matplotlib (pythonmac). It does not work on an out-of-the box Tiger with matplotlib (pythonmac) installe

Re: [Pythonmac-SIG] matplotlib vector graphics

2005-09-02 Thread Samuel M. Smith
I just started using matplotlib a couple of weeks ago. And it will generate .ps files. I am using matplotlib 0.83.2 with python 2.41 framework on 10.4.2 but I have problems with the font definitions in the .ps or .eps files. When I try to convert them to .pdf I get an error in distiller, pr

Re: [Pythonmac-SIG] matplotlib vector graphics

2005-09-02 Thread Christian Meesters
Hi Teemu, Sure, why not? It works like in the examples provided with matplotlib. For Example: import matplotlib matplotlib.use('Agg') import pylab pylab.plot(list1,list2,'k-') pylab.title("some title") pylab.xlabel('some unit label'

[Pythonmac-SIG] matplotlib vector graphics

2005-09-02 Thread Teemu Rinne
Hi, Can the vector based backends (PS or SVG) be used on OS X? If so, could someone provide examples. I am using the binary package (Panther) from pythonmac -- Teemu Rinne Dept Psych Univ Helsinki ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.o

Re: [Pythonmac-SIG] opening an application from python

2005-09-02 Thread altern
Bob Ippolito(e)k dio: > > On Sep 2, 2005, at 1:29 AM, altern wrote: > >> hi >> >> I am trying to launch a sound application (Pure Data) from a python >> program. For this I am using this code: >> # >> execdir = os.path.dirname(sys.argv[0]) >> pdexc = os.path.join(execdir, >> "/Pd-0.38-4-extended-

[Pythonmac-SIG] general bundle question

2005-09-02 Thread ah
Hello all,   Can someone on the list be kind enough to explain why my bundle (created with bundlebuider) won't start when I double click it in the finder or when I type : >open MyApp.app   but runs fine when I type : >MyApp.app/Contents/MacOs/Myapp in a terminal window.   The icon of my bund

Re: [Pythonmac-SIG] opening an application from python

2005-09-02 Thread Bob Ippolito
On Sep 2, 2005, at 1:29 AM, altern wrote: > hi > > I am trying to launch a sound application (Pure Data) from a python > program. For this I am using this code: > # > execdir = os.path.dirname(sys.argv[0]) > pdexc = os.path.join(execdir, > "/Pd-0.38-4-extended-RC1.app/Contents/MacOS/Pd") > arg =

[Pythonmac-SIG] opening an application from python

2005-09-02 Thread altern
hi I am trying to launch a sound application (Pure Data) from a python program. For this I am using this code: # execdir = os.path.dirname(sys.argv[0]) pdexc = os.path.join(execdir, "/Pd-0.38-4-extended-RC1.app/Contents/MacOS/Pd") arg = os.path.join(execdir, "audio.pd") os.spawnl(os.P_NOWAIT, pd