cgi error
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

cgi error

From: <s99999999s2003@yahoo.com>
Date: Fri Mar 31 2006 - 16:52:35 CEST

hi
I have a little function to use ftputil module to get a file from a
server

def getfile(filename):
        import ftputil
        host = ftputil.FTPHost(svr, usr,pswd)
        host.chdir("/somewhere")
        try:
                host.download(filename,filename,"a")
        except ftputil.FTPError,v:
                print v

It works fine when i run it in python , but it won't run when i run my
cgi script
It says AttributeError: 'module' object has no attribute 'FTPHost'
what could be a possible cause? thanks.
Received on Sun Apr 30 21:47:01 2006