You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use JusText 2.2.0 with Python 3.5.
However, after installing and running one of the example extractions without piping it to a file and just dumping to STDOUT, the following error can be observed:
$ python -m justext -s Czech http://www.zdrojak.cz/clanky/automaticke-zabezpeceni/
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "~/lib/python3.5/site-packages/justext/__main__.py", line 318, in <module>
main()
File "~/lib/python3.5/site-packages/justext/__main__.py", line 301, in main
output_default(paragraphs, fp_out)
File "~/lib/python3.5/site-packages/justext/__main__.py", line 94, in output_default
print('<%s> %s' % (tag, cgi.escape(paragraph.text)), file=fp)
File "~/bin/../lib/python3.5/codecs.py", line 377, in write
self.stream.write(data)
TypeError: write() argument must be str, not bytes
The text was updated successfully, but these errors were encountered:
This is quite a common problem with the Windows console. Are you sure you have OS, console, IO, and everything set to UTF-8 or any other suitable encoding? (UTF-16, ...) There are even some ENV variables to set for Python.
I was trying to use JusText 2.2.0 with Python 3.5.
However, after installing and running one of the example extractions without piping it to a file and just dumping to STDOUT, the following error can be observed:
The text was updated successfully, but these errors were encountered: