Advertisement
Guest User

Untitled

a guest
Jul 31st, 2011
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. matt@mythtv:~/Desktop/pywikipedia$ python upload.py -v "The New York Times, 1900-12-04.djvu"
  2. Config.py
  3. - base_dir: /home/matt/Desktop/pywikipedia
  4. - done.
  5. Pywikipediabot [http] trunk/pywikipedia (r9423, 2011/07/31, 14:08:01)
  6. Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
  7. [GCC 4.5.2]
  8. Getting information for site commons:commons
  9. ==== API action:query ====
  10. meta: userinfo
  11. uiprop: blockinfo|groups|rights|hasmsg|ratelimits|preferencestoken
  12. ----------------
  13. Requesting API query from commons:commons
  14. Password for user mattwj2002 on commons:commons:
  15. Logging in to commons:commons as mattwj2002 via API.
  16. ==== API action:login ====
  17. lgname: mattwj2002
  18. lgpassword: XXXXX
  19. ----------------
  20. Requesting API query from commons:commons
  21. ==== API action:login ====
  22. lgname: mattwj2002
  23. lgtoken: 3e781937acc90fdc64a1ec85dc8ba178
  24. lgpassword: XXXXX
  25. ----------------
  26. Requesting API query from commons:commons
  27. Should be logged in now
  28. Reading file The New York Times, 1900-12-04.djvu
  29. The filename on the target wiki will default to: The New York Times, 1900-12-04.djvu
  30. Enter a better name, or press enter to accept:
  31. The suggested description is:
  32.  
  33. Do you want to change this description? ([y]es, [N]o) N
  34. Uploading file to commons:commons via API....
  35. ==== API action:upload ====
  36. comment:
  37. filename: The_New_York_Times,_1900-12-04.djvu
  38. token: ade0560ed77d16dbf754d5a266684650+\
  39. ----------------
  40. Requesting API query from commons:commons
  41. DBG> BUG: Non-unicode (<type 'str'>) passed to wikipedia.output without decoder!
  42. File "upload.py", line 435, in <module>
  43. main()
  44. File "upload.py", line 431, in main
  45. bot.run()
  46. File "upload.py", line 403, in run
  47. return self.upload_image()
  48. File "upload.py", line 265, in upload_image
  49. data = query.GetData(params, self.targetSite)
  50. File "/home/matt/Desktop/pywikipedia/query.py", line 137, in GetData
  51. wikipedia.output('Received a bad login token error from the server. Attempting to refresh.')
  52. File "/home/matt/Desktop/pywikipedia/wikipedia.py", line 7884, in output
  53. print traceback.print_stack()
  54. None
  55. DBG> Attempting to recover, but please report this problem
  56. Received a bad login token error from the server. Attempting to refresh.
  57. Getting a token.
  58. Getting information for site commons:commons
  59. ==== API action:query ====
  60. meta: userinfo
  61. uiprop: blockinfo|groups|rights|hasmsg|ratelimits|preferencestoken
  62. ----------------
  63. Requesting API query from commons:commons
  64. WARNING: Your account on commons:commons does not have a bot flag. Its edits will be visible in the recent changes and it may get blocked.
  65. DBG> BUG: Non-unicode (<type 'str'>) passed to wikipedia.output without decoder!
  66. File "upload.py", line 435, in <module>
  67. main()
  68. File "upload.py", line 431, in main
  69. bot.run()
  70. File "upload.py", line 403, in run
  71. return self.upload_image()
  72. File "upload.py", line 265, in upload_image
  73. data = query.GetData(params, self.targetSite)
  74. File "/home/matt/Desktop/pywikipedia/query.py", line 137, in GetData
  75. wikipedia.output('Received a bad login token error from the server. Attempting to refresh.')
  76. File "/home/matt/Desktop/pywikipedia/wikipedia.py", line 7884, in output
  77. print traceback.print_stack()
  78. None
  79. DBG> Attempting to recover, but please report this problem
  80. Received a bad login token error from the server. Attempting to refresh.
  81. Getting a token.
  82. Getting information for site commons:commons
  83. ==== API action:query ====
  84. meta: userinfo
  85. uiprop: blockinfo|groups|rights|hasmsg|ratelimits|preferencestoken
  86. ----------------
  87. Requesting API query from commons:commons
  88. WARNING: Your account on commons:commons does not have a bot flag. Its edits will be visible in the recent changes and it may get blocked.
  89. DBG> BUG: Non-unicode (<type 'str'>) passed to wikipedia.output without decoder!
  90. File "upload.py", line 435, in <module>
  91. main()
  92. File "upload.py", line 431, in main
  93. bot.run()
  94. File "upload.py", line 403, in run
  95. return self.upload_image()
  96. File "upload.py", line 268, in upload_image
  97. pywikibot.output("%s" % data)
  98. File "/home/matt/Desktop/pywikipedia/wikipedia.py", line 7884, in output
  99. print traceback.print_stack()
  100. None
  101. DBG> Attempting to recover, but please report this problem
  102. {u'upload': {u'result': u'Success', u'imageinfo': {u'comment': u'', u'sha1': u'f5854e3e1ac825312d24c991d0b6abf09533d0fe', u'bitdepth': 0, u'pagecount': 16, u'url': u'http://upload.wikimedia.org/wikipedia/commons/3/39/The_New_York_Times%2C_1900-12-04.djvu', u'timestamp': u'2011-07-31T20:46:27Z', u'parsedcomment': u'', u'userid': 4030, u'metadata': [], u'height': 6959, u'width': 5335, u'mime': u'image/vnd.djvu', u'user': u'Mattwj2002', u'descriptionurl': u'http://commons.wikimedia.org/wiki/File:The_New_York_Times,_1900-12-04.djvu', u'size': 98393646}, u'filename': u'The_New_York_Times,_1900-12-04.djvu'}}
  103. Upload successful.
  104. matt@mythtv:~/Desktop/pywikipedia$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement