Re: [Pythonmac-SIG] py2app standalone options

2004-12-17 Thread Chris Barker
Hi all, I originally came down on Has' side of this debate, but now think Bob has made the right choices, so I thought I'd add a couple comments. First, I'm a little unclear on what exactly Has wants. Could you clarify? I know what I want, I think what Bob has done accomidates this very well.

[Pythonmac-SIG] Py2App 0.1.7

2004-12-30 Thread Chris Barker
Hi all (but particularly Bob) I just installed Py2App with the installer, but when I tried to use it I got: Traceback (most recent call last): File setup.py, line 21, in ? import py2app File /purelib/py2app/py2app/__init__.py, line 33, in ? File /purelib/py2app/py2app/install.py, line

Re: [Pythonmac-SIG] Py2App 0.1.7

2004-12-30 Thread Chris Barker
Bob Ippolito wrote: My first question was: where the heck is /purelib ? That's an artifact of how the distutils install command compiles .py files under bdist_mpkg, eventually I'll fix that. Thanks. It made the error confusing enough that it took me a while to figure out what was going on. So,

Re: [Pythonmac-SIG] coding preference

2005-01-18 Thread Chris Barker
Bob Ippolito wrote: On Jan 16, 2005, at 5:00, Pete wrote: I have been wondering what to use for my next project which involves a simple static window with graphical image background and drop down lists with dynamic content. If you use PyObjC, all of the widgets you need are already part of

Re: [Pythonmac-SIG] coding preference

2005-01-19 Thread Chris Barker
Dethe Elza wrote: Right now I'm not concerned with cross-platform issues, but if I were I'd rather see time spent on making a strong, Pythonic UI library on top of pyobjc (mac), pywin32 (win), and pygtk (linux), Like PyGUI? (http://nz.cosc.canterbury.ac.nz/~greg/python_gui/) On the other hand,

Re: [Pythonmac-SIG] [OT] To upgrade Mac OSX or not?

2005-01-25 Thread Chris Barker
- Original Message - From: Skip Montanaro [EMAIL PROTECTED] This is probably a bit off-topic for this list, That's OK. This list is the only one I'm on where folks that seem to really understand OS-X reside as well. It seems that Apple's upgrade policy almost forces me to buy new

[Pythonmac-SIG] matplotlib OS-X binary problems.

2005-02-03 Thread Chris Barker
Hi all, I posted a note here the other day about a matplotlib binary. I've discovered a problem with it. Apparently, it has linked against the libfreetype in /usr/X11. That means it will work fine on a system with Apple's X11 installed (like mine or the first system I tested it on). So, the

Re: [Matplotlib-users] Re: [Pythonmac-SIG] matplotlib OS-X binary problems.

2005-02-03 Thread Chris Barker
Bob Ippolito wrote: You have three options: - make sure the dylibs aren't sitting around in the same location as the .a, and make sure the .a's path is preferred (you could make a local dir, -L to it, symlink the archives in) I'm going to give this a try. - change the setup.py relatively

Re: [Pythonmac-SIG] fink vs DarwinPorts?

2005-02-04 Thread Chris Barker
Russell E. Owen wrote: I've seen a lot of discussion lately about fink and darwinports and I'm wondering if folks who have experience with either can comment on their relative merits? While we're at it, let's add Gentoo/Portage to the mix. I have been very impressed with Gentoo Linux, but

Re: [Pythonmac-SIG] Re: [Matplotlib-users] matplotlib OS-X binary problems.

2005-02-04 Thread Chris Barker
Robert Kern wrote: Chris Barker wrote: However, that doesn't seem to work if I have libfreetype.dylib somewhere standard, and I certainly don't want to remove it! (Maybe I could temporarily, but that's hardly the robust solution I'm looking for) Change the paths that distutils will add

Re: [Pythonmac-SIG] Fink, DarwinPorts vs py2app

2005-02-08 Thread Chris Barker
Bob Ippolito wrote: On 8-feb-05, at 15:51, Brendan Simons wrote: My question: can I use py2app to build a redistributable app that's statically linked to either package manager's libraries? Or do I have to install Fink/DarwinPorts on each of my clients' machines? If you are distributing a single

[Pythonmac-SIG] pythonmac Wiki has been spammed.

2005-02-08 Thread Chris Barker
Hi all, I'm not sure who maintain the pythonmac wiki, but it's been spammed. What a pain in the *%*^! for example, see: http://pythonmac.org/wiki/TkAqua -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959

Re: [Pythonmac-SIG] Fink, DarwinPorts vs py2app

2005-02-08 Thread Chris Barker
Bob Ippolito wrote: Mine is not. I'm going to toss it in favor of a mpkg and/or egg based solution when one is ready. Sounds good to me. I've always thought that you need to make it easy, but not too easy. Years ago, someone hosted a python on Linux site, that had nothing but a bunch of rpm of

Re: [Pythonmac-SIG] Mac User Python newbies

2005-02-08 Thread Chris Barker
Bob Ippolito wrote: Getting you, the Mac user who is familiar with scripting, up and running with - 1) Python There are a number of good books out there. I recommend Dive Into Python (in print or on the web) and Learning Python 2) An IDE and debugger (Xcode?) Don't be too dismayed by the lack

