https://bugzilla.wikimedia.org/show_bug.cgi?id=71399

            Bug ID: 71399
           Summary: imagetransfer.py has bug
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Other scripts
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

imagetransfer.py has bug I run the command in below:

python pwb.py imagetransfer -family:wikipedia -lang:en 'File:John_Fowles.jpg'
-tolang:fa -tofamily:wikipedia -keepname

bot shows this error:


Traceback (most recent call last):
  File "pwb.py", line 171, in <module>
    run_python_file(fn, argv, argvu)
  File "pwb.py", line 69, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "scripts/imagetransfer.py", line 341, in <module>
    main()
  File "scripts/imagetransfer.py", line 338, in main
    bot.run()
  File "scripts/imagetransfer.py", line 291, in run
    self.transferImage(imagelist[todo])
  File "scripts/imagetransfer.py", line 186, in transferImage
    description += '\n\n' + str(sourceImagePage.getFileVersionHistoryTable())
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position
264: ordinal not in range(128)
<type 'exceptions.UnicodeEncodeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to