Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 5th, 2011  |  syntax: Python  |  size: 0.64 KB  |  views: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Traceback (most recent call last):
  2.   File "apaga.py", line 18, in <module>
  3.     urllib.urlretrieve('http://maps.google.com.br/maps/ms?msid=' + uid + '.' + str(mapid) + '&msa=0&output=kml', mapname + '.kml')
  4.   File "C:\Python26\lib\urllib.py", line 93, in urlretrieve
  5.     return _urlopener.retrieve(url, filename, reporthook, data)
  6.   File "C:\Python26\lib\urllib.py", line 243, in retrieve
  7.     tfp = open(filename, 'wb')
  8. IOError: [Errno 22] invalid mode ('wb') or filename: '<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" conte
  9. nt="IE=EmulateIE7"/> ...
  10.  
  11. etc etc etc and so goes on with all the page content
clone this paste RAW Paste Data