Hi everyone,
After last nights mediawiki code update on all Wikimedia wiki's (see http://techblog.wikimedia.org/2009/09/software-updates-wednesday-morning/ ) all bots are broken. This is probably because Special:AllMessages was changed. See http://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860410&... for the bug.
Maarten
2009/9/17 Maarten Dammers maarten@mdammers.nl:
Hi everyone,
After last nights mediawiki code update on all Wikimedia wiki's (see http://techblog.wikimedia.org/2009/09/software-updates-wednesday-morning/ ) all bots are broken. This is probably because Special:AllMessages was changed. See http://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860410&... for the bug.
ACK, all bots on WMF are broken because of this bug. More specifically, it is because &ot=xml is not supported by the new MW code. It means that we'll have... to use screen-scraping to get the messages :(
...
2009/9/17 Nicolas Dumazet nicdumz@gmail.com
2009/9/17 Maarten Dammers maarten@mdammers.nl:
Hi everyone,
After last nights mediawiki code update on all Wikimedia wiki's (see
http://techblog.wikimedia.org/2009/09/software-updates-wednesday-morning/
) all bots are broken. This is probably because Special:AllMessages was changed. See
http://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860410&...
for the bug.
Thanks, I was going mad to understand what's happening... :-(
Alex
Folks, it is more than time for us to switch to the rewrite branch. We've been talking of it for months. It just needs little more attention to be ready.
I really don't want to spend time fixing this "oh no the UI changed again" bugs, because the interface WILL change again and we'll be endlessly fixing those changes. My scripts use the API, and have not been broken by the code updates on the WMF wikis.
I really think that instead of fixing those bugs and shooting us in the foot, we should spend time to port our scripts to the rewrite branch. I'm not saying the branch is perfect, stable and working. It is likely to have bugs. But PLEASE REPORT THEM ;)
Thanks for understanding,
Looks like the bots are patched up for now, but we can't keep on patching up the trunk like this, it's time to start moving to the rewrite branch.
Maarten
2009/9/18 Maarten Dammers maarten@mdammers.nl
Looks like the bots are patched up for now, but we can't keep on patching up the trunk like this, it's time to start moving to the rewrite branch.
Maarten
I can't understand details, but I followed the suggestions from #piwikipediabot and my bot is running again. :-)
This is largely sufficient for me!
I've found one more thing...
Inside of query.py there are lines for loading json or simplejson:
try: #For Python 2.6 newer import json except ImportError: import simplejson as json
I am not using 2.6, but 2.5.4, but I have module json.
However, there are two json.loads commands:
# This will also work, but all unicode strings will need to be converted from \u notation # decodedObj = eval( jsontext ) if back_response: return res, json.loads( jsontext ) else: return json.loads( jsontext )
... and simplejson has it, but json doesn't. So, I've fixed my pywikipediabot by commenting try-except at the beginning and leaving just "import simplejson as json".
2009/9/21 Milos Rancic millosh@gmail.com:
I've found one more thing...
Inside of query.py there are lines for loading json or simplejson:
try: #For Python 2.6 newer import json except ImportError: import simplejson as json
I am not using 2.6, but 2.5.4, but I have module json.
What module is this? A json module, under 2.5? Where did you get it?
However, there are two json.loads commands:
# This will also work, but all unicode strings will need to be converted from \u notation # decodedObj = eval( jsontext ) if back_response: return res, json.loads( jsontext ) else: return json.loads( jsontext )
... and simplejson has it, but json doesn't. So, I've fixed my pywikipediabot by commenting try-except at the beginning and leaving just "import simplejson as json".
import json is meant for 2.6. In 2.6, json _has_ the loads method: http://docs.python.org/library/json.html#json.loads
2009/9/21 Nicolas Dumazet nicdumz@gmail.com
What module is this? A json module, under 2.5? Where did you get it?
Thanks for mentioning json, I never met it before (now I can understand what it is), this being a good key to realize my level of competence about informatics. ;-)
Back to the main topic of the thread: any new about bot crash? Are we going to use new routines via API for long, or for ever?
On Mon, Sep 21, 2009 at 09:55, Nicolas Dumazet nicdumz@gmail.com wrote:
2009/9/21 Milos Rancic millosh@gmail.com:
I've found one more thing...
Inside of query.py there are lines for loading json or simplejson:
try: #For Python 2.6 newer import json except ImportError: import simplejson as json
I am not using 2.6, but 2.5.4, but I have module json.
What module is this? A json module, under 2.5? Where did you get it?
However, there are two json.loads commands:
# This will also work, but all unicode strings will need to be converted from \u notation # decodedObj = eval( jsontext ) if back_response: return res, json.loads( jsontext ) else: return json.loads( jsontext )
... and simplejson has it, but json doesn't. So, I've fixed my pywikipediabot by commenting try-except at the beginning and leaving just "import simplejson as json".
import json is meant for 2.6. In 2.6, json _has_ the loads method: http://docs.python.org/library/json.html#json.loads
-- Nicolas Dumazet — NicDumZ
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Here is the info:
millosh@wintermute:~$ dpkg -l | grep json ii python-cjson 1.0.5-1 Very fast JSON encoder/decoder for Python ii python-cjson-dbg 1.0.5-1 Very fast JSON encoder/decoder for Python (debug extension) ii python-json 3.4-4 a JSON (http://json.org) reader and writer in Python ii python-simplejson 2.0.9-1 Simple, fast, extensible JSON encoder/decoder for Python
millosh@wintermute:~$ python Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import json dir(json)
['JsonReader', 'JsonWriter', 'ReadException', 'WriteException', '_StringGenerator', '__builtins__', '__doc__', '__file__', '__name__', 'read', 'string', 'types', 'write']
Debian Unstable is installed on computer.
2009/9/22 Milos Rancic millosh@gmail.com:
ii python-json 3.4-4 a JSON (http://json.org) reader and writer in Python ii python-simplejson 2.0.9-1 Simple, fast, extensible JSON encoder/decoder for Python
The "quickfix" solution would have been to remove python-json if you don't use it. However your specific issue should be fixed after r7286.