Re: [Pythonmac-SIG] Mac User Python newbies

2005-02-08 Thread Chris Barker
Bob Ippolito wrote: Also, Mac OS X has only been around a few years and there aren't many people working on making it better (though I'm sure there are lots of people using it), so you can't really expect a best of breed solution just yet. True, but frankly, the IDE situation is not that much

Re: [Pythonmac-SIG] Mac User Python newbies

2005-02-09 Thread Chris Barker
Bob Ippolito wrote: In our case, it was roughly 10x easier to hit the Mac platform first. Wow! That is a BIG ratio...really? The Tkinter GUI and the PyObjC GUI share a bunch of code (as much as is reasonable). Ah, that explains it. The Tkinter GUI actually has code in it to emulate a bunch of

Re: [Pythonmac-SIG] Re: Mac Guikits

2005-02-09 Thread Chris Barker
Troy Rollins wrote: Personally, I thing all of the current GUI builders look like Windows ports (since they mostly are), and do not reflect the way a Mac user would develop anything, never mind a GUI designer. For the most part, I think it is going to take a tool which originates on the Mac to be

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-14 Thread Chris Barker
Roger Binns wrote: My wxPython code is hand coded. I haven't found any of the design tools to be much good for non-trivial projects. For example try doing something like the wxPython demo with one of them. They also don't work well if you have custom widgets, which is a lot of my UI. This

Re: [Pythonmac-SIG] Re: Mac Python User Newbies

2005-02-14 Thread Chris Barker
thor wrote: Well, that is a good point. I suppose everyone will have a differing opinion on that, particularly in terms of goals. For me, I'd like to see a single package, which includes a GUI designer, script editor with colorizing, debugger, interactive console, some sort of module browser for

Re: [Pythonmac-SIG] Re: Mac newbie

2005-02-14 Thread Chris Barker
Bob Ippolito wrote: 4. AnyGui seemed like a really good idea to me. Lots of good ideas never get the attention and effort they deserve. Except that AnyGui was never a good idea. A wrapper around a wrapper around a wrapper around a . just too much! As far as I can tell, there are two good

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-14 Thread Chris Barker
Wolfgang Keller wrote: If for each given problem one implementation was chosen as the official one To some extent, while Guido could endorse something (which is more or less the case with IDLE), there is no way to name something the official one, and even if there were, there's nothing to stop

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-14 Thread Chris Barker
Bob Ippolito wrote: Dumb question: What's wrong with wxScintilla? Doesn't SPE use it as well? What's Boa using? It's currently really slow on Mac OS X, as mentioned before. I don't like environments where I can type faster than the redraw. No idea about Boa. Boa uses wxScintilla (AKA wxSTC)

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-14 Thread Chris Barker
Troy Rollins wrote: I think that what the new user really want, more than free, is something which provides a raodmap to being productive. I've lost track, have you tried any of the proprietary tools? (Wing, etc.). I know I haven't. but the whole project? It is just too big, with too many lines

Re: [Pythonmac-SIG] another query about IDE

2005-02-16 Thread Chris Barker
Charles Hartman wrote: In that long discussion, someone mentioned jEdit, so I went and looked it up. It looks very promising and robust. But am I right in thinking that the only path toward GUI apps that it would support would be Java (JPython) based? Rather than wx, and so on? It's an editor,

Re: [Pythonmac-SIG] [ann] Appscript Installer 1.0

2005-02-16 Thread Chris Barker
Bob Ippolito wrote: Also, the extensions in this appscript installer weren't built with PantherPythonFix, so they are tightly bound to the Python 2.3.0 installation. If they were built with a PantherPythonFix'ed installation, then they would be compatible across all Python 2.3.x on Mac OS

Re: [Pythonmac-SIG] Why do I need PantherPythonFix?

2005-02-22 Thread Chris Barker
Bob Ippolito wrote: I also rarely screw with PATH. Using /usr/bin/env is saying let PATH decide. right. I am always working across platforms, so I want to specify which python to use, but not specify where to find it. I use explicit paths like: # MacPython 2.3.5 /usr/local/bin/python2.3 #

Re: [Pythonmac-SIG] Using Matplotlib interactive/GUI - How to?

2005-03-07 Thread Chris Barker
Charles Moad wrote: I don't think this file is ever explicitly made for you. You can download a sample from his website, http://matplotlib.sourceforge.net/.matplotlibrc. Download this and put it in your home dir. Yes, there is one there by default:

Re: [Pythonmac-SIG] Re: Binary Matplotlib package, working. Need to keep script running after plotting.

2005-03-07 Thread Chris Barker
Louis Pecora wrote: BUT. (Users are never satisfied are they/we? :-) ). My ultimate goal is to not wait until the end of the script to do the plot, but to be able to plot and keep the script running. This can be done either by pausing the script (in some way) or by leaving the matplotwindow

Re: [Pythonmac-SIG] Re: Binary Matplotlib package, working. Need to keep script running after plotting.

2005-03-07 Thread Chris Barker
Louis Pecora wrote: You pretty much got it. OK. I've enclosed a little script that demonstrates calling up some stock dialogs in a script with wxPython. really the only trick is that you need to initialize an app first. Look through the wx docs to see what standard dialogs there are. Plus there

Re: [Pythonmac-SIG] Missing extensions for Panther Python

2005-03-09 Thread Chris Barker
Bob Ippolito wrote: Note that _bsddb and readline include their respective dependencies statically, where _tkinter requires TclTkAqua 8.4 from: http://tcltkaqua.sf.net/ not that this is all that big a deal, but how hard would it be to make a single installer for everything that Tkinter needs

Re: [Pythonmac-SIG] GUI design tools

2005-03-10 Thread Chris Barker
Mark Phillips wrote: Thanks to everyone who replied. The information is useful and I will investigate each option. One other note. Boa is worth checking out for an integrated GUI design tool and IDE, but I'm not sure it's ready to go on OS-X. Last I heard, it wasn't yet working with wxPython

Re: [Pythonmac-SIG] GUI design tools

2005-03-10 Thread Chris Barker
Charles Hartman wrote: That is how I have found the situation. I use WingIDE for editing and debugging, but it doesn't include any graphic designer for wx. I wish something that did worked, or that I could get it to work. Several half-there solutions; but everything I've tried either isn't

[Pythonmac-SIG] OT cvs version with OS-X 10.3?

2005-03-22 Thread Chris Barker
Hi all, Sorry for the OT question, but this is the only list I'm on with knowledgeable (about OS-X) and helpful folks. I just noticed that the cvs client I have on my box (which came with Apple's XCode tools) is version 1.10, which is pretty old, and lacks at least one feature I want (update

Re: [Pythonmac-SIG] ANN: py2app 0.1.8

2005-03-22 Thread Chris Barker
Bob Ippolito wrote: Actually, I'm not totally sure I trust the 10.3+ zip files for symlinks. Disk images are the popular solution. Thanks for the tip, I have had problems moving .app bundles around through a Windows-based server. Some later version of py2app will probably have an option for

Re: [Pythonmac-SIG] RE: IDE recommendation

2005-03-29 Thread Chris Barker
Lee Cullens wrote: I'm leery of SPE, SPE has only recently worked at all on the Mac, and has a pretty Windows-centric design. so maybe a more general recommendation - an IDE I can grow with that has a significant user base, is still reasonably maintained (maybe even evolving). check the

Re: [Pythonmac-SIG] Re: IDE recommendation

2005-03-30 Thread Chris Barker
I had looked at XCode So what is the story with XCode? Has Apple made it extensible and customizable enough that it could be made into a good general purpose IDE/editor? One thing that has always bugged me about all the IDEs I've even seen is that they are designed for a couple

Re: [Pythonmac-SIG] Re: IDE recommendation

2005-04-06 Thread Chris Barker
I've become fond of TextMate lately. Does it have incremental search? I really, really love that! -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle,

Re: [Pythonmac-SIG] Python documentation in PythonIDE--for Lee Cullens

2005-04-07 Thread Chris Barker
Charles Hartman wrote: Welcome to the Wing bandwagon (??). I like it a whole lot. It works a little more easily on Windows (which I use only to build distributables) than on Mac (where I use it all the time), because of the X11 layer on Mac; Isn't Wing built with QT? If so, are they working on

Re: [Pythonmac-SIG] Python documentation in PythonIDE--for Lee Cullens

2005-04-07 Thread Chris Barker
Bob Ippolito wrote: Isn't Wing built with QT? If so, are they working on a native version? No, and I doubt it. % macho_find WingIDE.app ... WingIDE.app/Contents/MacOS/bin/gtk-bin/lib/libgtk-x11-2.0.0.200.4.dylib Well, that explains the X dependence! maybe GTK will really become a cross platform

Re: [Pythonmac-SIG] PyOXIDE wishes?

2005-04-12 Thread Chris Barker
[EMAIL PROTECTED] wrote: Sometime between now and WWDC, I'm planning on coming out with a major update for PyOXIDE http://projects.gandreas.com/pyoxide Glenn, I'm sure you've seen the recent threads her bemoaning the lack of good tools (particularly open-source ones) for newbies developing with

Re: [Pythonmac-SIG] changging inheritance on the fly?

2005-04-18 Thread Chris Barker
altern wrote: Michael Hudson wrote: The way you ask the question suggests you don't know Python especially well. As Bob says, there are likely better ways to acheive your goal. any tips about those other ways? A) this is more of a topic for comp.lang.python, but as long s we're here... B) We

Re: [Pythonmac-SIG] Upgrading to 2.4.1

2005-04-23 Thread Chris Barker
David M. Cooke wrote: that way. I put: export $PATH:PATH=/usr/local/bin You mean export PATH=$PATH:/usr/local/bin of course? Yes, of course. that's a good way to confuse a newbie! Sorry about that. -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Pythonmac-SIG] Upgrading to 2.4.1

2005-04-23 Thread Chris Barker
Bob Ippolito wrote: On Apr 22, 2005, at 4:38 AM, Yair Benita wrote: If it co-exist how do I control which one is used when simply typing /usr/bin/python at the command line? NEVER EVER change anything in /usr (except /usr/local) or /System. DO NOT EVER DO THAT. BAD. I think the OP was not

Re: [Pythonmac-SIG] py2applet--is it really this easy?

2005-04-25 Thread Chris Barker
Bob Ippolito wrote: On Apr 24, 2005, at 12:20 AM, Kevin Walzer wrote: I dragged and dropped the main launcher script on the py2applet icon, and it proceeded to create a standalone package complete with PyQt libraries stuffed in! Yes, it really is that easy. So what's the difference between an

Re: [Pythonmac-SIG] Which Python are people going to use?

2005-04-29 Thread Chris Barker
[EMAIL PROTECTED] wrote: So if your archive is the only one that matters anyway, then we (the participants of this SIG) could start a massive packaging campaign to make it the industry standard. Yes, Yes, Yes! please, let's all do this! It's really a nightmare that people can get packages from

Re: [Pythonmac-SIG] (no subject)

2005-05-10 Thread Chris Barker
Ronald Oussoren wrote: The same is true for something like DYLD_FRAMEWORK_PATH. This might also be useful for testing but can cause serious problems when you always set it Sure, but no one would mess with DYLD_FRAMEWORK_PATH in nearly so casual a way as people mess with PYTHONPATH. I

Re: [Pythonmac-SIG] Is this the correct way to have installed and to use Python 2.4

2005-05-22 Thread Chris Barker
Bob Ippolito wrote: Change your PATH environment variable to put /usr/local/bin before / usr/bin or equivalent. That's option A. Option B. is to use python2.4 when you want 2.4, either at the command line, or in a script's #! line: #!/usr/bin/env python2.4 I'm pretty sure Bob's 2.5

Re: [Pythonmac-SIG] Apple's python extensions into Quartz2D

2005-05-31 Thread Chris Barker
Robert Kern wrote: I disliked the implementation (undocumented, closed source SWIG bindings are largely unusable), so I wrote my own using Pyrex. I call it, unimaginatively, ABCGI, A Better CoreGraphics Interface. It is part of Kiva, Enthought's graphics library, and has served as ground

Re: [Pythonmac-SIG] Python Help?

2005-06-02 Thread Chris Barker
Charles Hartman wrote: On Jun 1, 2005, at 10:33 PM, Matthew S-H wrote: list[currentWord:currentWord + 1] = [word[:-1], word[-1]] You start with a list of strings, but your code replaces one (or more) of them, not with a different string or two strings, but with a tuple whose

Re: [Pythonmac-SIG] Spe-OSX package, wxGladeOSX updates; Boa Constructor coming

