cgi error
- From: s99999999s2003@xxxxxxxxx
- Date: 31 Mar 2006 06:52:35 -0800
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.
.
- Follow-Ups:
- Re: cgi error
- From: Richard Brodie
- Re: cgi error
- From: v0id
- Re: cgi error
- Prev by Date: packaging question - documentation
- Next by Date: Re: how to comment lot of lines in python
- Previous by thread: packaging question - documentation
- Next by thread: Re: cgi error
- Index(es):