python 2.6 wininst problem

2009-01-29 Thread timw.google
I just installed Python2.6 on my WinXP box in a non-standard location (not C:\Python26) since I'm not admin. I used cygwin to create a module of an extension I wrote, but when I went to execute the installer, I get a popup error "This application has failed to start because the application configu

Re: install wxPython on windows without admin?

2008-11-17 Thread timw.google
On Nov 17, 9:57 am, Steve Holden <[EMAIL PROTECTED]> wrote: > timw.google wrote: > > The subject line says it all. Is there a way to install wxPython on a > > Windows machine without admin privs? I love the way python doesn't > > need admin to install locally,

install wxPython on windows without admin?

2008-11-17 Thread timw.google
The subject line says it all. Is there a way to install wxPython on a Windows machine without admin privs? I love the way python doesn't need admin to install locally, and I'd like to try wxPython w/o having to get our help desk involved. Do I have to compile it from source with Cygwin? Thanks. -

Re: disable ctrl-P in idle?

2008-11-11 Thread timw.google
On Nov 10, 10:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 10, 4:49 pm, RichardT <[EMAIL PROTECTED]> wrote: > > > > > On Mon, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google" > > > <[EMAIL PROTECTED]> wrote: > >

Re: disable ctrl-P in idle?

2008-11-11 Thread timw.google
On Nov 10, 4:53 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 10, 3:27 pm, "timw.google" <[EMAIL PROTECTED]> wrote: > > > > > On Nov 10, 2:57 pm, Robert Singer <[EMAIL PROTECTED]> wrote: > > > > On Mon, 10 No

Re: disable ctrl-P in idle?

2008-11-10 Thread timw.google
On Nov 10, 2:57 pm, Robert Singer <[EMAIL PROTECTED]> wrote: > On Mon, 10 Nov 2008 20:56:46 +0100, Robert Singer <[EMAIL PROTECTED]> > wrote: > > >On Mon, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google" > ><[EMAIL PROTECTED]> wrote: > > &g

disable ctrl-P in idle?

2008-11-10 Thread timw.google
Is there a way to disable ctrl-P (print window) in IDLE? I'm editing some python code in IDLE and I keep hitting this by mistake from my years of emacs editing. Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...')

2007-10-09 Thread timw.google
On Oct 7, 1:01 pm, Michael Torrie <[EMAIL PROTECTED]> wrote: > timw.google wrote: > > Hi > > > I want to write a python script that runs rsync on a given directory > > and host. I build the command line string, but when I try to run > > subprocess.call(cmd), o

Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...')

2007-10-05 Thread timw.google
On Oct 5, 10:33 am, "timw.google" <[EMAIL PROTECTED]> wrote: > Hi > > I want to write a python script that runs rsync on a given directory > and host. I build the command line string, but when I try to run > subprocess.call(cmd), or p=subprocess.Popen(cmd, shell=T

supplying password to subprocess.call('rsync ...'), os.system('rsync ...')

2007-10-05 Thread timw.google
Hi I want to write a python script that runs rsync on a given directory and host. I build the command line string, but when I try to run subprocess.call(cmd), or p=subprocess.Popen(cmd, shell=True),or os.system(cmd), I get prompted for my login password. I expected this, but when I try to give my

Re: how to join array of integers?

2007-09-17 Thread timw.google
On Sep 17, 8:46 am, John Machin <[EMAIL PROTECTED]> wrote: > On Sep 17, 10:16 pm, "timw.google" <[EMAIL PROTECTED]> wrote: > > > > > > > On Sep 15, 8:36 am, Summercool <[EMAIL PROTECTED]> wrote: > > > > i think in Ruby, if you have an

Re: how to join array of integers?

2007-09-17 Thread timw.google
On Sep 15, 8:36 am, Summercool <[EMAIL PROTECTED]> wrote: > i think in Ruby, if you have an array (or list) of integers > > foo = [1, 2, 3] > > you can use foo.join(",") to join them into a string "1,2,3" > > in Python... is the method to use ",".join() ? but then it must take > a list of strings

Re: customary way of keeping your own Python and module directory in $HOME

2007-05-15 Thread timw.google
On May 14, 8:55 pm, [EMAIL PROTECTED] wrote: > On May 14, 6:00 pm, James Stroud <[EMAIL PROTECTED]> wrote: > > > [EMAIL PROTECTED] wrote: > > [snip], but on *nix, > > you can compile python with the "--prefix=" option set to a directory in > > your home dir and install there. > > Check. > > > I rec

Re: os.listdir() doesn't work ??

2007-05-14 Thread timw.google
On May 14, 4:09 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > I want to find all files with the extension "*.txt". > From the examples in "Learning Python, Lutz and Asher" and > from the website I see examples where you also may specify a wildcard > filegroup. > > But when I try this >

list of datasaources with pyodbc

2007-04-13 Thread timw.google
How do I get a list of datasources with pyodbc? I know that with mx.ODBC.Windows I can use the DataSources method to get a dictionay containing the datasources. Is there a similar way to do this with pyodbc? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: INSERT statements not INSERTING when using mysql from python

2006-12-29 Thread timw.google
Not sure if this will help, as you said you already tried autocommit, but did you try to commit after creating the table, then doing all the inserts before commiting on disconnect? (I'm no MySQL or Python guru, but I do use it with python and MySQLdb .) -- http://mail.python.org/mailman/listinfo

Re: using pydoc in an application

2006-06-27 Thread timw.google
-g for gui based help""" if 'linux' in sys.platform: os.system('pydoc -g') if 'win32' in sys.platform: os.system(os.path.join(sys.prefix, 'Tools', 'Scripts',

using pydoc in an application

2006-06-27 Thread timw.google
Hi all, I'm discovering pydoc, and it seems to me that this is a great way to have online documentation for my application. Are there any examples of using this in some kind of help menu in an application? I've tried to just bind pydoc.gui() to a menu item, but this just brings up the GUI for pyd

Re: Help req: Problems with MySQLdb

2006-06-22 Thread timw.google
Do you have a MySQL acccount set up on the localhost? I usually create two users with the same privs. One for the localhost where the server is, another to connect from somewhere else. Something like mysql> grant usage on *.* to 'user'@'localhost' identitfied by 'some_pass'; mysql> grant usage on

Re: pylab doesn't find numpy on Windows

2006-06-13 Thread timw.google
Thanks. That did it. Alexandre Fayolle wrote: > Le 13-06-2006, timw.google <[EMAIL PROTECTED]> nous disait: > > Hi all. > > > > I installed matplotlib 0.87.3 under Python 2.4 on both Linux (FC3) and > > Windows XP Pro. On the linux install, I can import pylab,

pylab doesn't find numpy on Windows

2006-06-13 Thread timw.google
Hi all. I installed matplotlib 0.87.3 under Python 2.4 on both Linux (FC3) and Windows XP Pro. On the linux install, I can import pylab, but when I try to do the same thing on the Windows installation, I get >>> from pylab import * Traceback (most recent call last): File "", line 1, in -toplev

can distutils windows installer invoke another distutils windows installer

2006-05-10 Thread timw.google
Hi all. I have a package that uses other packages. I created a setup.py to use 'try:' and import to check if some required packages are installed. I have the tarballs and corresponding windows installers in my sdist distribution, so if I untar my source distribution and do 'python setup.py install

Re: installing pyodbc

2006-05-01 Thread timw.google
No I didn't. Thanks for the reply. I've moved on to mx.ODBC. -- http://mail.python.org/mailman/listinfo/python-list

installing pyodbc

2006-04-11 Thread timw.google
I just downloaded the pyodbc source to try and install on my Linux FC3 box. I see that there is a setup.py file, but when I try to do a 'python setup.py build' (or just 'python setup.py') I get Traceback (most recent call last): File "setup.py", line 27, in ? revision = latest_revision('.')