Re: [Pythonmac-SIG] Problems with py2app and wx on leopard

2008-08-13 Thread Christopher Barker
ou'll need to do that anyway. Is there a reason you want to use Apple's Python? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (2

Re: [Pythonmac-SIG] pragma mark with python in xcode?

2008-08-11 Thread Christopher Barker
le hasn't enabled that. Well, XCode, as a rule, does not support python that well. Nor does Apple show any intention of opening up XCode so that good language-specific modes could be written by third parties. So I suggest you find another editor! -Chris -- Christopher Barker, Ph.D

Re: [Pythonmac-SIG] managing python 2.4 and 2.5 on leopard

2008-08-10 Thread Christopher Barker
ou install with setup.py, make sure to run setup.py with the version you want. If you use easy_install, it's a bit trickier. easy_install will use one of them by default. I'm not entirely sure how to get it to use another python -- I'd have to poke around a bit on my Mac. Maybe someone el

Re: [Pythonmac-SIG] LXML with py2app

2008-08-07 Thread Christopher Barker
Kenneth Miller wrote: How can I build python to link to the OS X Tkinter libraries? That's the ONLY reason I'm using the system python. I usually use the python built by macports. I'm pretty sure the build you get from python.org works fine with Tkinter -- it is well integerated with OS-X

Re: [Pythonmac-SIG] Teething troubles - Getting up an running on a mac

2008-08-04 Thread Christopher Barker
cports, build-your-own, . Then you have PPC, and Intel, and it's really a mess. Can't we all just agree on using the python.org one? Oh well, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Po

Re: [Pythonmac-SIG] New Installation of 2.5

2008-08-04 Thread Christopher Barker
is to work with C-coded extensions. setuptools also often works: $ easy_install ThePackageName -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115

Re: [Pythonmac-SIG] using py2app to include the python interpreter?

2008-08-04 Thread Christopher Barker
md,)) ValueError: Unknown load command: 27 I think you need a newer macholib. I had hoped the would be updated in the latest release version, but I guess not. try: $ easy_install macholib==dev -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&am

Re: [Pythonmac-SIG] [py2app] problems running .app built on 10.5 on standard 10.4

2008-07-31 Thread Christopher Barker
Mike Keith wrote: are my problems down to the fact that i'm using apple's python 2.5 to build the .app? yes. if so, any advice on how to proceed? Install the python.org python ,and use that to built your app -- it should then run on all systems >= 10.3.9 -Chris -- Chris

Re: [Pythonmac-SIG] New to Python - how to get Py2App to work?

2008-07-29 Thread Christopher Barker
lder that it creates. Once you've got that, I'd search the web and the archives of this list for examples of more complex apps -- adding application icon, etc. Also, I think there are some examples distributed with Py2app. -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Pythonmac-SIG] bdist_mpkg Python version prefix

2008-07-25 Thread Christopher Barker
Larry Meyn wrote: FYI: The Apple provided python has an older version of numpy which is difficult (and probably unwise) to update. There are ways to work around that, but yes, that's one reason that we're distributing binaries for the python.org build. -Chris -- Christopher Ba

Re: [Pythonmac-SIG] Mac IDLE Fonts? (-or- I guess I need glasses.)

2008-07-17 Thread Christopher Barker
t's under active development: http://groups.google.com/group/peppy-dev?hl=en and definitely headed in the right direction. It'd be great to get some more Mac users on board... -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(20

Re: [Pythonmac-SIG] py2app creates 90 MB .app

2008-07-15 Thread Christopher Barker
there is not one already -- could be helpful for newbies like me. Yes, it would. Just in case, I've posted this to the list, so it will be in the archives. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600

Re: [Pythonmac-SIG] py2app & PIL

2008-07-14 Thread Christopher Barker
ILES = ["VeraBd.ttf"] OPTIONS = {'argv_emulation': True} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) py2app works fine for me. -Chris -- Christopher Barker, Ph.D. Oceanographer Eme

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

2008-07-14 Thread Christopher Barker
ake it look to the system like it's in /usr/local/bin, but it points to the original, so if you edit that, the edited version will be run in the future. do buy a book or surf the web for info about using the terminal on OS-X -- it's a great skill to have. -Chris -- Christopher Ba

Re: [Pythonmac-SIG] py2app and svn

2008-07-07 Thread Christopher Barker
ckable. I even have the Alias Bundles for a couple apps under development in my Dock for easy access. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle,

Re: [Pythonmac-SIG] [py2app] how to make a .app running on mac intel 10.5

2008-07-02 Thread Christopher Barker
version, and had not updated its cache yet. I'm run into this with icons - if you build a .app bundle with one icon (or none), then re-build it with a new icon, the Finder often doesn't show the new icon, reverting to the one it had cached. Just a wild guess! -Chris -- Christoph

Re: [Pythonmac-SIG] [py2app] how to make a .app running on mac intel 10.5

2008-07-01 Thread Christopher Barker
thon2.5: Mach-O universal binary with 2 architectures /Library/Frameworks/Python.framework/Versions/Current/bin/python2.5 (for architecture i386):Mach-O executable i386 /Library/Frameworks/Python.framework/Versions/Current/bin/python2.5 (for architecture ppc): Mach-O executable ppc

Re: [Pythonmac-SIG] Distribute command-line tools with py2app or similar?

2008-06-30 Thread Christopher Barker
n to that somewhere, it might act just like a command line app. If you have a number of command line tools that rely on the same packages, you could probably just copy the executable from one app bundle to another. I haven't tried any of this, though. -Chris -- Christopher Barker, Ph.

Re: [Pythonmac-SIG] Py2app - problem building with a localized package

2008-06-30 Thread Christopher Barker
xplicitly include the dabo package. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-

Re: [Pythonmac-SIG] A few more py2appissues/questions

2008-06-30 Thread Christopher Barker
list, this sounds like a familiar question. One idea is to make sure you're running py2app from a "clean" location -- one where there is just your apps source code, and not source from installed packages. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response

Re: [Pythonmac-SIG] semi_standalone option broken in py2app + Leopard Python?

2008-06-30 Thread Christopher Barker
install -Z TheNameOfTheEgg -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [E

Re: [Pythonmac-SIG] py2app version mismatch while including a library built with Pyrex

2008-06-30 Thread Christopher Barker
ll, macports, fink, etc...) -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] _

Re: [Pythonmac-SIG] [py2app] how to make a .app running on mac intel 10.5

2008-06-30 Thread Christopher Barker
: ... Converter.app/Contents/MacOS cbarker$ file Converter Converter: Mach-O universal binary with 2 architectures Converter (for architecture i386): Mach-O executable i386 Converter (for architecture ppc): Mach-O executable ppc Are you building on the PPC machine? -Chris -- Christoph

Re: [Pythonmac-SIG] A simple app: Develop on Leopard, use on Tiger

2008-06-20 Thread Christopher Barker
get a self-contained application that should run on 10.3.9 and above, PPC and Intel. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 5

Re: [Pythonmac-SIG] [py2app] [pygame] can't build my app

2008-06-19 Thread Christopher Barker
olib dev Downloading http://svn.pythonmac.org/macholib/macholib/trunk#egg=macholib-dev Doing subversion checkout from http://svn.pythonmac.org/macholib/macholib/trunk to /tmp/easy_install-l3o8mp/trunk sh: line 1: svn: command not found Processing trunk error: Couldn't find a setup script in

Re: [Pythonmac-SIG] [py2app] [pygame] can't build my app

2008-06-18 Thread Christopher Barker
ing the SVN version a try. easy_install macholib==dev don't know you to do that, sorry. make sure you have easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall then type: easy_install macholib==dev in the terminal. (note: this may not be required with a recent version of py2a

Re: [Pythonmac-SIG] [py2app] [pygame] can't build my app

2008-06-17 Thread Christopher Barker
ValueError: Unknown load command: 27 I've seen similar errors, which were fixed by updated macholib (used by py2app): easy_install macholib==dev Ronald, is this still recommended? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R

[Pythonmac-SIG] "MacPython Addons..."

2008-06-17 Thread Christopher Barker
x27;-fat-' eggs on 10.5 * /Applications/Python-2.5/IDLE.app Did this ever get anywhere? In particular, the "-fat-" eggs issue keeps coming, up, lately in matplotlib and enthought tools... -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/

