[Pywikipedia-l] Does cosemetic_changes.py only support monobook?

2013-08-21 Thread William H. Magill
Does cosemetic_changes.py only support monobook? We use Vector as the default skin and I'm getting the following: == > python cosmetic_changes.py -page:User:Magill/Projects-History-1 ATTENTION: You can run this script as a stand-alone for testing purposes. However, the changes that are m

Re: [Pywikipedia-l] ascii encode error in upload.py

2013-08-21 Thread AugurNZ
That worked perfectly, thank you Merlijn. > It was a bug on our end - we were incorrectly handling urls, which caused > python to try and interpret the image data as text. Not surprisingly, this > results in errors. > > https://gerrit.wikimedia.org/r/80228 and > https://gerrit.wikimedia.org/r/8022

Re: [Pywikipedia-l] Time lag between wikidata writes

2013-08-21 Thread info
You should not change your user-config.py unless you are only working on wikidata site. You may change the put_throttle lag for wikidata site scripts via command line option as -pt:1 or -putthrottle:1 (see -help option for further information). On pywikibot core you may also use -put_throttle:1

Re: [Pywikipedia-l] ascii encode error in upload.py

2013-08-21 Thread Merlijn van Deen
It was a bug on our end - we were incorrectly handling urls, which caused python to try and interpret the image data as text. Not surprisingly, this results in errors. https://gerrit.wikimedia.org/r/80228 and https://gerrit.wikimedia.org/r/80229 both fix this (but in different and complementary wa

Re: [Pywikipedia-l] ascii encode error in upload.py

2013-08-21 Thread AugurNZ
I have done that now, and the error message comes back exactly the same as it did prior to this change. Lines 83 to 86 of my upload.py file are shown below, after the change you suggested... 83 class UploadRobot: 84 def __init__(self, url, urlEncoding='utf-8', description=u'', 85

Re: [Pywikipedia-l] ascii encode error in upload.py

2013-08-21 Thread Amir Ladsgroup
Thank you! I want you to do a tricky thing: *open upload.py *change the line that has "__init__(self, url, urlEncoding=None, description=u''" to "__init__(self, url, urlEncoding='utf-8', description=u''" (change urlEncoding from "None" to "'utf-8'") *try again with -v option *tell me what happens

Re: [Pywikipedia-l] ascii encode error in upload.py

2013-08-21 Thread AugurNZ
I have done that now, and uploaded the results as a Gist on GitHub... https://gist.github.com/AugurNZ/6294530 > can you run it in debugging mode? I mean add "-v" to the code: > python upload.py -family:tropical -keep -filename:Pwbicon.png -noverify > Pwbicon.png "The Pywikipediabot icon" -v > > Be

Re: [Pywikipedia-l] ascii encode error in upload.py

2013-08-21 Thread Amir Ladsgroup
can you run it in debugging mode? I mean add "-v" to the code: python upload.py -family:tropical -keep -filename:Pwbicon.png -noverify Pwbicon.png "The Pywikipediabot icon" -v Best On Wed, Aug 21, 2013 at 2:49 PM, AugurNZ wrote: > The file I'm trying to upload is the *.png thumbnail of the Pyw

Re: [Pywikipedia-l] ascii encode error in upload.py

2013-08-21 Thread AugurNZ
The file I'm trying to upload is the *.png thumbnail of the Pywikipediabot logo from this page... http://www.mediawiki.org/wiki/File:Pwb_icon.svg The thumbnail is called http://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Pwb_icon.svg/128px-Pwb_icon.svg.png but I have shortened the filename,

Re: [Pywikipedia-l] ascii encode error in upload.py

2013-08-21 Thread BinĂ¡ris
For me it seems that you have an HTTP error on uploading and the error message contains a non-ASCII character. This is an old problem, nobody could solve it by this time. Does your uploaded file contain none-ASCII chars? 2013/8/21 AugurNZ > Hi, I was pointed here from #pywikipediabot on Freeno

[Pywikipedia-l] ascii encode error in upload.py

2013-08-21 Thread AugurNZ
Hi, I was pointed here from #pywikipediabot on Freenode IRC. I am using Pywikipediabot (trunk) revision 11781 under Ubuntu 12.04. I'm having no success using the upload.py script. It keeps failing with the following error message... -- augur@ubuntu:/home/augur/pywikipedia# python upload.py