Skip to content

Instantly share code, notes, and snippets.

@AugurNZ
Created August 21, 2013 13:37
Show Gist options
  • Save AugurNZ/6294530 to your computer and use it in GitHub Desktop.
Save AugurNZ/6294530 to your computer and use it in GitHub Desktop.
This is the verbose output from my failed attempt to upload an image to TropicalWikis using Pywikipediabot's upload.py script.
augur@ubuntu:/home/robert/pywikipedia# python login.py -family:tropical
Password for user No8WiredBot on tropical:en:
No handlers could be found for logger "pywiki"
Logging in to tropical:en as No8WiredBot via API.
Should be logged in now
augur@ubuntu:/home/robert/pywikipedia# python upload.py -family:tropical -keep -filename:Pwbicon.png -noverify Pwbicon.png "The Pywikipediabot icon" -v
Config.py
- base_dir: /home/robert/pywikipedia
- done.
No handlers could be found for logger "pywiki"
Pywikipediabot [http] trunk/pywikipedia (r11775, 2013/07/20, 11:39:29, OUTDATED)
Python 2.7.3 (default, Apr 10 2013, 06:20:15)
[GCC 4.6.3]
Getting information for site tropical:en
==== API action:query ====
meta: userinfo
uiprop: blockinfo|groups|rights|hasmsg|ratelimits|preferencestoken
----------------
Requesting API query from tropical:en
Reading file Pwbicon.png
The suggested description is:
The Pywikipediabot icon
Uploading file to tropical:en via API....
==== API action:upload ====
comment: The Pywikipediabot icon
filename: Pwbicon.png
token: 3ca0f323ceabfce34b24a82b4cb1a7ad+\
----------------
Requesting API query from tropical:en
ERROR: UnicodeDecodeError: 'ascii' codec can't decode byte 0x89 in position 647: ordinal not in range(128)
WARNING: Could not open 'http://www.tropicalwikis.com/w/api.php'. Maybe the server or
your connection is down. Retrying in 1 minutes...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment