Skip to content

[Bug] [Module Name] Bug title windows环境下启动工程时报 ‘gbk’ codec 问题 #58

@2258865101

Description

@2258865101

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Windows

Python version information

=3.11

What happened

File "F:\serviceProject\OpenDerisk.venv\Lib\site-packages\alembic\config.py", line 203, in file_config
compat.read_config_parser(file_config, [self.config_file_name])
File "F:\serviceProject\OpenDerisk.venv\Lib\site-packages\alembic\util\compat.py", line 71, in read_config_parser
return file_config.read(file_argument, encoding="locale")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\Python\Python311\Lib\configparser.py", line 712, in read
self._read(fp, filename)
File "G:\Python\Python311\Lib\configparser.py", line 1035, in _read
for lineno, line in enumerate(fp, start=1):
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 120: illegal multibyte sequence

What you expected to happen

windows环境下工程成功启动

How to reproduce

执行服务启动命令后
uv run python packages/derisk-app/src/derisk_app/derisk_server.py --config configs/derisk-proxy-deepseek.toml

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions