Hi everybody: I get an error when I used urllib2.urlopen() to open a remote file in a ftp server, My code is the following:
>>> file = 'ftp:/192.168.250.14:2180/RTVE/VIDEOS/Thisisit.wmv' >>> mydata = urllib2.urlopen(file) Traceback (most recent call last): File "<console>", line 1, in <module> File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.6/urllib2.py", line 391, in open response = self._open(req, data) File "/usr/lib/python2.6/urllib2.py", line 409, in _open '_open', req) File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/usr/lib/python2.6/urllib2.py", line 1316, in ftp_open raise URLError('ftp error: no host given') URLError: <urlopen error ftp error: no host given> But how you can see I get an error 'no host given'. Any idea how to solve this ? Could you help me please ? Regards Ariel
-- http://mail.python.org/mailman/listinfo/python-list