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
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
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
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
it.
Can anyone point me in the right direction to get the expected
behavior?
-cjl
--
http://mail.python.org/mailman/listinfo/python-list
):
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
beautiful soup in the above code?
thanks again,
cjl
--
http://mail.python.org/mailman/listinfo/python-list
, 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
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
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
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
, 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
type associations without writing to
the registry?
Thanks again,
CJL
--
http://mail.python.org/mailman/listinfo/python-list
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
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
.
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
, 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
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
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
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
on
which language is easier to understand / rewrite as python.
-cjl
--
http://mail.python.org/mailman/listinfo/python-list
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
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
/ is coming
from.
Help?
-CJL
--
http://mail.python.org/mailman/listinfo/python-list
time. Thanks again!
-CJL
--
http://mail.python.org/mailman/listinfo/python-list
28 matches
Mail list logo