Go the login issues resolved thanks to Nicolas.
However, the only script that works is login.py
The others fails with this error:
Error downloading data: No JSON object could be decoded Request en:/w/api.php?action=query&format=json&meta=userinfo&uiprop=blockinfo Retrying in 1 minutes...
test.py
[root@mustang pywikipedia]# python test.py Error downloading data: No JSON object could be decoded Request en:/w/api.php?action=query&format=json&meta=userinfo&uiprop=blockinfo
category.py
[root@mustang pywikipedia]# python category.py listify Reading dump from category.dump.bz2 Please enter the name of the category to listify: Bot_Tests Please enter the name of the list to create: test Getting [[Category:Bot Tests]]... Error downloading data: No JSON object could be decoded Request en:/w/api.php?action=query&format=json&meta=userinfo&uiprop=blockinfo
I did some searching and found references to a PHP file named JSON.php that I do not have on my system.
I found several other postings with the same error message, but no resolutions.
As always, any help would be much appreciated.
---Robert
2009/9/25 Robert Wright marvin.sccorp@gmail.com
Go the login issues resolved thanks to Nicolas.
However, the only script that works is login.py
You need the last revision of pywikipedia, the current "API revolution" needs json modules. Take a look to the sub-folders of your pywikipedia folder: is there a simplejson folder? If you don'f find it, you need an update of your piwikipedia.
2009/9/26 Alex Brollo alex.brollo@gmail.com:
You need the last revision of pywikipedia, the current "API revolution" needs json modules. Take a look to the sub-folders of your pywikipedia folder: is there a simplejson folder? If you don'f find it, you need an update of your piwikipedia.
Sorry, but I don't think that this is the issue here. Without a json, or simplejson module, an ImportError would have been raised.
2009/9/26 Nicolas Dumazet nicdumz@gmail.com
Sorry, but I don't think that this is the issue here. Without a json, or simplejson module, an ImportError would have been raised.
I'm far from an expert... nevertheless I think that any channel should be used to encourage people to upgrade pywikipedia! I was going to turn out mad just a couple of days ago...http://toolserver.org/~valhallasw/pywiki/version *r7318*.