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