| |
thread by: Timothy Martens |
last post Jul 18 '05 by: John J. Lee
When I run the Python-2.3.exe on my WIN2K box and go through the initial
dialogues, the installer frezes at 1% when it's "Copying File
C:\Python23\UNWISE.exe"
Any ideas ANYONE?
tim.
|
thread by: Isaac Raway |
last post Jul 18 '05 by: Peter Hansen
Hello. I'm writing a Python program that connects to servers through
telnetlib to execute a few commands. I've discovered that some of the
servers that I have to connect to with this program run only SSH, so I
need to add support for SSH to the program. I'm looking for a library
that behaves similarly to telnetlib for SSH connections. Does...
|
thread by: Timothy Rue |
last post Jul 18 '05 by: Timothy Rue
The current state of the Virtual Interaction Configuration besides
being listed on http://freshmeat.net/projects/victor1/ is available in an
archive http://threeseas.net/vic/vic7-27-03.zip
It now includes a stand alone ID command and both IQ and ID now have an
"-e" flag to execute what they output.
For those who don't know:
Computers...
|
thread by: Wedrowiec |
last post Jul 18 '05 by: Wedrowiec
I have a problem for experienced programmers. The following code
should copy data between two different databases:
import dbi,odbc
conn1=odbc.odbc('mysql'); conn2=odbc.odbc('sqlite')
c1 = conn1.cursor(); c2 = conn2.cursor()
c1.execute("SELECT field1, field2 FROM table1")
rows = c1.fetchall()
c2.executemany('INSERT INTO table1...
|
thread by: Bill Loren |
last post Jul 18 '05 by: Syver Enstad
Hi'ya ppl,
I'd be happy to hear your techniques to debug python programs.
Is there any interactive debugging environment by any chance ?
thanks in advance,
B
|
thread by: Behrang Dadsetan |
last post Jul 18 '05 by: Bruce Sass
I just read through a few posts and something striked me.
Many people, just like myself, are too lazy to test the python code they
post here. Most of the time, of course, the code either runs well or the
person asking at least understands what is meant and can fix eventual bugs.
Would it not be wonderful to have some kind of integrated...
|
thread by: d z e k y l |
last post Jul 18 '05 by: JanC
Hello,
I'd like to write a small backup utility in Python, which would take
advantage of Secure FTP to upload backup archives. Is there a library
implementing SFTP in Python (something like ftplib)? Or is there some other
(noncomplicated) way how secure uploading can be implemented in Python?
Thank you for advice,
Michal
|
| |
thread by: Andrew Chalk |
last post Jul 18 '05 by: Michele Simionato
I am sure that it has been asked before but could someone tell a newbie
whether there is a Python debugger out there?
In case it is relevant, i am using v2.2 on Windows.
Many thanks.
|
thread by: Michele Simionato |
last post Jul 18 '05 by: Michele Simionato
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/213898
|
thread by: RT Lange |
last post Jul 18 '05 by: Martin v. Löwis
im trying to get idle to work and its really getting frustrating
(and from what ive read on other posts i am not alone)
i think i have to edit the Modules/Setup file but im confused as
to what to uncoment and what to change.
i dont know where my Tcl/Tk libraries are
i think my Tcl/Tk headers are in /usr/include/ (not in...
|
thread by: Pedro Werneck |
last post Jul 18 '05 by: Carl Banks
I need to implement an object that behaves just like imutable objects,
like int, str and tuple: if you create two objects with the same value
at the same time, you get the same object, like a singleton, but
instead of storing a unique object, store a set of objects, with no
duplicates. I don't know if this is a common pattern (and if there's a...
|
thread by: Barry Sprajc |
last post Jul 18 '05 by: Skip Montanaro
Anybody run into trouble and find a solution importing 'socket'?
I've rebuilt, and reinstalled, but cannot find a _socket.py, _socket.pyo, or
_socket.pyc in
the lib directory. ( I suspect that's what socket.py is looking for? )
Thanks for any help.
/barry sprajc
|
thread by: paul |
last post Jul 18 '05 by: Michele Simionato
hey there all!
i'm writing some little programs, and i'd like to know about how to deal
with directories on unix. i've read up on this, but the docs don't really
mention much on it. do i use the pickle module, or something?
what i'd like to do is read in a path, say
/home/username/images/
and that path contains a dir called downloads and...
|
thread by: gcash |
last post Jul 18 '05 by: Jordan Tucker
Most folks know you can start up an instance of Internet Explorer by
saying "x=win32com.client.Dispatch('InternetExplorer.Application.1')"
and you get a WIN32 object with a "Document" object that has arrays of
"Link"/"Form"/"Frame" subobjects, and methods like "Navigate" where
you can force the IE instance to browse to a new URL.
What folks...
|
thread by: Cameron Laird |
last post Jul 18 '05 by: Dennis Lee Bieber
*The Chronicle of Higher Education*, which is more-or-less
authoritative for US university administrations, is spon-
soring a discussion on the place of open-source in
universities ("... are such choices too risky for colleges
....?"), starting in about an hour. Bluntly, I think it's
time to rally 'round the flag.
...
|
| |
thread by: Andrew Chalk |
last post Jul 18 '05 by: dan
In a Python 2.2 app. running under CGI the statements
print "Hello\n"
print "World"
print both words on the same line in IE6. How do I print the second one on a
new line (i.e. respect the \n in the first statement).
Many thanks!
|
thread by: Fazer |
last post Jul 18 '05 by: John J. Lee
Hello,
I have the following code:
#!/usr/local/bin/python
import cgi
import Cookie
C = Cookie.SimpleCookie()
C = "f"
|
thread by: Fazer |
last post Jul 18 '05 by: Paul Rubin
Hello,
I am an avid user of PHP and I am just fooling around with Python for
now. I originally wanted to know which one is faster. As in, works
faster. So far, I think PHP is the fastest for dynamic web-content.
Am I wrong?
|
thread by: John D. |
last post Jul 18 '05 by: John D.
Does anyone have any good example code that shows how to use the "anydbm"wrapper tp interface with a very simple database. like some examples ofhow to use "dumbdbm"? Then perhaps at a later time, I'm going to want tothen interface it to a more robust database like PostGreSQL or mySQL. ButI want to external interface to "hide" the specifics...
|
thread by: Nicolas Girard |
last post Jul 18 '05 by: Raymond Hettinger
Hi,
Forgive me if the answer is trivial, but could you tell me how to achieve
the following:
{k1:,k2:v3,...} --> ,,,...]
The subtle point (at least to me) is to "flatten" values that are lists.
Thanks in advance,
|
thread by: hokiegal99 |
last post Jul 18 '05 by: Alex Martelli
How would I determine if a filename is greater than a certain number
of characters and then truncate it to that number? For example a file
named XXXXXXXXX.txt would become XXXXXX
fname = files
if fname > 6
print fname
Thanks!!!
|
thread by: Ruslan Spivak |
last post Jul 18 '05 by: Ruslan Spivak
Hello, python users!
I have ip addresses in my mysql db in int value - 3232261127, for example.
How can i convert that to usual dot notation like 192.168.100.7?
Thanks in advance.
Your help is very appreciated.
Best regards,
Ruslan
|
thread by: J. W. McCall |
last post Jul 18 '05 by: Jane Doe
Sorry if this is OT, but here's my question:
I wrote a simple python script to increment a counter in a text file,
and I wanted this script to be accessed whenever an HTML file is
accessed. The HTML files and python script are on a shell account on
UNIX a machine that has support for CGI, Python, etc. I unfortunately
don't know much about...
|
| |
thread by: edwinek |
last post Jul 18 '05 by: Fredrik Lundh
I've written a script which I use to save attached binary files from
e-mails to disk. The core is simply:
decodedfile = bas64.decodestring(attachment)
fle = open('image.jpg','wb')
fle.write(decodedfile)
fle.close
However, the files written to disk are regularly incomplete, i.e.
jpg's having a grey bar at the bottom, gif's don't even...
|
thread by: zze-Support activite PCL RAMSI A ext DvSI/SIReS/LA |
last post Jul 18 '05 by: zze-Support activite PCL RAMSI A ext DvSI/SIReS/LA
Hello everybody,
I try to execute an ifconfig command in my python code using:
stat, wdsout = commands.getstatusoutput("./script.sh " + interface + " "
+ ipadrr)
The script.sh executes the ifconfig command as:
Ifconfig $1 plumb && ifconfig $1 $2 netmawk 255.255.255.0 up
this script is created by the root, and have 4755 as chmod.
|