Re: [Pythonmac-SIG] IDLE on Python-2.6 release version

2008-10-06 Thread Kent Johnson
Rajanikanth Jammalamadaka rajanikanth at gmail.com wrote: Thanks for your reply Kevin. I installed Tk 8.5 but now I get this error: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/Current/bin/idle", line 5, in main() File "/Library/Frameworks/Python.fr

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

2008-02-14 Thread Kent Johnson
Kent Johnson wrote: > Christopher Barker wrote: >> Robin Dunn wrote: >>> Just replace sys.stdout with an object with a write() method that does >>> what you want. >> I don't think that will do it, as "print" will have already converted >

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

2008-02-14 Thread Kent Johnson
Christopher Barker wrote: > Robin Dunn wrote: >> Just replace sys.stdout with an object with a write() method that does >> what you want. > > I don't think that will do it, as "print" will have already converted > the object to a string, and it does that with str(), which calls > object.__str__

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

2008-02-13 Thread Kent Johnson
Christopher Barker wrote: > I suppose what I would like is if I could change the default encoding > that str() uses -- or at least change it to "replace" or "ignore" mode. You can, with sys.setdefaultencoding(). See here for discussion of how: http://blog.ianbicking.org/illusive-setdefaultencodin

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

2008-02-05 Thread Kent Johnson
DavidW wrote: > Hi All, > > Does anyone know of a set of (formalized software > engineering) metrics against which (python) modules can be evaluated? http://pycheesecake.org/ attempts to evaluate the 'kwalitee' (their word) of software packages by applying automatic metrics. > Also, I've been b

Re: [Pythonmac-SIG] Pystone numbers for different Macs...

2008-01-22 Thread Kent Johnson
Daniel Lord wrote: > Kent, > > Thanks for the link. I am just lazy (that's why I like Python over > C/CPP/ObjC when I can get away with it) and would prefer the lightweight > (to design and code that is not as in process overhead) threads over > separate application processes. But certainly you

Re: [Pythonmac-SIG] Pystone numbers for different Macs...

2008-01-21 Thread Kent Johnson
Daniel Lord wrote: > My point was that, as I understand it, thanks to the GIL--Python > cannot easily take advantage of multi-cores period even when the > program uses multiple threads--it it is a limitation of the > implementation of the language interpreter. I guess that tells us we > oug

Re: [Pythonmac-SIG] Eclipse + SWT + Python

2007-11-19 Thread Kent Johnson
Scott Frankel wrote: > Is anyone on this list using Eclipse with Python and the SWT > windowing kit? > > I've been looking through the MacPython.org and Eclipse pages for > info on combining Python and SWT. So far, I've read about the PyDev > plugin that allows Eclipse to speak Python. > >

Re: [Pythonmac-SIG] Problem with numpy on Leopard

2007-11-02 Thread Kent Johnson
Christopher Barker wrote: > I suppose this may be a time to take a good look at workingenv again... Or virtualenv which has replaced workingenv: http://pypi.python.org/pypi/virtualenv Kent ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://m

Re: [Pythonmac-SIG] easygui

2007-10-04 Thread Kent Johnson
Rafael Bejarano wrote: > Can anyone > on this list tell me if easygui works on the Mac, and if so, what > steps I need to take to make it work? It works fine for me using Python 2.5.1 on MacBook Pro. I don't think I did anything special to install it. Kent ___

Re: [Pythonmac-SIG] Minimal Python 2.5 and Django install

2007-09-19 Thread Kent Johnson
Dave Everitt wrote: > After earlier failed attempts to get Django up and running (see: > 'Macports and Django install problems') I started again and wrote an > 'absurdly simple' OS X 10.4 Django install guide here: > > http://ecoconsulting.co.uk/training/python/python-django-OSX.shtml You don

Re: [Pythonmac-SIG] Minimal Python 2.5 and Django install

2007-09-19 Thread Kent Johnson
Dave Everitt wrote: > 1. Is it embedded in Python 2.5? Yes, in the sqlite3 package. > 2. Can it be tested for with: > >>> from pysqlite2 import test > >>> test.test() No, the package is called sqlite3 and there is no umbrella test.test(). You can run individual tests, e.g. In [6]: from sqli

Re: [Pythonmac-SIG] findertools.launch reports "no eligible process"

2007-06-08 Thread Kent Johnson
has wrote: > Anyway, simplest solution here is: > > import subprocess > subprocess.call(['open', '/Users/drew/Documents']) or import open os.system('open /Users/drew/Documents') Kent ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org h

Re: [Pythonmac-SIG] Stupid question

2007-05-21 Thread Kent Johnson
Calder Coalson wrote: >> That is exactly what modules and imports let you do. > It really doesn't seem to be doing that, because I import a bunch of > stuff and define it in my main file, then I import another file and it > can't use the global variables and the modules imported in the main file.

Re: [Pythonmac-SIG] Stupid question

2007-05-20 Thread Kent Johnson
e assimilator program shouldn't take that long, but it > really seems like there should be an easy way to do this. > > Thanks for the help, > -Calder > > > On May 20, 2007, at 6:37 AM, Kent Johnson wrote: > >> Calder Coalson wrote: >>> I've tried im

Re: [Pythonmac-SIG] Stupid question

2007-05-20 Thread Kent Johnson
Calder Coalson wrote: > I've tried import, but that > doesn't work because the thing has to be completely independent. All > I want to do is split up my file into multiple files, These requirements seem a bit contradictory. If you have one program that you want to split into multiple modules

Re: [Pythonmac-SIG] Help with psycopg2

2007-03-28 Thread Kent Johnson
Kent Johnson wrote: > Hi, > > I am trying to install PostgreSQL and psycopg2. I would like to get this > working with Python 2.5 and Postgres 8.2. Update: I was able to build psycopg2 from source and it now imports so I think I'm all set. Thanks, Kent > > I insta

[Pythonmac-SIG] Help with psycopg2

2007-03-28 Thread Kent Johnson
Hi, I am trying to install PostgreSQL and psycopg2. I would like to get this working with Python 2.5 and Postgres 8.2. I installed Postgres from Mark Liyanage's installer: http://www.entropy.ch/software/macosx/postgresql/ I installed psycopg2 from pythonmac: http://www.pythonmac.org/packages/py

[Pythonmac-SIG] Trouble with wxPython

2007-03-18 Thread Kent Johnson
I am having trouble getting wxPython apps to work. I have a MacBook Pro with OS X 10.4.8. I have Python 2.4.4 and Python 2.5 installed, both using the framework installs from pythonmac.org. I have several wx apps I would like to use: SPE and Firedrop, to start. I haven't been able to get them work

[Pythonmac-SIG] Confused about framework build

2007-02-27 Thread Kent Johnson
Hi, I am coming to Mac Python development after several years on Windows and I am a bit confused by the Python framework stuff. I have installed the framework build of Python 2.4 from pythonmac.org. Questions: - How can I have Python 2.4 and 2.5 both available? I am developing a web site that