msiexec and python-2.6.1.msi

2009-03-11 Thread cjl
With previous versions of the Python Windows msi installer, for example 2.5.4, I could run the following command from the windows cmd prompt: msiexec /a C:\python-2.5.4.msi /qn TARGETDIR=C:\python This would result in a 'full' python installation in the C:\python directory, inside of which I woul

Windows PIL installer question

2009-01-28 Thread cjl
Is there any way to run the PIL installer from the command line on Windows in 'silent' mode, without displaying the install screens or requiring user interaction? -- http://mail.python.org/mailman/listinfo/python-list

Windows Python install vs. MSI extract question

2009-01-04 Thread cjl
OK -- this might be a strange question. If I do a 'full' install of Python on Windows XP, the result is a directory 'C:\Python25'. Depending on whether I install for all users or just me, the 'python25.dll' might end up in 'C:\Python25', or in the Windows system directory. If I copy python25.dll t

newbie question: parsing street name from address

2007-06-21 Thread cjl
14th St Bennet Pkwy Pearl St Bennet Rd Main St 19th St How might I approach this complex parsing problem? -CJL -- http://mail.python.org/mailman/listinfo/python-list

csv.reader length?

2007-05-25 Thread cjl
P: Stupid question: reader = csv.reader(open('somefile.csv')) for row in reader: do something Any way to determine the "length" of the reader (the number of rows) before iterating through the rows? -CJL -- http://mail.python.org/mailman/listinfo/python-list

Newbie Question: python mysqldb performance question

2007-05-20 Thread cjl
ta2,data3,data4) c.execute("""insert into datatable values (%s, %s, %s, %s)""", data) conn.commit() This takes a really long time to execute, on the order of minutes. Directly importing the csv file into mysql using 'load infile' takes seconds. Wh

Simple sqlite3 question

2007-04-24 Thread cjl
. I expected that the data from the second run would be appended to the database file, not replace it. Can anyone point me in the right direction to get the expected behavior? -cjl -- http://mail.python.org/mailman/listinfo/python-list

Beautiful Soup iterator question....

2007-04-20 Thread cjl
8 in row.findAll("td"): Then treat each cell differently. I can't figure this out. Can anyone point me in the right direction? -CJL -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing tables with beautiful soup?

2007-03-22 Thread cjl
DB: Thank you, that worked perfectly. -CJL -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing tables with beautiful soup?

2007-03-21 Thread cjl
This works: for row in soup.find("table",{"class": "class_name"}): for cell in row: print cell.contents[0] Is there a better way to do this? -cjl -- http://mail.python.org/mailman/listinfo/python-list

parsing tables with beautiful soup?

2007-03-21 Thread cjl
outer loop for the rows and an inner loop for the cells, but I don't know how to iterate over the tags that I want. The beautiful soup documentation is a little beyond me at this point. Can anyone point me in the right direction? thanks again, cjl -- http://mail.python.org/mailman/listinfo/python-list

Re: difference between urllib2.urlopen and firefox view 'page source'?

2007-03-21 Thread cjl
error checking, etc. Any advice on how I am using beautiful soup in the above code? thanks again, cjl -- http://mail.python.org/mailman/listinfo/python-list

difference between urllib2.urlopen and firefox view 'page source'?

2007-03-19 Thread cjl
t same URL in firefox, I am seeing slight differences in the raw html. Do I need to set a browser agent so yahoo thinks urllib2 is firefox? Is yahoo detecting that urllib2 doesn't process javascript, and passing different data? -cjl -- http://mail.python.org/mailman/listinfo/python-list

Re: Running python from a usb drive

2006-09-12 Thread cjl
#x27;m still looking for a way to modify these temporarily, but it looks like I might be "up the creek" on this one. Oh well. Thanks again, CJL -- http://mail.python.org/mailman/listinfo/python-list

Re: Running python from a usb drive

2006-09-12 Thread cjl
y ideas about how to set file type associations without writing to the registry? Thanks again, CJL -- http://mail.python.org/mailman/listinfo/python-list

Re: Running python from a usb drive

2006-09-12 Thread cjl
nd ftype settings when I'm done, and I found: http://portableapps.com/node/121 Which seems to show how to do that. CJL -- http://mail.python.org/mailman/listinfo/python-list

Re: Running python from a usb drive

2006-09-12 Thread cjl
=%CD%Python24\pythonw.exe "%%1" %%* set PATHTEXT=.py;%PATHTEXT% CMD I'm still having a problem with setting PATHTEXT...I should be able to now type django-admin at the cmd prompt and have it work, but I need to still type django-admin.py ... I'm not sure what's wrong with

Re: Running python from a usb drive

2006-09-11 Thread cjl
Hey all: It seems no matter what I do the %1 gets replaced by paramaters sent to the batch file...there must be some way of "escaping" this, but I can't find the answer (yet) with google. Anyone? -CJL -- http://mail.python.org/mailman/listinfo/python-list

Re: Running python from a usb drive

2006-09-11 Thread cjl
ype commands as written above. If I type them from the command line exactly like above they work. But for some reason they do not work from my batch file. Anyone familiar with bath file syntax that can help me? I am very close here... Thanks again, CJL -- http://mail.python.org/mailman/listinfo/python-list

Re: Running python from a usb drive

2006-09-11 Thread cjl
ngo-admin.py --help' I get the correct output, and no errors, so I know it is loading the module. I guess I am trying to figure out why, and what the top "shebang" line should be for the script django-admin.py, because the removable drive can have different drive letters, so I can&#x

Re: Running python from a usb drive

2006-09-11 Thread cjl
capabilites of python. Is the source of the windows python installer available? I guess I could see what registry keys they are setting... > Environmental Variables? Try setting the user/system variable "pythonpath" I do set pythonpath, see above. Any other ideas? Thanks aga

Running python from a usb drive

2006-09-11 Thread cjl
o). However, when I run a script directly from the cmd prompt (in this case 'django-admin.py' the script runs, but fails to import modules from the site-packages directory. Is there a command line option to python.exe or an environment variable I can set to remedy this? Any other tho

Re: Which is easier? Translating from C++ or from Java...

2005-03-29 Thread cjl
Hey all: Thanks for the responses... I've found a third open source implementation in pascal (delphi), and was wondering how well that would translate to python? -cjl -- http://mail.python.org/mailman/listinfo/python-list

Which is easier? Translating from C++ or from Java...

2005-03-28 Thread cjl
ing to gather opinions on which language is easier to understand / rewrite as python. -cjl -- http://mail.python.org/mailman/listinfo/python-list

left padding zeroes on a string...

2005-03-25 Thread cjl
n int it works: string1 = '32' int2 = "%03d" % (int(string1)) print int2 >032 Of course, I need to cast the result back to a string to use it. Why doesn't the first example work? -cjl -- http://mail.python.org/mailman/listinfo/python-list

Re: binutils "strings" like functionality?

2005-03-03 Thread cjl
ut I don't really know how to program, so you just saved me even more time. Thanks again! -CJL -- http://mail.python.org/mailman/listinfo/python-list

Re: binutils "strings" like functionality?

2005-03-03 Thread cjl
; it is printed as "mokey//chicken//dog//cat", and I don't know enough to figure out where the extra "/" is coming from. Help? -CJL -- http://mail.python.org/mailman/listinfo/python-list

binutils "strings" like functionality?

2005-03-03 Thread cjl
on. I did some reading on opening and reading binary files, etc., and was just wondering if people think this is possible, or worth my time (as a learning exercise), or if something like this already exists. -cjl -- http://mail.python.org/mailman/listinfo/python-list