Re: [Pythonmac-SIG] Python 3. OS/X 10.6 Ipython

2011-04-09 Thread David Warde-Farley
IPython stable does not support Python 3. There is an experimental version at http://github.com/ipython/ipython-py3k based off of trunk. On 2010-05-28, at 2:00 PM, John Riordan wrote: > I am trying to get IPython running with Python 3.1 on OS/X 10.6.3. > The install script for IPython configures

[Pythonmac-SIG] Python's Mac/BuildScript/build_installer.py fails on 10.6 / 2.6.5

2010-04-27 Thread David Warde-Farley
I have so far had two issues, one that should definitely be addressed by the package maintainers and one that . One was that this line in Mac/Makefile.in, $(CC) $(subst -arch i386,,$(subst -arch ppc,,$(LDFLAGS))) -o $@ @UNIVERSAL_ARCH64_FLAGS@ $(srcdir)/Tools/pythonw.c was causing the '-arch pp

Re: [Pythonmac-SIG] Voice/Speech recognition

2010-03-08 Thread David Warde-Farley
On 3-Mar-10, at 10:45 PM, Dan Ross wrote: I'd like to make an app/game for my kids in which they would see a word, read it and the game would be able to recognize if they've read it correctly. Does anyone have any suggestions for speech/voice recognition? You ought to be able to leverag

Re: [Pythonmac-SIG] pyopencl