2005-06-03 Thread Chris Barker
Kevin Walzer wrote: I'm now also supporting Tiger only. ouch! Darn, this is disappointing. It will be a quite a while 'till most people are running Tiger. Is there any chance of sticking with Panther? My understanding is that anything built for Panther will run on Tiger anyway. In any case,

Re: [Pythonmac-SIG] Python Help?

2005-06-06 Thread Chris Barker
I would just like to say THANK YOU VERY MUCH!!! You're welcome. I still need to get IDLE installed on Tiger (which I just upgraded to). Why do you need to get IDLE working? It's really not the best option on OS-X anyway. I'd try PyOxide, or a plain old text editor and command line. If you

Re: [Pythonmac-SIG] matplotlib on Tiger?

2005-06-07 Thread Chris Barker
Charles Moad wrote: I am posting a new 0.81 build with basemap-0.5 right now for Panther. But does this use python 2.4 ? That wasn't' clear to me from the download page. - Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT

Re: [Pythonmac-SIG] matplotlib on Tiger---and Panther, with Py2.3 and Py2.4...

2005-06-08 Thread Chris Barker
John Hunter wrote: If either of you have a diff against setup*.py that will make mpl src builds on these systems work better, I'll fold them into the main line. I had intended to do this, but before I do, I think theres a need for a little discussion. Charles and I have taken two different

Re: [Pythonmac-SIG] [Matplotlib-users] Re: matplotlib on Tiger?

2005-06-08 Thread Chris Barker
Charles Moad wrote: Installing each dependency would probably be just as easy as trying to use components from my installer. I put instructions for how to do this in my package for OS-X-10.3, py2.3.0. Here they are. If you do all this, you can donate the package to Bob's repository on

Re: [Pythonmac-SIG] [Matplotlib-users] Re: matplotlib on Tiger?

2005-06-08 Thread Chris Barker
Charles Moad wrote: Installing each dependency would probably be just as easy as trying to use components from my installer. I put instructions for how to do this in my package for OS-X-10.3, py2.3.0. Here they are. If you do all this, you can donate the package to Bob's repository on

Re: [Pythonmac-SIG] Where to go for wxPython help tutorials?

2005-06-16 Thread Chris Barker
Robert Kern wrote: I do interactive plotting with matplotlib all the time exactly as you describe. Robert, do you have any small demo programs that do this? I think it would be a good thing to have out there. Perhaps the embedded_in_wx examples already do this, but I haven't checked them

Re: [Pythonmac-SIG] Where to go for wxPython help tutorials?

2005-06-16 Thread Chris Barker
Louis Pecora wrote: Chris Barker wrote: If you are interested in using FloatCanvas, you should send me a note, and I'll send you the latest version, and I can add you to a low-traffic mailing list for announcements and technical discussion. Thanks for the offer. I'll take you up

Re: [Pythonmac-SIG] How do you install TkInter for python 2.4 (on 10.3)

2005-06-16 Thread Chris Barker
Robert Kern wrote: I have had problems with matplotlib/Tk/Python2.4 on Tiger with both the Apple-installed frameworks and freshly downloaded ones. it is matplotlib-specific. I recommend wxPython 2.6.1 on Tiger for matplotlib. Thanks for the heads up! Personally, I don't use TK anyway,

[Pythonmac-SIG] python2.4, bdist_mpkg, matplotlib and data dir.

2005-06-17 Thread Chris Barker
Hi all (but mostly Bob) I'm having trouble with bdist_mpkg and the matplotlib data dir. In setup.py, data_files is defined as: [('share/matplotlib', ['fonts/afm/cmex10.afm', 'fonts/afm/cmmi10.afm', 'fonts/afm/cmr10.afm', 'fonts/afm/cmsy10.afm', 'fonts/afm/cmtt10.afm', 'fonts/afm/pagd8a.afm',

Re: [Pythonmac-SIG] python2.4, bdist_mpkg, matplotlib and data dir.

2005-06-17 Thread Chris Barker
Thanks for being so responsive, Bob. Bob Ippolito wrote: but when I use bdist_mpkg, they get put in: /usr/local/share/share/matplotlib Note the double share. That's probably a bug, but it should probably happen with Python 2.3 also. Can you reproduce there? Actually, it seems to work

Re: [Pythonmac-SIG] Aquamacs

2005-06-21 Thread Chris Barker
Kevin Walzer wrote: snip I tried Aquamacs but on the file I loaded it was displayed as one very long wrapped line with some funny character where the line endings should have been. I assume the editor was configured to demand a particular character for line endings and this file used a

[Pythonmac-SIG] OS-X package for matplotlib 0.82 for OS-X

2005-06-24 Thread Chris Barker
Hi folks, There are now binary installers for OS-X for matplotlib 0.82 for both Apple's python2.3.0 and the 2.4.1 Framework build (available at: http://undefined.org/python/) They were built on OS-X 10.3.9, and should work there and on 10.4 They work with Agg, Tk and Wx back ends, and require

Re: [Pythonmac-SIG] not MacPython - right place?

2005-07-20 Thread Chris Barker
William K wrote: The problem is, there is no option in bdist to specify an install- headers location, at least not in the package I'm looking at (Numeric). unless you really want to do things yourself, the best bet is to first look and see if the package you need is at:

Re: [Pythonmac-SIG] Solid GUI toolkits for Mac?

2005-07-27 Thread Chris Barker
Robert Kern wrote: wxPython and Tk are so-so in this regard. They use the real thing underneath for most of their widgets. Really? TK sure didn't used to do this.And does it use an native higher level widgets? In any case, I haven't used TK in a long time, but everything I've seen indicates

Re: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework

2005-08-11 Thread Chris Barker
Bob Ippolito wrote: On Aug 11, 2005, at 6:15 AM, Samuel M. Smith wrote: if sys.platform=='darwin': if os.path.realpath(sys.executable).startswith('/System'): # This is when Python is from Apple framework opt.extend([-Wl,-framework,-Wl,Python]) #else we are running in

Re: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework

2005-08-11 Thread Chris Barker
Samuel M.Smith wrote: Or should I give up and use DarwinPorts or Fink? Please don't, it would be really nice to have SciPy build on a fink-free OS-X. Please make sure to file patches for the changes to need to make to get it to work. -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework

2005-08-12 Thread Chris Barker
Samuel M. Smith wrote: The gcc 3.3 issue was the key. Thanks for help. Below is a list of what I did. Could someone take these directions and create a pkg installer for scipy? So others can just double click to install? Great idea..why not you? py2app bdist_mpkg is fabulous. If you

[Pythonmac-SIG] How to tell if a .app is clicked again?

2005-08-16 Thread Chris Barker
Hi all, I'm working on a project in which we're trying to write a Web app that can also be run stand-alone on a non-networked machine. so far, I've got a little demo that creates a tiny little database-backed web site using: Quixote Cheetah SQLite pysqlite If it's run as __main__, it starts

Re: [Pythonmac-SIG] How to tell if a .app is clicked again?

2005-08-16 Thread Chris Barker
Kevin Ollivier wrote: I can't answer the questions you posed below, as I do almost all of my Mac work with wxPython, but when I read about what you're trying to do I couldn't help but think that this is exactly what ActiveGrid AppBuilder is for: http://www.activegrid.com Granted,

Re: [Pythonmac-SIG] How to tell if a .app is clicked again?

2005-08-16 Thread Chris Barker
Bob Ippolito wrote: IIRC, on Mac OS X, there isn't a difference between re-launching and becoming active. Double-clicking the app should have the same behavior as cmd-tabbing over to it (or using exposé, or the dock, etc.), because LaunchServices recognizes that the application is

Re: [Pythonmac-SIG] How to tell if a .app is clicked again?

2005-08-16 Thread Chris Barker
Nicholas Riley wrote: Which leads me to another idea: Can I tell OS-X that I DO want another instance of the app launched rather than raising an existing one? You can do this (LaunchServices lets you multi-launch apps, or you can always execute the binary directly), but not from the Finder.

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

Re: [Pythonmac-SIG] CoreGraphics module for python 2.4.1

2005-09-12 Thread Chris Barker
Nicholas Riley wrote: Apple's python seamed to come with the CoreGraphics module. Can I get that same module for python2.4.1 (form undefined.org)? If so, how? OS-X 10.3, if it matters. Nope, the module is closed-source (most likely because it uses CoreGraphics/Cocoa SPI to do crazy stuff

Re: [Pythonmac-SIG] messed up Tiger python install

2005-09-13 Thread Chris Barker
Robert Kern wrote: But please consider writing clear documentation telling people how to modify their $PATH, instead. If you do that please be sure to mention that you can also just use: python2.4 at the prompt and in the #! line of scripts. You probably need to put /usr/local/bin in the

Re: [Pythonmac-SIG] troubles with distutils

