Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
(I know replying to self is a sure sign of aging :-) A quick update: after installing the 'tkinter' fedora package (still in live-cd mode), the following 3 lines script does what "pydoc -g " should: import Tkinter import pydoc pydoc.gui() HTH, Bernard. -- http://mail.python.org/m

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
I see what you mean, having started my fedora8-live image under virtualbox. -g support is apparently not there with this distribution, oddly enough. Perhaps you should post your question on a fedora support forum. Under the live cd (hence probably with a smaller selection of available packages tha

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
FWIW I am using 2.4.4 under debian etch and 2.5.1 under windows XP, and pydoc seems to support the -[pgkw] flags under both versions. When trying -g under debian, I am getting a stack-trace and a message inviting me to install the python-tk package. Does "pydoc -g" provide any feedback on your ins

Re: missing pydoc gui

2007-12-26 Thread Bernard Delmée
Hi Jim, I guess you're missing tk and its tkinter python wrapper. Sorry I don't know what the corresponding packages would be called under fedora... -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_oracle

2007-06-24 Thread Bernard Delmée
Hi Lukas, you will need a working oracle OCI client middleware before cx_oracle can talk to your database. The easiest nowadays is the so-called instant client, which must be available from the otn.oracle.com site (downloads might require a free registration). Try to get sql*plus working (the stan

Re: No zlib in Python 2.4.4

2007-04-11 Thread Bernard Delmée
> I need Python to be compiled with Zlib so that I can compile and use > Zope. I am guessing you need zlib_dev.rpm (or somesuch) installed for the python build process to find the relevant headers. Sorry I cannot be more specific not being a SuSE user myself (anymore)... Bernard. -- http://mai

handling secure attachments in email messages

2007-02-17 Thread Bernard Delmée
Hello, We have a processing chain automatically handling email attachments in python, which works well. We'd like to add support for encrypted files. We're using python 2.3 on HP-UX. I've checked the online 2.5 documentation, and my understanding is that the standard library still only has support

Re: cx_Oracle and NCLOBs

2006-11-09 Thread Bernard Delmée
Sorry I have no direct answer for you, but suspect you should post to the cx_Oracle group. Check the sourceforge project page. It is also conveniently mirrored at news.gmane.org. -- http://mail.python.org/mailman/listinfo/python-list

Re: mail attachment with non-ascii name

2005-12-12 Thread Bernard Delmée
Thank you Neil, that is what I needed. B. Neil Hodgson wrote: > > >>> import email.Header > >>> x = '=?iso-8859-1?q?somefile=2ezip?=' > >>> email.Header.decode_header(x) > [('somefile.zip', 'iso-8859-1')] > >Neil -- http://mail.python.org/mailman/listinfo/python-list

mail attachment with non-ascii name

2005-12-11 Thread Bernard Delmée
I am using the "email" module to decode incoming messages. (with msg = email.message_from_file( msg_file )) Sometimes an attachment has its name (as returned by msg.walk().part.get_filename()) not in ASCII (e.g. '=?iso-8859-1?q?somefile=2ezip?=') How can I turn that into simply 'somefile.zip' ? I h

Re: [OT] Oracle 9i client for Linux

2005-11-30 Thread Bernard Delmée
> It is version 10, would it be compatible with 9i servers? Yes. > Indeed I use cx_oracle but on M$ yet. Want to move to Linux. If you need to compile yourself, the instant client headers don't live where a full-blown Oracle install would put them and you may need to slightly alter setup.py. cx_

Re: [OT] Oracle 9i client for Linux

2005-11-29 Thread Bernard Delmée
Andy Leszczynski wrote: > Where can I find such? I can download from Oracle whole thing but no the > client itself. Look into the Oracle Instant Client: (might require a -free- OTN registration) Be sure to download the

Re: import cx_Oracle fails!

2005-05-21 Thread Bernard Delmée
Hi Daniel, is your processor Itanium or PA? I am having a hard time getting cx_oracle (4.1) and python (2.3.5) to cooperate on an HP-UX 11.23 server (I see you're running 11.11). I can compile both packages with gcc 3.4.3 either in 32-bit (apparently the default) or 64-bit (-mlp64 gcc flag) but p

python 2.3 + cx_oracle on HP-UX Itanium

2005-05-18 Thread Bernard Delmée
Hello, because we are migrating to an Itanium HP-UX server, I will shortly need to compile python 2.3 and cx_oracle on that platform. I seem to recall people having problem compiling python on HP-UX in general, and am interested in opinions about which compiler to use. Should I require the HP comp

Re: oracle interface

2005-04-05 Thread Bernard Delmée
We're so satisfied with cx_Oracle (HP-UX & Win32) that we have not even bothered checking the other ones. Highly recommended. -- http://mail.python.org/mailman/listinfo/python-list

Re: float default formatting

2005-03-26 Thread Bernard Delmée
Are you trying to do currency? There are better ways, using the locale methods. No, just dumping some data structures and I'd rather not check every item's type and format floats explicitly. I was hoping the sprintf mask float's __str__ probably uses was somehow exposed and could be altered. -- ht

float default formatting

2005-03-24 Thread Bernard Delmée
Is there a simple way to modify the default sprintf mask used for floats ? (eg something like sys.float_mask = '%.2f') I've tried assigning to float.__dict__[ '__str__' ], but that's apparently not allowed. -- http://mail.python.org/mailman/listinfo/python-list