Ivan-r created this task.
Ivan-r added projects: Pywikibot, Pywikibot-interwiki.py.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
`interwiki_graph` fall with
Traceback (most recent call last):
File "C:\Program Files\Python314\Lib\threading.py", line 1081, in
_bootstrap_inner
self._context.run(self.run)
~~~~~~~~~~~~~~~~~^^^^^^^^^^
File
"C:\Users\DragonMsi\Documents\pywikibot\pywikibot\interwiki_graph.py", line 48,
in run
if self.graph.write(filename, prog='dot', format=fmt):
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python314\Lib\site-packages\pydot\core.py", line
1730, in write
s = self.create(prog, format, encoding=encoding)
File "C:\Program Files\Python314\Lib\site-packages\pydot\core.py", line
1811, in create
self.write(fp.name, encoding=encoding)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python314\Lib\site-packages\pydot\core.py", line
1728, in write
f.write(s)
~~~~~~~^^^
File "C:\Program Files\Python314\Lib\encodings\cp1251.py", line 19, in
encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode characters in position
496-498: character maps to <undefined>
The command line is running in cp866 encoding, so it's not known why Python
is trying to use 1251.
When trying to specify the encoding as utf-8, the drop error changes
to```File "C:\Program Files\Python314\Lib\site-packages\pydot\core.py", line
1811, in create
self.write(fp.name, encoding=encoding)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python314\Lib\site-packages\pydot\core.py", line
1728, in write
f.write(s)
~~~~~~~^^^
File "C:\Program Files\Python314\Lib\encodings\cp1251.py", line 19, in
encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\uade0' in
position 190: character maps to <undefined>```
TASK DETAIL
https://phabricator.wikimedia.org/T415891
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]