Re: [Pythonmac-SIG] [py2app] how to make a .app running on mac intel 10.5

2008-06-17 Thread Christopher Barker
(Universal Framework Build), you will get a Universal build, and it should run on any Mac running OS-X 10.4 and above, and maybe even 10.3.9. Sometimes things "just work"! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R

Re: [Pythonmac-SIG] [Matplotlib-users] What is the recommended way of Installing MPL 0.9.8 on Leopard?

2008-06-09 Thread Christopher Barker
d the Universal one. So we need to either: 1) Know it is a Universal build of Python, and thus look for, and finid, a Universal binary. 2) Or accept a Universal binary when it is looking for either an Intle of PPC version. I like the first option better, but have no idea how all this works

Re: [Pythonmac-SIG] [Matplotlib-users] What is the recommended way of Installing MPL 0.9.8 on Leopard?

2008-06-09 Thread Christopher Barker
y to download and build the source. Have I got that right? Have you tried putting the binary up on pyPI with some of these different names to see if it will find them? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-695

Re: [Pythonmac-SIG] [Matplotlib-users] What is the recommended way of Installing MPL 0.9.8 on Leopard?

2008-06-09 Thread Christopher Barker
well. the process is documented here: http://ipython.scipy.org/moin/MatplotlibOSXBuildNotes Thanks, that does look easier than other ways I've seen it done. I'm going to give it a try. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&

Re: [Pythonmac-SIG] gcc error in Mac OS X

2008-06-05 Thread Christopher Barker
e.com/tools/download/ you need the whole thing, all 1GB or so of it! Also, it should be somewhere on the Install disks that came with your OS. It's an optional install. I wish the had a command-line tools only installer, but I haven't seen that. -Chris -- Christopher Barker, Ph.D

Re: [Pythonmac-SIG] gcc error in Mac OS X

2008-06-04 Thread Christopher Barker
s properly. You need the whole development tool set. The other option is to find binaries of the stuff you need. You should be able to find IPython, but I don't know about PyCogent. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206)

Re: [Pythonmac-SIG] Strange python behavior after upgrading to OS X 10.5.3

2008-06-02 Thread Christopher Barker
. Does this mean that Apple upgraded Python? That would be a first, and a good sign. However, an upgrade to python within the 2.5 series shouldn't break *.pyc files, so I wonder what's up. Did they go 64 bit with the interpreter? -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Pythonmac-SIG] Is there still a good reason for separate macpython and pyobjc mailing lists?

2008-05-28 Thread Christopher Barker
amount of PyObjC traffic! -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTE

Re: [Pythonmac-SIG] Unicode and split

2008-05-23 Thread Christopher Barker
nicode tutorials, this is only one of them: http://www.reportlab.com/i18n/python_unicode_tutorial.html there are other good ones. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand P

Re: [Pythonmac-SIG] Trouble installing Tkinter with 2.3.5/10.2

2008-05-21 Thread Christopher Barker
wxPython2.5.1.4, readline and waste in there. I'm not sure what Python it when with. No Tkinter though. IIRC, Tk didn't work all that well back then, anyway, do you need to use Tk? (wxPython never worked on OS-9, though). This is an awful lot of work to support a pretty

Re: [Pythonmac-SIG] py2app and bdist_mpkg on Linux?

2008-05-15 Thread Christopher Barker
system. Come to think of it, it would be nice to have a "just replace the app code" option to py2app -- it does take a long time to do the complete rebuild. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-695

Re: [Pythonmac-SIG] py2app mac

2008-05-12 Thread Christopher Barker
o get binaries up on the PIL site), but I'm not sure when I'll finish that. PS: and debugging my app, I've found that the import xml.etree.cElementTree as cElementTree cause crash on running app... Does it crash when run outside the *.app bundle? or only when bundled? -CH

Re: [Pythonmac-SIG] py2app mac

2008-05-09 Thread Christopher Barker
honmac.org/packages/py25-fat/index.html Also make sure you are running py2app with the python installed in /Library, rather than Apple's one. How big is your *.app? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-695

Re: [Pythonmac-SIG] py2app and eggs

2008-05-07 Thread Christopher Barker
t my crystal ball doesn't work at the moment. Yours is broken too? Yes, that would help -- I'm going to simplify things and poke around a bit more, then I'll post the results here. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R

