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
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
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
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
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
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
. 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
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
DB:
Thank you, that worked perfectly.
-CJL
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
#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
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
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
=%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
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
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
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
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
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
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
ing to gather opinions on
which language is easier to understand / rewrite as python.
-cjl
--
http://mail.python.org/mailman/listinfo/python-list
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
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
; 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
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
28 matches
Mail list logo