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

            Bug ID: 67410
           Summary: UnicodeDecodeError in reflinks.py
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: pywikipedia-b...@lists.wikimedia.org
          Reporter: l.rabinelli+bugzi...@gmail.com
       Web browser: ---
   Mobile Platform: ---

I received an error during execution of the script:

python pwb.py reflinks.py "-xml:itwiki-20140612-pages-meta-current.xml.bz2"


Traceback (most recent call last):
  File "pwb.py", line 153, 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/reflinks.py", line 824, in <module>
    main()
  File "scripts/reflinks.py", line 821, in main
    bot.run()
  File "scripts/reflinks.py", line 691, in run
    ref.transform()
  File "scripts/reflinks.py", line 236, in transform
    self.title = pywikibot.html2unicode(self.title)
  File "/data/project/betabot/core/pywikibot/page.py", line 3632, in
html2unicode
    result += text
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 9: ordinal
not in range(128)
Dropped throttle(s).
<type 'exceptions.UnicodeDecodeError'>

My version is:
Pywikibot: [https] r-pywikibot-core.git (e563873, g3466, 2014/07/02, 08:29:01,
ok)
Release version: 2.0b1
Python: 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3]
unicode test: ok

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

Reply via email to