2005-09-18 Thread Chris Barker
andrea valle wrote: Now I want to install pyx (http://pyx.sourceforge.net/) but it seems that I am not able to. this is my command line: apples-Computer:~ apple$ python /Users/apple/Desktop/PyX-0.8.1/setup.py install running install error: $MACOSX_DEPLOYMENT_TARGET mismatch: now but

Re: [Pythonmac-SIG] Using distutils with XCode

2005-09-30 Thread Chris Barker
Paul Kinnane wrote: the distutils on OSX10.4. I don't have CodeWarrior 7 and wondered if it was possible to manually compile the library using XCode? I see it is possible using MPW (http://www.nevada.edu/~cwebster/Python/MPWHOWTO/MPWHOWTO.html) - that is a very old doc, and only applies to

Re: [Pythonmac-SIG] Extending Python (OS 10.3.9)

2005-09-30 Thread Chris Barker
The best advice I can give you is to use distutils to do the compiling for you. It knows about all the include and linking directories that are required: http://docs.python.org/dist/dist.html If your case is simple, which it seems to be so far, you can write a very simple setup.py script, and

Re: [Pythonmac-SIG] Using distutils with XCode

2005-10-03 Thread Chris Barker
Paul Kinnane wrote: OK, I found I could compile and successfully import the test.c sample from http://www.nevada.edu/~cwebster/Python/MPWHOWTO/MPWHOWTO.html using the Darwin python setup.py install command. However, I'm trying to compile a wrapper for the ode physics engine. The wrapper is

Re: [Pythonmac-SIG] Using distutils with XCode

2005-10-05 Thread Chris Barker
Paul, I don't really have much more to offer here. As I mentioned, I ran into a similar problem a while back, but never really solved it...I just converted my C++ code to C. I'm hoping someone that really knows what they are doing could help. In the meantime, one thing to try is to look for

Re: [Pythonmac-SIG] Using distutils with XCode

2005-10-07 Thread Chris Barker
Paul Kinnane wrote: I'm in the unfortunate position to need to be using Python2.2. Do you need Python 2.2? or so you need to run under Classic? If the former, and not the later, perhaps you can get 2.2 compiled for OS-X. If you need a straight unix-y python, it should be doable. In fact, I

Re: [Pythonmac-SIG] py2app...

2005-10-07 Thread Chris Barker
[EMAIL PROTECTED] wrote: I did not succed for Mac with py2app on a friend's macOSX Panther... 1) What problem[s] did you have? We cant help if we don't know. 2) Does it run at the command line, without Py2app? resultat=resultat+dirpath+\\+filename+\n don't hard code backslashes ( r\ )into

Re: [Pythonmac-SIG] Non-Qt basic question

2005-10-14 Thread Chris Barker
Terry Jones wrote: Ok, thanks for looking. I've been putting off moving to 10.4 because I will need to rebuild many things. Now it looks like I have a good reason. Well, perhaps, but as far as I can tell, there is still some open-source software that doesn't work so well on 10.4 (gcc 4.0

Re: [Pythonmac-SIG] packagemanager for Tiger

2005-10-20 Thread Chris Barker
Jack Nutting wrote: Your best bet is to first of all get the packages you can from Bob's site (http://pythonmac.org/packages/), and get used to using the command-line to install anything else you need. And when you do, make a package out of it, and contribute it to Bob's site, so it'll be

Re: [Pythonmac-SIG] [OT] Quicktime/Buffer API

2005-10-26 Thread Chris Barker
michael ferraro wrote: I need to eliminate any copies of a PixMaps used by a Quicktime Movie that I am texture mapping with OpenGL. I have built an extension in C but I am a bit unclear as to how to circumvent the the copy done by Py_BuildValue. I was wondering if any one has any

Re: [Pythonmac-SIG] [OT] Quicktime/Buffer API

2005-10-26 Thread Chris Barker
michael ferraro wrote: The data is a simple unsigned char * Thats just what NumPy's ArrayFromDimsAndData() (or something like that) expects. However, one issue is that if you don't copy the data, then it's hard to have Python manage the garbage collection, you need to figure out how (and

Re: [Pythonmac-SIG] embedded C in MacPython

2005-10-27 Thread Chris Barker
Zhi Peng wrote: I has some small program in C which is compiled as .so library in Linux and I can directly import name_of_lib.so as a module from python when I run it on Linux. It looks same if I just see them from Terminal window on Mac. Did anyone compile any C code as library called by

Re: [Pythonmac-SIG] embedded C in MacPython

2005-10-27 Thread Chris Barker
Zhi Peng wrote: Hi! Chris Thanks a lot for your email. It is exactly what I would like to have. I use MacPython 2.3. But unfortunately, on my Mac 10.4 Tiger, Are you using the 2.3 that Apple provided? If so, I think the headers you need are there, but I don't have Tiger. If they are not

Re: [Pythonmac-SIG] py2app generated app, not acting as a stand-alone app

2005-11-02 Thread Chris Barker
Richard Rodriguez wrote: I guess it executes it like a real CGI script. This is probably not the best mmodel to use for what you are doing. If I understand correctly, you're trying to write a small, stand-alone, custom web server, that the user can click on, then interact with through the

Re: [Pythonmac-SIG] Building Pthreads Statically (slightly off topic)

2005-11-03 Thread Chris Barker
Samuel M. Smith wrote: I am building python on an embedded linux box. I tried to sign up for the comp.lang.python mailinglist Just so you know, It's also a newsgroup, so you can get to it with a regular usenet client and/or other systems like google groups. -Chris -- Christopher Barker,

Re: [Pythonmac-SIG] py2app and PIL question

2005-11-17 Thread Chris Barker
Chris, You might want to send a bug report to the PIL folks, it would have been really helpful for you to get a message like: can't find file: vera.ttf, rather than the generic Resource not found error, or whatever you got. -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Pythonmac-SIG] Interactive shell

2005-11-22 Thread Chris Barker
Abe Mathews wrote: You need to create a link in /usr/bin to python2.4. Sorry Abe, but: DON'T DO THAT There are standard ways to do things that will prevent you from messing up your system. Rule of thumb: don't mess with anything in /usr or /system. That's Apple's job. When you add things,

Re: [Pythonmac-SIG] Interactive shell

2005-11-23 Thread Chris Barker
I've never been able to figure out when to use .profile vs .bashrc, but I thought it had to do with only one of them being run when a subshell was started, or something like that. I do note that on both my OS-X and Linux boxes, /etc/profile sources bashrc, and uses bash syntax, so it sure

Re: [Pythonmac-SIG] Fwd: Preferred IDE

2005-11-29 Thread Chris Barker
Jeffrey E. Forcier wrote: I also seem to remember BBEdit not having that issue for some reason, but it wasn't worth the price tag for that one tweak. TextWrangler/BBEdit is an *excellent* editor, so be sure to try it out yourself Yes, it is, but it really doesn't do python indenting

Re: [Pythonmac-SIG] Selecting in BBEdit Python Indenting style (spaces)

2005-11-29 Thread Chris Barker
Louis Pecora wrote: You hold down the option key while selecting, but you cannot do this in the soft wrap mode. You have to set the window to hard wrap at some column number. If you have the BBEdit manual, you can find more info around page 52 or just look in the index. thanks. What the

Re: [Pythonmac-SIG] Selecting in BBEdit Python Indenting

2005-11-30 Thread Chris Barker
Ryan Wilcox wrote: Hmm... another idea would be to write a script and attach it to BBEdit's Save item so that it automatically performs Detab on your source code. Write in tabs, have it automagically convert to spaces. Such a script is below: --name this File•Save and put it in the

Re: [Pythonmac-SIG] readline support in ActivePython 2.4.2?

2005-11-30 Thread Chris Barker
Dave wrote: I'm not done with installs. I tried to install matplotlib from source to get a current version. That went equally as well (i.e., bad), possibly for similar reasons, but that's another story. Did you follow the process I used for the older MPL package at pythonmac.org? The

Re: [Pythonmac-SIG] readline support in ActivePython 2.4.2?

2005-11-30 Thread Chris Barker
Dave wrote: Chris, I did try to use those notes Those notes specifically addressed how to statically link the extra libs, so you probably missed something, which is probably because I didn't write them very clearly. I posted a question with the error report on matplotlib-users I saw

Re: [Pythonmac-SIG] module 'New' no in MacPython?

2008-08-06 Thread Chris Barker
Matthew O'Meara wrote: I'm trying to port a swig based application to run on OSX. But it seems that MacPython does not build the module 'New' by default I haven't had any issues with SWIG on OS-X. I also have no idea what the module New is. Can you be more specific as to what exactly you are

Re: [Pythonmac-SIG] module 'New' no in MacPython?

2008-08-07 Thread Chris Barker
Bill Janssen wrote: There is a Python standard library module called new, and the Mac filesystem is case-insensitive... Try doing % touch new % touch New % ls case-insensitive, yet case-preserving -- weird. apparently the case preserving does effect *nix apps like python. You can:

Re: [Pythonmac-SIG] Yet another problem with path

2008-08-07 Thread Chris Barker
Timothy Grant wrote: While command lines can be made to lie, it concerns me that it looks like you're using and Administrator account to do all this work. Administrators have far to much power and can do far too much damage far too quickly. very true. However, OS-X be default does not allow

  1   2   >