[Pythonmac-SIG] py2app and eggs

2008-05-06 Thread Christopher Barker
t has anything to do with it. Anyway, do you suppose it is bringing in every egg I have installed? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98

Re: [Pythonmac-SIG] [Image-SIG] Please test PIL package on OS-X

2008-05-02 Thread Christopher Barker
lib/python2.5/site-packages/PIL (if you only want to remove PIL) /Library/Frameworks/UnixImageIO.framework/ /Library/Frameworks/FreeType.framework/ If you do remove all those, would you mind testing the .app again, just to make sure? Thanks for testing. -Chris -- Christopher Barker, Ph.D. Oceanograp

Re: [Pythonmac-SIG] Please test PIL package on OS-X

2008-05-02 Thread Christopher Barker
right? I'm OK with that -- do your Frameworks support 10.3 anyway? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-63

[Pythonmac-SIG] Please test PIL package on OS-X

2008-05-02 Thread Christopher Barker
k! If they do, then we could build versions for Apple's Python 2.5 on OS-X 10.5, and maybe bundle up the Frameworks inside the PIL package installer for one-click installation. And do the same thing for Matplotlib, and ??? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Resp

Re: [Pythonmac-SIG] py2app and matplotlib

2008-05-01 Thread Christopher Barker
this going to get into the released version of py2app soon? It would be nice if this stuff worked "out of the box" -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 52

Re: [Pythonmac-SIG] Nested app bundles

2008-04-25 Thread Christopher Barker
s worth, I never implemented it, so I can't help beyond what's there. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317

Re: [Pythonmac-SIG] Nested app bundles

2008-04-24 Thread Christopher Barker
I could just stick one app inside another's Contents/Resources, but then the user would never see the inner .app -- what's the point? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand P

Re: [Pythonmac-SIG] Dependencies for Python packages on OS-X

2008-04-24 Thread Christopher Barker
uld be nice to blow away an older version with a newer version if the older one is compatible. The installer can make the "update" optional. can't the newer version and older version live side by side? Anyway, I've almost got PIL tested, maybe you could make an installer from it wi

Re: [Pythonmac-SIG] Dependencies for Python packages on OS-X

2008-04-24 Thread Christopher Barker
s. Would you consider adding static libs to your Frameworks so that we could at least tell distributor that they can just install a couple Frameworks and have all the static libs they need? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R

Re: [Pythonmac-SIG] non-framework Python 2.5.2 has empty lib-dynload

2008-04-24 Thread Christopher Barker
[EMAIL PROTECTED] wrote: make altinstall maybe that's it -- I think the OP was running "install" rather than "altinstall". What is altinstall supposed to do differently? -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/

Re: [Pythonmac-SIG] Dependencies for Python packages on OS-X

2008-04-24 Thread Christopher Barker
One more, How about libjpeg? -Chris Nathan wrote: My guess would be yes. $ locate *libpng* | grep -Ev 'opt|App|old' /Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/libpng /Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/libpng/png.h -- Christopher Barker, Ph.D. Oceanographer

Re: [Pythonmac-SIG] Is there a run-time way to tell if you're running fink, macports, etc?

2008-04-24 Thread Christopher Barker
Ronald Oussoren wrote: Looking at sys.prefix is better than sys.executable. great, thanks. much better. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle

[Pythonmac-SIG] Is there a run-time way to tell if you're running fink, macports, etc?

2008-04-23 Thread Christopher Barker
Hi all, sys.platform returns "darwin" for all of the various python builds on OS-X. I"d like to know if I"m running a framework build, or fink, or macports, or whatever build -- is there a runtime way to do that? Is looking at sys.executable the best(only?) way? -Chri

Re: [Pythonmac-SIG] Dependencies for Python packages on OS-X

2008-04-23 Thread Christopher Barker
ur lives easier eventually. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main receptio

[Pythonmac-SIG] Dependencies for Python packages on OS-X

2008-04-23 Thread Christopher Barker
mes, or having multiple versions installed. In fact, I think you could build a *.mpkg that had both your python package and the frameworks it needs, so that users would have a one download and one click install. It wouldn't hurt to have multiple packages with the same Frameworks installed thi

Re: [Pythonmac-SIG] Xcode 3.0 and Compiled Python Files?

