QuickTopic free message boards logo
Skip to Messages

TOPIC:

FA:OSX / Python

13
Deleted by topic administrator 07-21-2006 08:59 AM
12
Lee Phillips
04-21-2004
10:19 PM ET (US)
Re developing web applications with python: I suggest using webware (webware.sourceforge.net) rather than straight cgi. Just install the webkit framework (skip middlekit, etc.) and get a persistant, multithreaded application server.
11
Lee Phillips
04-21-2004
10:17 PM ET (US)
David Brown: it just didn't work:

[0]python `python -c "import pimp; print pimp.__file__"` -i readline
readline: Not installed:
        Problem with dependency: (AppleInstalledPython): This package cannot be installed automatically (no Download-URL field)


Lee Phillips
http://www.lee-phillips.org
10
pbxPerson was signed in when posted
04-14-2004
08:45 AM ET (US)
Thanks for all the great info! Any updates on getting mod_python 3.x running under OS X are especially welcome.
9
Keith VelebaPerson was signed in when posted
04-13-2004
03:41 PM ET (US)
Python Service Objects, eh? I'll have to check that one out. Thanks for the tip, Dave.

I think one of the main reasons mod_python will not build on Panther is due to a heavy reliance on the structure of Linux in its implementation. I once had a dream of mod_python on Mac, but all information I've come across is completely wrong, hopelessly outdated or talks of its' reliance on Linux.

Although, I hear darwinports http://darwinports.opendarwin.org has a version that will work with their ports of Python and Apache2. I'll be playing with that one this weekend.
8
David Brown
04-13-2004
02:28 PM ET (US)
Here's the easiest way to get readline working in the Python shipped with panther:

python `python -c "import pimp; print pimp.__file__"` -i readline

(all on one line in the terminal)

It just works.
7
Dave Giffin
04-13-2004
02:18 PM ET (US)
Another interesting set for a recovering Java developer is the Python Service Objects project over at source forge. http://sourceforge.net/projects/pso/ the development seems to have come to a halt. I need to try and contact the folks who were working on it. But even at the level it is now running at, it works quite well.

I haven't played around with the Twisted package too much as of yet. It's on my "to do" list.

I am just hoping someone manages to get mod_python going on the OS X install of Apache.
6
Keith Veleba
04-13-2004
02:02 PM ET (US)
As a Java developer/manager who's fed up with the complexity/productivity ratio of J2EE-based apps, I've been dabbling in Python for some time now on OSX. I really want to push a lot of Python-based software into my company. We're implementing Plone for a lot of our workflow needs for routing and publishing of docs.

I use Python daily for quick, one-off apps that talk to our production systems, but some of our legacy applications could do with an overhaul. We do a lot of connectivity with other businesses, and I think the Twisted framework is a godsend for network apps like we do.

As a matter of fact, I'm actually thinking of porting a good amount of the JTOpen library to one based on Twisted so I can access our production IBM iSeries boxes directly from Python and not have to use Jython. Any one else interested in such a thing as that? Drop me a line - keith@veleba.net
5
Kevin Altis
04-13-2004
11:46 AM ET (US)
To get readline and other packages you want to download the MacPython 2.3 for Panther addons installer.

http://homepages.cwi.nl/~jack/macpython/download.html

If you're running Jaguar and installed MacPython 2.3.x then you already have the PackageManager.

ka
4
Dave Giffin
04-13-2004
09:32 AM ET (US)
PyObjC is definitely worth playing with. It takes a touch of getting used to, but if you are coding GUIs aimed at Mac OS X users, this is the way to go. Not to mentioned better integration with OS X in general.

As of right now, I have not found a way to compile mod_python for the standard install of Apache, but Python runs wonderfully as cgi on OS X and is now my prefered web app coding environment.

The OS X built in XML parsers rock as well. Very fast and not resource intensive.

I've more or less stopped using Java and am now coding almost entirely in Python using OS X as my development platform. It rocks.

Take care,
Dave Giffin
http://www.davtri.com
3
has
04-13-2004
07:39 AM ET (US)
More links...

The MacPython SIG mailing list:

http://www.python.org/sigs/pythonmac-sig/

Bob Ippolito gave a presentation on MacPython at PyCon. Here's his slides:

http://www.python.org/pycon/dc2004/papers/...ython_pycon2004.pdf

My own contribution:

http://freespace.virgin.net/hamish.sanderson/appscript.html
2
n9mtb
04-13-2004
01:39 AM ET (US)
Also don't miss http://pythonmac.org/ which is the home page for all things MacPython. Another useful link is http://undefined.org/python/#pimp which is a pointer to an "unofficial" package repository with a lot more stuff in it than the default one; while installing most Python add-ons is pretty easy, this just makes it all that much easier.
1
Simon
04-13-2004
01:14 AM ET (US)
For command-line history and more in the pre-compiled Python 2.3:

http://www.pycs.net/bbum/2003/10/25.html#a518

Look for readline.

Also: Check out http://manatee.mojam.com/~skip/python/completions.py
Edited 04-13-2004 01:15 AM

Print | RSS Views: 3028 (Unique: 1636 ) / Subscribers: 1 | What's this?