Hi All,
I'm trying to develop a simple ftp client for my Ipaq H3800 with Familiar Linux 0.8.2 & Opie 1.2 in it. My python source code is as follows:
****************************************************************************************
#!/usr/bin/env python
import ftplib
import os
locdir="/home/ftp" #My local directory on my IPAQ
os.chdir(locdir)
f=ftplib.FTP("192.168.0.200") #My FTP server running on WinXP SP2
f.login("anonymous", "") #Login as Anonymous
file="test.txt" #File that i wanted to receive.
f.retrlines("RETR %s" % file, open(file, "w").write)
f.close()
****************************************************************************************
The problem is, when i execute the application, ERRORs as follows occurs:
File "./ftprecv1.py" line 14, in ?
f.retrlines("RETR %s" % file, open(file, "w").write)
.
.
.
File "usr/lib/python2.4/ftplib", line 569, in parse227
import re
ImportError: No module named re
*****************************************************************************************
I'v tried using the same code using my linux desktop running Slackware 10.2 with Python 2.4.1, it works fine no error what so ever.
Can someone help me with this...
Regards,
Suhairi
_______________________________________________ ActivePython mailing list ActivePython@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython