Last modified: 2014-08-03 11:15:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71064, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69064 - getFileVersionHistoryTable raises ValueError: too many values to unpack
getFileVersionHistoryTable raises ValueError: too many values to unpack
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-03 07:35 UTC by John Mark Vandenberg
Modified: 2014-08-03 11:15 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-08-03 07:35:31 UTC
For example running imagetransfer

$ python pwb.py imagetransfer -family:wikipedia -lang:en 'File:blahblahblah.jpg' -tolang:fa 

URL should be: https://upload.wikimedia.org/wikipedia/en/d/d4/blahblahblah.jpg
Traceback (most recent call last):
  File "pwb.py", line 157, in <module>
    run_python_file(fn, argv, argvu)
  File "pwb.py", line 67, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "scripts/imagetransfer.py", line 356, in <module>
    main()
  File "scripts/imagetransfer.py", line 353, in main
    bot.run()
  File "scripts/imagetransfer.py", line 293, in run
    self.transferImage(imagelist[todo])
  File "scripts/imagetransfer.py", line 188, in transferImage
    description += '\n\n' + str(sourceImagePage.getFileVersionHistoryTable())
  File ".../pywikibot/page.py", line 1870, in getFileVersionHistoryTable
    in self.getFileVersionHistory():
ValueError: too many values to unpack
<type 'exceptions.ValueError'>
Comment 1 John Mark Vandenberg 2014-08-03 08:14:32 UTC
https://gerrit.wikimedia.org/r/#/c/151392/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links