alexsh@svn.wikimedia.org schreef:
Revision: 7649 Author: alexsh Date: 2009-11-15 13:13:48 +0000 (Sun, 15 Nov 2009)
Log Message:
sorry, forget to fix it.
Modified Paths:
trunk/pywikipedia/upload.py
That didn't fix it alexsh. I still get all sorts of errors.
For example when running "imagecopy.py -lang:nl -family:wikipedia -page:Bestand:Overzicht_theater_Mytilini.jpg" I get:
Traceback (most recent call last): File "C:\Program Files\Python25\lib\threading.py", line 460, in __bootstrap self.run() File "D:\Wikipedia\pywikipedia\imagecopy.py", line 361, in run bot.run() File "D:\Wikipedia\pywikipedia\upload.py", line 387, in run return self.upload_image() File "D:\Wikipedia\pywikipedia\upload.py", line 224, in upload_image return self._uploadImageOld(debug) File "D:\Wikipedia\pywikipedia\upload.py", line 292, in _uploadImageOld self.read_file_content() File "D:\Wikipedia\pywikipedia\upload.py", line 113, in read_file_content file = uo.open(self.url) File "C:\Program Files\Python25\lib\urllib2.py", line 380, in open response = meth(req, response) File "C:\Program Files\Python25\lib\urllib2.py", line 491, in http_response 'http', request, response, code, msg, hdrs) File "C:\Program Files\Python25\lib\urllib2.py", line 418, in error return self._call_chain(*args) File "C:\Program Files\Python25\lib\urllib2.py", line 353, in _call_chain result = func(*args) File "C:\Program Files\Python25\lib\urllib2.py", line 499, in http_error_defau lt raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 403: Forbidden
Did you do a test upload?
With the flickr bot I get 411 errors.
Maarten
Looks like someone is reading these mails. The error of the day:
Uploading file to commons:commons... Result: 411 Length Required Exception in thread Thread-2: Traceback (most recent call last): File "C:\Program Files\Python25\lib\threading.py", line 460, in __bootstrap self.run() File "D:\Wikipedia\pywikipedia\imagecopy.py", line 361, in run bot.run() File "D:\Wikipedia\pywikipedia\upload.py", line 390, in run return self.upload_image() File "D:\Wikipedia\pywikipedia\upload.py", line 227, in upload_image return self._uploadImageOld(debug) File "D:\Wikipedia\pywikipedia\upload.py", line 339, in _uploadImageOld cookies = self.targetSite.cookies()) File "D:\Wikipedia\pywikipedia\upload.py", line 38, in post_multipart return site.postData(address, body, contentType = contentType, cookies = coo kies) File "D:\Wikipedia\pywikipedia\wikipedia.py", line 5482, in postData f = MyURLopener.open(request) File "C:\Program Files\Python25\lib\urllib2.py", line 380, in open response = meth(req, response) File "C:\Program Files\Python25\lib\urllib2.py", line 491, in http_response 'http', request, response, code, msg, hdrs) File "C:\Program Files\Python25\lib\urllib2.py", line 412, in error result = self._call_chain(*args) File "C:\Program Files\Python25\lib\urllib2.py", line 353, in _call_chain result = func(*args) File "D:\Wikipedia\pywikipedia\wikipedia.py", line 8232, in http_error_302 self, req, fp, code, msg, headers) File "C:\Program Files\Python25\lib\urllib2.py", line 575, in http_error_302 return self.parent.open(new) File "C:\Program Files\Python25\lib\urllib2.py", line 380, in open response = meth(req, response) File "C:\Program Files\Python25\lib\urllib2.py", line 491, in http_response 'http', request, response, code, msg, hdrs) File "C:\Program Files\Python25\lib\urllib2.py", line 418, in error return self._call_chain(*args) File "C:\Program Files\Python25\lib\urllib2.py", line 353, in _call_chain result = func(*args) File "C:\Program Files\Python25\lib\urllib2.py", line 499, in http_error_defau lt raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 411: Length Required
Maarten