8000 'gbk' codec can't decode byte 0xb3 in position 1470: illegal multibyte sequence · Issue #576 · datalab-to/marker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
'gbk' codec can't decode byte 0xb3 in position 1470: illegal multibyte sequence #576
Open
@mengdehong

Description

@mengdehong

I am trying to run this project under Windows 11, python version 3.10, how should I fix it?
20250223_120257_908

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to false.
  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8501
  Network URL: http://192.168.5.5:8501
  External URL: http://45.135.228.55:8501

2025-02-23 12:44:22.120 Uncaught app execution
Traceback (most recent call last):
  File "D:\DevSoft\myenv\lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 121, in exec_func_with_error_handling
    result = func()
  File "D:\DevSoft\myenv\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 591, in code_to_exec
    exec(code, module.__dict__)
  File "D:\DevSoft\myenv\Lib\site-packages\marker\scripts\streamlit_app.py", line 43, in <module>
    BLOCKS_VIZ_TMPL = string.Template(f.read())
UnicodeDecodeError: 'gbk' codec can't decode byte 0xb3 in position 1470: illegal multibyte sequence
  Stopping...
Traceback (most recent call last):
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "D:\DevSoft\myenv\Scripts\marker_gui.exe\__main__.py", line 7, in <module>
  File "D:\DevSoft\myenv\lib\site-packages\marker\scripts\run_streamlit_app.py", line 9, in streamlit_app_cli
    subprocess.run(cmd, env={**os.environ, "IN_STREAMLIT": "true"})
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 505, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1146, in communicate
    self.wait()
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1209, in wait
    return self._wait(timeout=timeout)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1490, in _wait
    result = _winapi.WaitForSingleObject(self._handle,
KeyboardInterrupt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0