Re: help to install MySQL-python module

2006-06-07 Thread Lou Losee
On 6/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear python users, I have an account on a Linux Cluster. I installed python version 2.3.5 on my account. I need to install the module MySQL-python to interact with a MySQL server already installed on the cluster. However, I read the

Re: Expanding Search to Subfolders

2006-06-05 Thread Lou Losee
On 5 Jun 2006 10:01:06 -0700, PipedreamerGrey [EMAIL PROTECTED] wrote: This is the beginning of a script that I wrote to open all the text files in a single directory, then process the data in the text files line by line into a single index file. os.chdir(C:\\Python23\\programs\\filetree)

Re: creating a new database with mysqldb

2006-05-17 Thread Lou Losee
On 5/17/06, Philippe Martin [EMAIL PROTECTED] wrote: John Salerno wrote: Since the connect method of mysqldb requires a database name, it seems like you can't use it without having a database already created. So is there a way to connect to your mysql server (without a specified database) in

Re: Aggregate funuctions broken in MySQLdb?

2006-05-15 Thread Lou Losee
Try these:http://sourceforge.net/docman/?group_id=22307and for the Python DB API overall:http://www.python.org/dev/peps/pep-0249/ LouOn 5/15/06, Lorenzo Thurman [EMAIL PROTECTED] wrote: Thanks, that was my problem. Can you point me to some documentation onMySQLdb? I've been googling to get answers

Re: where do you run database scripts/where are DBs 'located'?

2006-05-13 Thread Lou Losee
On 5/13/06, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Fri, 12 May 2006 21:00:49 -0400, John Salerno[EMAIL PROTECTED] declaimed the following in comp.lang.python: Latest development: I turned off my firewall and it worked. :) Next step -- figure out what rule you need to define to the

Re: Gettings subdirectories

2006-05-04 Thread Lou Losee
import os.pathos.path.isdir(file)LouOn 5/4/06, Philippe Martin [EMAIL PROTECTED] wrote: Hi,The second edition of Programming Python - O'REILLY - Mark Lutz shows how to do that using os.path.walkPhilippeFlorian Lindner wrote: Hello, how can I get all subdirectories of a given directories?

Re: os.startfile() - one or two arguments?

2006-04-28 Thread Lou Losee
On 28 Apr 2006 08:06:02 -0700, BartlebyScrivener [EMAIL PROTECTED] wrote: Can any Windows user give a working example of adding a command verbto os.startfile()?When I try it, it squawks that it takes only one argument. os.startfile('d:/','explore') ry: os.startfile([d:/, explore]) you want a list

Re: an error in commented code?

2006-04-28 Thread Lou Losee
Hmmm, runs fine for me:IDLE 1.1.3 RESTART C wins:['B', 'D', 'A', 'C']C wins:['D', 'B', 'A', 'C'] When I pasted your code the last line was 58On 4/28/06, John Salerno [EMAIL PROTECTED] wrote:Here's my code, with the error