2010-01-27 Thread David Warde-Farley
On 27-Jan-10, at 9:36 AM, Markus Mohr wrote: pyopencl ( http://mathema.tician.de/software/pyopencl ) seems to be the most mature and is very similar to PyCUDA which the same author wrote. It however requires boost; I haven't compiled it on OS X but I've compiled other projects that use boos

Re: [Pythonmac-SIG] pyopencl

2010-01-25 Thread David Warde-Farley
On 9-Jan-10, at 12:10 PM, Markus Mohr wrote: Has someone used any of these? A recomendation perhaps? pyopencl ( http://mathema.tician.de/software/pyopencl ) seems to be the most mature and is very similar to PyCUDA which the same author wrote. It however requires boost; I haven't compile

Re: [Pythonmac-SIG] django webapp using CoreGraphics complains about "wrong architecture"

2009-09-17 Thread David Warde-Farley
On 17-Sep-09, at 7:07 AM, Geert Dekkers wrote: Would this then mean that PIL would also fail complaining about "wrong architecture" when running under 64-bit Apache? If you tried to actually access image data with it (like, poke at actual pixels), yes. David __

Re: [Pythonmac-SIG] django webapp using CoreGraphics complains about "wrong architecture"

2009-09-14 Thread David Warde-Farley
On 13-Sep-09, at 10:58 AM, Geert Dekkers wrote: The problem is of course that I need to coax PyObjC to be run by 64 bit Apache. I read about the ability for PyObjC to run in 64-bit mode athttp://pyobjc.sourceforge.net/documentation/pyobjc-core/news.html . I don't know where to find out if my

Re: [Pythonmac-SIG] MacPython v2.5 on OS 10.5 yet?

2009-06-30 Thread David Warde-Farley
On 30-Jun-09, at 9:16 PM, Leonardo Santagada wrote: I remember that Google App Engine had troubles with default python on osx. Also there was probably a reason for python versions 2.5.2, 2.5.3 and 2.5.4 be released (and you could look on the changelog). I would say that if none of the bugs

Re: [Pythonmac-SIG] GASP on OSX 10.5.6

2009-06-29 Thread David Warde-Farley
On 29-Jun-09, at 7:06 PM, Chris Rebert wrote: Mac OS X apparently not a supported platform: https://answers.launchpad.net/gasp-code/+faq/42 It looks like the code is pure python and depends on pycairo, so in theory it should work provided cairo which has a Quartz backend) and pycairo work

Re: [Pythonmac-SIG] New beta release for pyobjc: 2.2b2

2009-05-26 Thread David Warde-Farley
On 26-May-09, at 5:59 AM, Ronald Oussoren wrote: Support for OSX 10.4 is still fairly minimal: pyobjc-core and a number of framework wrappers do build on Tiger, but there are a lot of test failures (although a large subset of those are caused by issues in the test framework). Am I right i

Re: [Pythonmac-SIG] bdist_mpkg 0.4.4 released

2009-05-22 Thread David Warde-Farley
+1. I mostly lurk here but I am quite aware of all the work you do to make Python on the Mac better, you have my sincerest gratitude. David On 22-May-09, at 12:11 PM, Christopher Barker wrote: Ronald Oussoren wrote: I've just uploaded dist_mpkg 0.4.4 to PyPI. Thanks Ronald, I really appre

[Pythonmac-SIG] building 4-way framework build with readline?

2009-05-20 Thread David Warde-Farley
I've had success building the 4-way framework build using Ron's instructions, but I can't seem to get it building with readline linked in. I built a static readline 6.0 so that libreadline.a and libhistory.a are both 4-architecture fat binaries, and configured python with ./configure --

Re: [Pythonmac-SIG] 64-bit wxMac/wxPython?

2009-05-20 Thread David Warde-Farley
On 20-May-09, at 3:01 AM, Stefan Csomor wrote: Thanks Kevin for clarifying :-) yes that's correct, I'm pretty much done with all the important steps (a few things like sheet dialogs have to wait for 2.9.1), 2.9.0 has just had its RC3 and because of a linkage problem on fedora we will have t

Re: [Pythonmac-SIG] 64-bit wxMac/wxPython?

2009-05-19 Thread David Warde-Farley
Hi Ron, On 19-May-09, at 4:19 PM, Ronald Oussoren wrote: wxMac is build on top of the Carbon framework and hence won't work in 64-bit mode. There is an experimental wxCocoa port as well, that might work in 64-bit mode. Thanks for the quick response. I now recall reading about 64-bit sup

[Pythonmac-SIG] 64-bit wxMac/wxPython?

2009-05-19 Thread David Warde-Farley
Howdy, I was wondering if anyone has successfully built wxMac/wxPython in 64- bit mode for use with a 64-bit universal (or 4-way universal) Python. So far I've had limited success - even though wxMac has an --enable- universal flag for configure, I get complaints about multiple arch flags.

Re: [Pythonmac-SIG] py2app and ipython

2009-04-30 Thread David Warde-Farley
On 30-Apr-09, at 4:36 PM, Thomas Robitaille wrote: I am trying to use py2app to make a simple MacOS X application that launches an ipython shell. How do you expect to use this? It appears to need a terminal window -- Py2app is usually for GUI apps, so it will dump output to Console.app, b

Re: [Pythonmac-SIG] MacPython and Gnuplot

2009-01-29 Thread David Warde-Farley
On 29-Jan-09, at 8:29 AM, Matt Foster wrote: On Tue, Jan 27, 2009 at 5:33 AM, raf . wrote: I have MacPython 2.5 on my iMac. I also have Gnuplot.app Version 4,2. How do I get them to work together? Can someone show a simple example or instructions. They both came with my iMac. ron fran

Re: [Pythonmac-SIG] How to install latest 2.5 in OS X 10.4?

2009-01-07 Thread David Warde-Farley
On 30-Dec-08, at 4:26 PM, Joe Strout wrote: We've gotten most of this mostly working on 10.5 Intel, but now to make a properly portable app, I need to go back and do it all again on a 10.4 machine. I'm stuck on step 1. If you're using the Python.org build of python, it's built against the

Re: [Pythonmac-SIG] pyobjc 2.0 with the python.org distribution?

2008-12-17 Thread David Warde-Farley
On 17-Dec-08, at 1:25 PM, Dav Clark wrote: Reza, Are you implying that you are able to build pyobjc 2.0 on python 2.5? No one I know is able to do this... it would be exceedingly useful to have instructions on how to do this. Even vague and cryptic hints would be appreciated! I post

[Pythonmac-SIG] pyobjc 2.0 with the python.org distribution?

2008-12-17 Thread David Warde-Farley
Hi folks, I noticed today that while PyObjC, etc. is included in the system Python in 10.5, the py2.5-fat binaries on undefined.org are 1.4.x series. As I understood it, the python.org UB is the only solution if you want to build redistributable applications. I also have been using it as

Re: [Pythonmac-SIG] Status of Python 3.0 for Mac?

2008-12-16 Thread David Warde-Farley
On 16-Dec-08, at 3:13 PM, Dav Clark wrote: For completeness / clarity, you simply CAN'T build VTK bindings from the stock sources targeting the system python if you have ANY Frameworks installed. You can modify some of the build scripts and get a successful install, however. I would not b

Re: [Pythonmac-SIG] which directory for site-packages

2008-11-15 Thread David Warde-Farley
On 15-Nov-08, at 1:15 PM, Hunt Culver wrote: Then from within python I printed all the the sys.paths and sys.prefix. I tried to create a site-packages sub directory in /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5 , but python doesn't seem to find it automatically.

Re: [Pythonmac-SIG] which directory for site-packages

2008-11-15 Thread David Warde-Farley
Change the first path entry to /Library/Frameworks/Python.framework/ Versions/2.5/lib/python2.5/bin David On 15-Nov-08, at 1:15 PM, Hunt Culver wrote: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 ___ Pythonmac-SIG maillist - P

Re: [Pythonmac-SIG] MySQLdb on OS X?

2008-10-30 Thread David Warde-Farley
On 30-Oct-08, at 3:35 PM, Joe Strout wrote: building '_mysql' extension creating build/temp.macosx-10.5-i386-2.5 gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused- madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes - DMACOSX -I/usr/include/ffi -DENABLE_DTRA

Re: [Pythonmac-SIG] IDE that doesn't look awful?

2008-10-27 Thread David Warde-Farley
On 20-Oct-08, at 5:46 PM, Joe Strout wrote: Hi all, I'd heard good things about Wing IDE (including that it was written with wxPython, and I know that wxPython can make decent Mac apps with a bit of care). So I downloaded the disk image today, and man -- is it ever ugly! It's really not

Re: [Pythonmac-SIG] Anyone have 10.5.5 on a G5?

2008-10-20 Thread David Warde-Farley
On 17-Oct-08, at 1:34 PM, has wrote: Hi folks, Trying to get py-appscript 0.19.0 out the door, but I've a user reporting big problems trying to install it on their system and need to find out if it's their system or appscript that's at fault. Need a quick favour from someone with a copy o

Re: [Pythonmac-SIG] catching the Cmd+Q event

2008-08-24 Thread David Warde-Farley
Hmm, that's an interesting idea. Do you mean to say __del__ of wx.App? David On 24-Aug-08, at 5:08 AM, Henning Hraban Ramm wrote: Am 2008-08-24 um 10:41 schrieb David Warde-Farley: I was wondering if anyone knew of a way to catch Cmd+Q in a threaded wx/Tkinter/etc. event loop. I rem

[Pythonmac-SIG] catching the Cmd+Q event

2008-08-24 Thread David Warde-Farley
Hi all, I was wondering if anyone knew of a way to catch Cmd+Q in a threaded wx/Tkinter/etc. event loop. The reason is that ipython ( http://ipython.sourceforge.net/ ) supports several plotting toolkits for interactive data analysis, however if you habitually hit Cmd+Q to close the window

Re: [Pythonmac-SIG] How to click on a Mac OS X button using python

2008-08-23 Thread David Warde-Farley
On 23-Aug-08, at 12:05 AM, murali krishna wrote: Hi, Can anyone tell how to click on a MAC OS X button using python script...I can do that easily in Windows but i have no clue to do it on Mac. Hi Murali, You really needn't send three messages to the list within he span of two hours. Th

Re: [Pythonmac-SIG] "Best" Mac Python under Leopard?

2008-08-23 Thread David Warde-Farley
On 23-Aug-08, at 9:25 AM, Dav Clark wrote: Andrew, I have I will add that if you need pyobjc, I had weird problems with pyobjc 1.4 on leopard and a python.org framework build. Stuff just didn't work (wasn't receiving messages from an external library for hardware interface). I switched

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

2008-05-12 Thread David Warde-Farley
I'm positively confused. What would be the use of py2app and bdst_mpkg on a platform other than the Mac? Are you trying to build apps for GNUstep or something? If that is your intention, chances are a lot of the NeXT-ish stuff available in GNUstep has diverged significantly from the same in OS X,

Re: [Pythonmac-SIG] vobject

2007-12-05 Thread David Warde-Farley
On 5-Dec-07, at 11:36 PM, Nehemiah Dacres wrote: > perhaps you could point your python to the ical callendar store > place (i forget where this is but its documented at apple > somewhere ) and edit the ical calendar objects with this. Now you > can use a well documented, programmatic interfa

[Pythonmac-SIG] Fw: Re: Any hints on building libpng universal?

2007-11-27 Thread David Warde-Farley
Chris Barker brought it to my attention that packages that go bup on Pythonmac.org should have their own static copies of (non system?) dependencies. The current matplotlib package expects libpng in /usr/local/lib. If someone can give me a very basic rundown of how this is done I'd be happy t

[Pythonmac-SIG] Any hints on building libpng universal?

2007-11-22 Thread David Warde-Farley
Hi again, I'm trying to build a universal libpng package at the moment for use with matplotlib from pythonmac.org/packages. There's an older version up on undefined.org that's referred to in some mailing list postings but there've been some major security holes fixed since then, so I've b

Re: [Pythonmac-SIG] MySQLdb on 2.5?

2007-11-19 Thread David Warde-Farley
On 19-Nov-07, at 7:21 PM, Bob Ippolito wrote: > I'm pretty sure I didn't patch anything. I think what I had to do was > take a PPC MySQL library and an x86 MySQL library and use lipo to > splice them together, but other than that it compiled fine I believe. > > We haven't had a reason to use MySQ

[Pythonmac-SIG] MySQLdb on 2.5?

2007-11-19 Thread David Warde-Farley
Hi folks, I went looking for a Universal Binary of MySQL-python (aka MySQLdb) now that I moved over to 2.5. Saw that there wasn't on undefined, so attempted to build myself. I get some rather weird stuff, that when googled only produces one slightly relevant result at http:// tinyurl.com/2a

Re: [Pythonmac-SIG] Using Python for cgi

2007-05-01 Thread David Warde-Farley
On 1-May-07, at 5:03 AM, Brian Wichmann wrote: > Dear all, > > I have prototyped a system using MySql and Python which needs to be > adjusted to use the HTML form data via a web server. I am on 10.4. Chances are Apache isn't set up to handle a .py as an executable. Make sure you've got lin

Re: [Pythonmac-SIG] Compiling Scipy/available binaries for Universal Python 2.4?

2007-01-11 Thread David Warde-Farley
On 11-Jan-07, at 11:18 PM, Robert Kern wrote: > Well, it's linking just fine, but vecLib removed the ATLAS version > information > that the scipy build system uses to determine whether or not to > build the > wrappers for the C versions of the BLAS subroutines that ATLAS and > vecLib > provi

Re: [Pythonmac-SIG] Compiling Scipy/available binaries for Universal Python 2.4?

2007-01-11 Thread David Warde-Farley
On 11-Jan-07, at 8:29 PM, Bob Ippolito wrote: > Well I'm back in the country now and I just got my mbp back from > applecare today... so if "someone" sends me updated binaries I'll > gladly sync them to pythonmac.org. I would do it but again, I'm not sure my binaries are "good" i.e. completely

Re: [Pythonmac-SIG] Compiling Scipy/available binaries for Universal Python 2.4?

2007-01-11 Thread David Warde-Farley
On 11-Jan-07, at 12:13 PM, Robert Kern wrote: > With Universal Python 2.4, you need to be using gcc 4 and gfortran. > Please see > the instructions that I wrote here: > > http://projects.scipy.org/pipermail/numpy-discussion/2007-January/ > 025368.html > > If that doesn't solve the problem, tr

Re: [Pythonmac-SIG] Compiling Scipy/available binaries for Universal Python 2.4?

2007-01-11 Thread David Warde-Farley
parsetools ImportError: Failure linking new module: scipy/sparse/sparsetools.so: Symbol not found: _fprintf$LDBLStub Referenced from: scipy/sparse/sparsetools.so Expected in: dynamic lookup On 11-Jan-07, at 11:32 AM, David Warde-Farley wrote: > When I compile Numpy & Scipy from s

[Pythonmac-SIG] Compiling Scipy/available binaries for Universal Python 2.4?

2007-01-11 Thread David Warde-Farley
When I compile Numpy & Scipy from source (on a G5 running 10.4.8) I run into these sorts of snags: >>> from scipy import sparse Traceback (most recent call last): File "", line 1, in ? File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/scipy/sparse/__ini

Re: [Pythonmac-SIG] Permission of package installed by mpkgs...

2006-08-09 Thread David Warde-Farley
On 9-Aug-06, at 4:29 PM, Christopher Barker wrote: > After installing, "import Image" still didn't work, so we went poking > into /Library.Frameworks,.etc, and found that indeed, the PIL dir > and PIL.pth has been installed in site-packages, but that neither had > read permissions for anyone b

[Pythonmac-SIG] "del" key in the REPL?

2006-07-25 Thread David Warde-Farley
It's merely a minor annoyance, but has anyone else noticed that hitting the "forward delete" key (not the Delete aka backspace key two rows above return) on a full-sized keyboard crashes the Universal Python interpreter? Not immediately, you either have to hit it a few times or hit it and

Re: [Pythonmac-SIG] Best way to do full-screen mode?

2006-07-21 Thread David Warde-Farley
On 21-Jul-06, at 6:26 PM, Robert Stephenson wrote: > My app needs a full-screen mode, and am looking for examples or > advice how to do it. CoreGraphics allows you to capture the > display and then draw on it, but since it's not written in ObjC my > understanding is that it's not easily acc

Re: [Pythonmac-SIG] Controlling Mail.app from Python

2006-05-28 Thread David Warde-Farley
On 28-May-06, at 10:12 AM, Daniel Lord wrote: > The one thing I haven't succeeded in doing was to create a pure > Python mail filter. I had to write an AppleScript hack that used the > last word in the mail filter title as the name of a Python script to > run and pass it the rule name and message

Re: [Pythonmac-SIG] Use py2app: GTK+-based application/adding generated files/X11

2006-05-22 Thread David Warde-Farley
On 22-May-06, at 1:37 PM, Bill Janssen wrote: > Note that by default, X11 is not available on a Mac. It's an > optional install. Yup, but it's easy enough to direct your users on the download page to install X11 off the Apple CDs. They're not paying anything for Gaphor so they shouldn't wh

Re: [Pythonmac-SIG] Use py2app: GTK+-based application/adding generated files/X11

2006-05-22 Thread David Warde-Farley
Hiya, Running the shell command open -a X11 || open -a XDarwin Will get X11 started for the majority of users (who have it installed, of course). Documentation of the open command: http://www.hmug.org/man/1/open.php There's also an open-x11 shell command that will start Apple

Re: [Pythonmac-SIG] New Page, first proposal

2006-02-10 Thread David Warde-Farley
Argh. Right. Note to self: actually go check before asking stupid questions. - David On 10-Feb-06, at 1:03 PM, Bob Ippolito wrote: > > On Feb 10, 2006, at 9:49 AM, David Warde-Farley wrote: > >> >> On 10-Feb-06, at 12:39 PM, Bill Janssen wrote: >> >>>>&g

Re: [Pythonmac-SIG] New Page, first proposal

2006-02-10 Thread David Warde-Farley
On 10-Feb-06, at 12:39 PM, Bill Janssen wrote: >>> I think this would be a pretty good way to start building a FAQ. >> >> There already is a FAQ, and it's been there for a very long time. We >> don't have to start building anything -- just link to the most >> popular ones. > > Where the heck is

Re: [Pythonmac-SIG] My stab at a new page

2006-02-08 Thread David Warde-Farley
This is a great start. Do you think it might be a good idea to put this up on the PythonMac wiki so that others on the list can contribute? I can foresee this turning into a really good resource. - Dave On 8-Feb-06, at 11:29 PM, Bill Janssen wrote: > I've made up a sample page, at http://bil

Re: [Pythonmac-SIG] a beginner's list

2006-02-08 Thread David Warde-Farley
On 8-Feb-06, at 5:00 PM, Christopher Barker wrote: > has wrote: >> - professional Unix developers who want to use Python on OS X just >> the same as they'd use Python on any other *nix > > If this means non-GUI apps, then they don't need any help from us, > except maybe one line about how python

Re: [Pythonmac-SIG] install again?

2006-02-06 Thread David Warde-Farley
On 6-Feb-06, at 5:00 AM, linda.s wrote: > Actually I downloaded python 2.4.2 and install it from source. The > installation appeared to be fine until "make install" was complete. > However, after I reenter the terminal and call Python, it still showed > Python 2.3.5 instead of Python 2.4.2, very

Re: [Pythonmac-SIG] install again?

2006-02-06 Thread David Warde-Farley
On 6-Feb-06, at 4:46 AM, linda.s wrote: > How to smoothly remove two former pythons from my Mac? > I have Python 2.3.5 installed in the machine. I tried to install > Python 2.4.2 from source but it did not appear. > How can I smoothly remove both of them and install a another python > version?

Re: [Pythonmac-SIG] MySQLdb lib help

2006-01-18 Thread David Warde-Farley
On 18-Jan-06, at 2:55 PM, Bob Ippolito wrote: > It's fine, unless you want to create redistributable applications. > If you build an app with a vendor Python, it will only reliably work > on that version of the OS. Future versions of Mac OS X will > absolutely throw away Python 2.3 for Python 2.

Re: [Pythonmac-SIG] MySQLdb lib help

2006-01-18 Thread David Warde-Farley
On 16-Jan-06, at 11:44 AM, Chris Porter wrote: > Hello, complete python newbie here. > > I've got: > > OSX 10.4.3 > Python 2.3.5 > MySQL 4.1.15-standard > (of course, all pre-installed, except for MySQL) > > I don't seem to have the right python module that will allow python > to interact with m

[Pythonmac-SIG] Cleanest way to access IOKit from Python?

2006-01-04 Thread David Warde-Farley
I've been grokking the mailing list archives and I can't seem to find anything but vague references to IOKit. Basically, I want to mess with a USB Input device (it acts kind of like a keyboard wedge) directly. It seems like the best way to do this would be through IOKit. The question is, can

[Pythonmac-SIG] PyOXIDE and Python 2.4

2005-11-19 Thread David Warde-Farley
I've installed PyObjC from source on Python 2.4 / 10.4, using the bdist --open method. Unfortunately PyOXIDE still doesn't want to launch, complaining of a lack of PyObjC. Is PyOXIDE using Apple's Python? Is there a way to tell it not to? Can I still develop for Python 2.4 with PyOXIDE even

Re: [Pythonmac-SIG] Py2App and GTK+

2005-10-22 Thread David Warde-Farley
package. Not too sure how you'd do this with Py2app but I think it would be possible to insert them after the fact (never tried it, so caveat emptor). Check out this package for some hints: http://gimp-app.sourceforge.net/ Good luck, - David Warde-Farley __

Re: [Pythonmac-SIG] Sniff Wifi jpegs, etc.

2005-10-06 Thread David Warde-Farley
On Thu, 2005-10-06 at 15:50 -0400, Alexandre Quessy wrote: > hi ! > > I have heard somewhere that it was possible to dump TCP packets in > order to get all the images that are sent and received through a wifi > network. Is this possible using Python ? Thanks ! This is entirely the wrong list to