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

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] 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] 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] (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---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] 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
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] 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] 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

Re: [Pythonmac-SIG] LXML with py2app

2008-08-07 Thread Chris Barker
Kenneth Miller wrote: This is what I'm encountering. Here i printed the sys.path, why does this include modules local to the machine? I want it to be independent of any local resources? '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', This is Apple's installed

Re: [Pythonmac-SIG] os 9.2

2009-08-19 Thread Chris Barker
Suresh Krishna wrote: i have to work with mac OS 9.2 for legacy reasons...is there a compiled version of python for this os ? It looks like Jack Jansen's old page is still there, complete with downloads: http://homepages.cwi.nl/~jack/macpython/download.html Look for EasyDialogs, I think

Re: [Pythonmac-SIG] check if wxpython has been installed properly

2009-08-21 Thread Chris Barker
Edward Moy wrote: I seem to think that on Tiger, one needed to use pythonw to get GUI access (the regular python is just the plain command line tool, and the window server doesn't allow plain commands to access the GUI). This was changed in Leopard so that either python or pythonw worked.

Re: [Pythonmac-SIG] Framework does not get copied for standalone build: 0.4.3

2009-10-14 Thread Chris Barker
Kevin Walzer wrote: I wonder if the problem is with py2applet and the build script it generates? Maybe, you seem to be making this more complicated than it should be. This should do it: from setuptools import setup APP = ['GridZilla.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True,

Re: [Pythonmac-SIG] Framework does not get copied for standalone build: 0.4.3

2009-10-14 Thread Chris Barker
that Chris Barker mentioned. Then not only do I not get the python built into the bundle . But the linking is all messed up and I get the error. I think those two are the same error -- it's trying to link relative to the python exe. Anyway, it appears you've found a bug. What I'm not clear

Re: [Pythonmac-SIG] C Extension Scipy/Numpy

2010-02-25 Thread Chris Barker
brennsuppa wrote: I want to gain performance by using C for the computation of some arrays. To do that I used this as a help: http://www.scipy.org/Cookbook/C_Extensions/NumPy_arrays I highly recommend that you use Cython instead: http://wiki.cython.org/tutorials/numpy It is much easier, and

Re: [Pythonmac-SIG] Building 32-bit on Snow Leopard with tkinter/IDLE (was: Recommended Tcl/Tk with Py-2.6.x)

2010-03-11 Thread Chris Barker
Tom, Thanks for the summary. Tom Loredo wrote: I should have added: If you're happy with 32-bit Python on Snow Leopard and have no need to build from source, just do as Chris recommended earlier: Use Python.org's installer. It is built on an earlier OS than SL and links against Apple's

Re: [Pythonmac-SIG] buildbots for OS X: G4 eMacs useful?

2010-04-24 Thread Chris Barker
Bill Janssen wrote: I've got 3 eMacs just sitting around, and thought I'd deploy them as OS X Python buildbots, if they'd be useful. They're 1 GHz G4 machines, with 640 MB of memory, running Tiger If there is a need -- it would be great to keep one on Tiger -- it's a pain to build on leopard

Re: [Pythonmac-SIG] Module Import Problem

2010-04-25 Thread Chris Barker
Mike wrote: File build/bdist.macosx-10.6-universal/egg/pyttsx/__init__.py, line 39, in init this looks like you are running code out of the build dir, which may not have anything to do with your problem, but it's odd. How are you running this, setting your paths, etc? -Chris File

Re: [Pythonmac-SIG] Module Import Problem

2010-04-25 Thread Chris Barker
Mike wrote: I don't think I'm doing anything special really. Just running it with python zgp.py. It may be something the pyttsx package is doing... how did you install pyttsx ? -Chris - Original Message - From: Chris Barker chris.bar...@noaa.gov To: pythonmac-sig@python.org Sent

Re: [Pythonmac-SIG] Python 2.7b2

2010-05-11 Thread Chris Barker
Ronald Oussoren wrote: As you might know the second beta of python 2.7 was released last weekend. This is the first beta with macosx installers, they can be downloaded from http://www.python.org/download/releases/2.7/ great!, thanks Ronald. There are two installers: one for OSX 10.3 or

Re: [Pythonmac-SIG] Loading Python on my Mac

2011-01-12 Thread Chris Barker
On 1/12/2011 7:06 PM, s...@pobox.com wrote: The resulting binary is in /usr/local/bin/python (non-framework version) /usr/local/bin/pythonw (framework version) I'm sure others more knowledgeable about Python-on-a-Mac will correct any mistakes I've made. That all looks right. Note

Re: [Pythonmac-SIG] Getting an Error When Running App built with Py2app

2011-06-08 Thread Chris Barker
On 6/7/11 7:38 PM, Mike wrote: Hi, I built my python program using Py2app, using the default setup.py script. I'm running Mac OSX Snow Leopard 64 bit. which python are you using? Py2app is really expected to work right with Apple's built-in python (it can't include python itself)

Re: [Pythonmac-SIG] Py2app zlib import error

2011-06-23 Thread Chris Barker
On 6/22/11 7:30 PM, Brian Zambrano wrote: Just bumping this. Does anyone have solution or some advice on how to proceed? The error is: 'import site' failed; use -v for traceback ... zipimport.ZipImportError: can't decompress data; zlib not available This looks like it has

Re: [Pythonmac-SIG] py2app wx.lib.pubsub.Publisher problem

2011-09-17 Thread Chris Barker
On 9/16/11 8:37 PM, Hyeonseung I wrote: I`m trying to make an app bundle via py2app from a project using wxPython and it`s pub feature. But there is a problem whenever running the app. In my code, Publisher is imported as: from wx.lib.pubsub import Publisher as pub ... But when I run the

  1   2   >