2008-04-23 Thread Christopher Barker
ne, as long as you only need to deploy on Leopard (though I'd make sure to test on both PPC and Intel, if you do need to support both). Be aware, however, than Apple has always replaced python with a new version with OS upgrades, so your app bundle may not work on future versions of OS-X. -Chris

Re: [Pythonmac-SIG] Xcode 3.0 and Compiled Python Files?

2008-04-22 Thread Christopher Barker
bother. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pyt

Re: [Pythonmac-SIG] Double-clickable wxpython application?

2008-04-14 Thread Christopher Barker
Kevin Horton wrote: > I have two scripts - the > program is started by running the GUI script, which calls wx, and > sets up the whole GUI. This script imports another script, which > holds all the functions that perform the calculations that are the > whole purpose of this application. T

Re: [Pythonmac-SIG] PIL for OS-X

2008-04-10 Thread Christopher Barker
> install -m 444 * ${distdir}/share/ghostscript/fonts Does PIL usually come with these fonts? how critical is this? Again, tiff isn't listed as a PIL dependency . I sure wish Apple would provide a bit more of this stuff -- I now have libjpeg, libpng, and libtiff in a half a dozen differen

Re: [Pythonmac-SIG] Double-clickable wxpython application?

2008-04-10 Thread Christopher Barker
et > this working all in python, py2app would have done that, though I'm still confused as to why pythonlauncher didn't work for you. -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way

Re: [Pythonmac-SIG] PIL for OS-X

2008-04-09 Thread Christopher Barker
Ronald Oussoren wrote: > On 5 Apr, 2008, at 1:40, Christopher Barker wrote: >> Can we build a single binary installer for PIL that will work with BOTH >> Apple's Python2.5 that comes with OS-X 10.5 and MacPython2.5, Universal >> Framework Build for OS-X 10.3.9 and abov

Re: [Pythonmac-SIG] Double-clickable wxpython application?

2008-04-09 Thread Christopher Barker
-in python if that's what you're using, so I think it's the "right" way to do it. -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattl

Re: [Pythonmac-SIG] PIL and py2app on Leopard

2008-04-09 Thread Christopher Barker
here may be a message there. > i will look into it tomorrow an try to build up everything step by step. > Is there a log or something automatically written with the python errors > of the app? If not how can I achieve this? They should show up in Console.app. It should be in Applications/Uti

Re: [Pythonmac-SIG] PIL and py2app on Leopard

2008-04-09 Thread Christopher Barker
#x27;t: Report back what you get, and be sure to include: Your script Your setup.py Your OS-X version Your Python version (where you got it, how you installed it) Your py2app version Your PIL version (where you got it, how you installed it) -Chris -- Christopher B

[Pythonmac-SIG] PIL for OS-X

2008-04-04 Thread Christopher Barker
e great if we could do it with one installer. Next in line would be MacPython2.4, I think, but I notice that the package on pythonmac.org/packages is out of date, so there must not be too much demand. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R

Re: [Pythonmac-SIG] newbie py2app problem - "ImportError: no module named code"

2008-04-04 Thread Christopher Barker
e that it's not really > still picking up my locally installed wx libs behind the scenes, well, it should be close to 40 MB -- yes, that's huge, but you've got all of Python, all of wxWidgets and wxPython, all as Universal. -Chris -- Christopher Barker, Ph.D. Oceanogr

Re: [Pythonmac-SIG] newbie py2app problem - "ImportError: no module named code"

2008-04-04 Thread Christopher Barker
ported wx, py2app should pick that up, and the wx recipe should "do the right thing" -- it's always worked for me. Try it without specifying that package. Let us know how it works out... -Chris -- Christopher Barker, Ph.D. Oceanographer Emerg

Re: [Pythonmac-SIG] py2app on windows

2008-04-04 Thread Christopher Barker
the truth is that you'd really need to test on a Mac anyway, so there is little point. If you have users on a Mac, you'll be best off finding a couple of them that don't mind being on the "bleeding edge" and testing stuff for you, including running py2app. -Ch

[Pythonmac-SIG] Odd py2app issue

2008-04-04 Thread Christopher Barker
rnal relocation length If I delete the old *.app, and build again it works fine, so it's easy to work around, but this does smell like a bug. OS-X 10.4.11 MacPython 2.5.1 wxPython 2.8.7 py2app 0.3.6 macholib dev version as of 3/27/08 -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Pythonmac-SIG] Trouble with py2app not building standalone on 10.5 Leopard

2008-03-31 Thread Christopher Barker
the "macPython" build of python2.5 (which you can get from python.org) should work on OS-X 10.3.9 and above. I have no idea what version of PyObjC you can use. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (

Re: [Pythonmac-SIG] Trouble with py2app not building standalone on 10.5 Leopard

2008-03-31 Thread Christopher Barker
he solution. The Python.org build should bundle up and work on all OS-X 10.3.9 and up systems, PPC and Intel. You'll have to make sure you get all your needed modules installed into that python as Universal too. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Divisi

[Pythonmac-SIG] py2app and matplotlib

2008-03-26 Thread Christopher Barker
7 > /Users/cbarker/HAZMAT/SmallToolsSVN/phCalculator/trunk/build/bdist.macosx-10.3-fat/egg/macholib/MachO.py(178)load() Enclosed is about the simplest matplotlib script, and a test_setup script to py2app it -- anyone have any ideas? -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Pythonmac-SIG] problems with sys.path

2008-03-10 Thread Christopher Barker
H environment variable. Rather, it adds them to sys.path, which is python's internal path for looking for modules: > import sys > print sys.path -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice

Re: [Pythonmac-SIG] distutils.errors.DistutilsFileError: file '/Library/Python/2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.pyc' does not exist

2008-03-05 Thread Christopher Barker
led as an egg that you could install the old-fashioned way instead. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA

Re: [Pythonmac-SIG] py-appscript problem in crontab

2008-02-29 Thread Christopher Barker
ding a #! line, and who knows where the README may be for an installed script) Personally, I'd really like to see versioning somehow built into python itself (and python packages -- eggs solve some of this), then you could distribute a script that could declare which versions of python a scri

Re: [Pythonmac-SIG] py-appscript problem in crontab

2008-02-28 Thread Christopher Barker
(all on one line, of course): or change the #! line to the one you want: #!/usr/local/python2.5 or #!/Library/Frameworks/Python.framework/Versions/2.5/bin/python I like to do that anyway with production code, as it makes it clear which python the script was tested against. -Chris -- Chr

[Pythonmac-SIG] Who's maintaining py2app?

2008-02-28 Thread Christopher Barker
r vversion... -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [E

Re: [Pythonmac-SIG] Python module installation on Leopard runs but doesn't install

2008-02-28 Thread Christopher Barker
#x27;s good idea, though more an more package maintainers are supporting OS-X themselves these days. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115

Re: [Pythonmac-SIG] Python module installation on Leopard runs but doesn't install

2008-02-27 Thread Christopher Barker
exactly what you did, and what happened. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206

Re: [Pythonmac-SIG] Using SM2DGraphView (or any graphing utility)

2008-02-25 Thread Christopher Barker
how mature it is. It does work well with TK, GTK, wx and QT. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception

Re: [Pythonmac-SIG] installing python and mysqldb

2008-02-25 Thread Christopher Barker
. Tell us what happens when you try it. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 m

Re: [Pythonmac-SIG] How to print unicode to OS-X Terminal.app

2008-02-14 Thread Christopher Barker
the default encoding oh well, I'm really just whining, but this transition to unicode is pretty painful! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seat

Re: [Pythonmac-SIG] How to print unicode to OS-X Terminal.app

2008-02-14 Thread Christopher Barker
rint(object): sys.stdout.write(unicode(object).encode(TerminalEncoding)) sys.stdout.write("\n") but print is a statement, rather than a function, so I don't know how to do that. I may start using a utility function like that for my code, though. -Chris -- Christopher Barker, Ph.D.

Re: [Pythonmac-SIG] How to print unicode to OS-X Terminal.app

2008-02-13 Thread Christopher Barker
t encoding that str() uses -- or at least change it to "replace" or "ignore" mode. Boy, I'm looking forward to all-unicode, all the time. Thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Div

[Pythonmac-SIG] How to print unicode to OS-X Terminal.app

2008-02-13 Thread Christopher Barker
unicode savy, so you'd think I should be able to do this. Indeed, if I go to setting, I see that under display, it's set to UTF-8. So how to I get Python to convert to utf-8 with a print statement, instead of ascii? thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Pythonmac-SIG] module metrics and Framework comparisons

2008-02-07 Thread Christopher Barker
r -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EM

Re: [Pythonmac-SIG] Guages, Sliders, Graphs and py2app

2008-02-04 Thread Christopher Barker
een a set of gages and what not widgets for QT too- ut can't find them with a quick google. As for graphs, Matplotlib is a good bet -- it works with wx, gtk, qt and tk. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600

Re: [Pythonmac-SIG] Key Bindings on cross platform apps.

2008-02-04 Thread Christopher Barker
ould be built -- it's got good separation of functionality from UI, but there is only a wx UI at the moment -- I don't think he has plans for a console version. -Chris PS: Peppy is the only editor other than (X)emacs that has a python mode that does indentation right. -Chris --

Re: [Pythonmac-SIG] Key Bindings on cross platform apps.

2008-02-04 Thread Christopher Barker
type anything in someone else's Emacs, for > example), I agree -- I found the default emacs bindings painful enough that I've added my own, but now I can hardly use emacs if I don't have my own config for it. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency

Re: [Pythonmac-SIG] Key Bindings on cross platform apps.

2008-02-01 Thread Christopher Barker
Robin Dunn wrote: > Christopher Barker wrote: >> On the Mac, the default behavior should be for "command" to do >> everything that "control" does on Windows and Linux, and "control" >> should do nothing. The alt(option) key should do the same

[Pythonmac-SIG] Key Bindings on cross platform apps.

2008-02-01 Thread Christopher Barker
ges. I urge you to give it a try. http://peppy.flipturn.org/ getting the SVN version is probably your best bet. I just added a setup_mac.py file that you can build an alias application bundle with: python setup_mac.py py2app -A I haven't yet tested a full app bundle, but it works pretty we

Re: [Pythonmac-SIG] py2app and command line options

2008-01-30 Thread Christopher Barker
on_process = False option in py2app. I'm not going to write it though! thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115

[Pythonmac-SIG] py2app and command line options

2008-01-29 Thread Christopher Barker
ication", author="NOAA Emergency Response Division", author_email="[EMAIL PROTECTED]", options={'py2app': OPTIONS}, setup_requires=['py2app'], ) Thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer E

Re: [Pythonmac-SIG] Py2App and adding paths to sys.path

2008-01-29 Thread Christopher Barker
es zip -- WITH the same package structure (in this case, cameo.model. was there, with other modules, just not this one. Anyway, the solution for now is just to put a: import cameo.model.reactivity line in one of the main modules of the app, so now py2app is finding it. It seems there should be a

[Pythonmac-SIG] Py2App and adding paths to sys.path

2008-01-29 Thread Christopher Barker
e to do. Also, while it mostly works with the app bundle, I am having some trouble with the durus database, which uses pickles -- I think it's having trouble finding the modules it needs to unpickle some stuff. I'll need to dig into this deeper, but it seems maybe I'm just not doin

Re: [Pythonmac-SIG] Path Issues when using Swig (and OSX Leopard)

2008-01-14 Thread Christopher Barker
for you. The latest version of the SWIG docs has instructions: http://www.swig.org/Doc1.3/Python.html#Python_nn6 Or look at various distutils instructions. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600

Re: [Pythonmac-SIG] newbie Mac switcher trying to set up django on Intel MacBook Pro Tiger

2008-01-03 Thread Christopher Barker
d 3) bdist_mpgk (or whatever the setuptools command is to build a binary egg) > and the second one doesn't > really become important until such fat eggs become widely available > (which they are not right now, IIRC). I don't know how you define widely, but they are becoming av

Re: [Pythonmac-SIG] newbie Mac switcher trying to set up django on Intel MacBook Pro Tiger

2007-12-23 Thread Christopher Barker
tutils issue effects you in two ways -- 1) it's really not that rare to have to compile things -- and maybe you want to use py2app to distribute something. 2) You want binaries from someone else, and they aren't right, because they compiled them with Apple's python. Anyway, I&#

<    1   2   3   4   5   6   7   >