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

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

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
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. What am I doing wrong? What can I do to speed up the operation? Thanks in advance, cjl -- http

Simple sqlite3 question

2007-04-24 Thread cjl
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
): 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: difference between urllib2.urlopen and firefox view 'page source'?

2007-03-21 Thread cjl
beautiful soup in the above code? thanks again, cjl -- http://mail.python.org/mailman/listinfo/python-list

parsing tables with beautiful soup?

2007-03-21 Thread cjl
, 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: 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

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

2007-03-19 Thread cjl
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
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 my setting of pathtext. Any ideas? Thanks again, CJL -- http

Re: Running python from a usb drive

2006-09-12 Thread cjl
, 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
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
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

Running python from a usb drive

2006-09-11 Thread cjl
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 thoughts? Thanks in advance, CJL

Re: Running python from a usb drive

2006-09-11 Thread cjl
. 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 again, CJL -- http://mail.python.org/mailman/listinfo/python

Re: Running python from a usb drive

2006-09-11 Thread cjl
, 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't hard code it. thanks again, CJL -- http://mail.python.org/mailman

Re: Running python from a usb drive

2006-09-11 Thread cjl
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
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: 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
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
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

binutils strings like functionality?

2005-03-03 Thread cjl
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

Re: binutils strings like functionality?

2005-03-03 Thread cjl
/ is coming from. Help? -CJL -- http://mail.python.org/mailman/listinfo/python-list

Re: binutils strings like functionality?

2005-03-03 Thread cjl
time. Thanks again! -CJL -- http://mail.python.org/mailman/listinfo/python-list