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 am just trying out marker, I installed the current version from PyPI on my Windows machine.
After it run for a while on a large PDF, I got this exception. The reason is that on Windows, the default encoding is not utf-8. Platform-independent code has to set the encoding explicitly when open is called.
Since this library is so popular, I am baffled that no one stumbled over this before?
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\HansDembinski\AppData\Local\micromamba\envs\dbc_demonstrator\Scripts\marker_single.exe\__main__.py", line 7, in <module>
File "C:\Users\HansDembinski\AppData\Local\micromamba\envs\dbc_demonstrator\Lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HansDembinski\AppData\Local\micromamba\envs\dbc_demonstrator\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\HansDembinski\AppData\Local\micromamba\envs\dbc_demonstrator\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HansDembinski\AppData\Local\micromamba\envs\dbc_demonstrator\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HansDembinski\AppData\Local\micromamba\envs\dbc_demonstrator\Lib\site-packages\convert_single.py", line 35, in main
save_output(rendered, out_folder, config_parser.get_base_filename(fpath))
File "C:\Users\HansDembinski\AppData\Local\micromamba\envs\dbc_demonstrator\Lib\site-packages\marker\output.py", line 34, in save_output
f.write(text)
File "C:\Users\HansDembinski\AppData\Local\micromamba\envs\dbc_demonstrator\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The text was updated successfully, but these errors were encountered:
I am just trying out marker, I installed the current version from PyPI on my Windows machine.
After it run for a while on a large PDF, I got this exception. The reason is that on Windows, the default encoding is not utf-8. Platform-independent code has to set the encoding explicitly when
open
is called.Since this library is so popular, I am baffled that no one stumbled over this before?
The text was updated successfully, but these errors were encountered: