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