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 rea

Re: Expanding Search to Subfolders

2006-06-06 Thread Lou Losee
On 6/6/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Lou Losee wrote: > > > How about something like: > > > import os, stat > > > > class DirectoryWalker: > > # a forward iterator that traverses a directory tree, and > > # returns t

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\\filetr

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 answer

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

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.walk"PhilippeFlorian Lindner wrote:> Hello,> how can I get all subdirectories of a given directories? os

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

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 verb"to os.startfile()?When I try it, it squawks that it takes only one argument.>>> os.startfile('d:/','explore') ry: os.startfile(["d:/",  "explore"]) you