Skip to content

编码错误问题 #4

@aaskk

Description

@aaskk

Error executing job with overrides: []
Traceback (most recent call last):
File "D:/kk/autoML/hyperbox/hyperbox/run.py", line 31, in main
utils.print_config(config, resolve=True)
File "C:\Users\kk\anaconda3\envs\hydra\lib\site-packages\pytorch_lightning\utilities\distributed.py", line 48, in wrapped_fn
return fn(*args, **kwargs)
File "D:\kk\autoML\hyperbox\hyperbox\hyperbox\utils\utils.py", line 150, in print_config
rich.print(tree, file=fp)
File "C:\Users\kk\anaconda3\envs\hydra\lib\site-packages\rich_init_.py", line 68, in print
return write_console.print(*objects, sep=sep, end=end)
File "C:\Users\kk\anaconda3\envs\hydra\lib\site-packages\rich\console.py", line 1615, in print
self._buffer.extend(new_segments)
File "C:\Users\kk\anaconda3\envs\hydra\lib\site-packages\rich\console.py", line 825, in exit
self._exit_buffer()
File "C:\Users\kk\anaconda3\envs\hydra\lib\site-packages\rich\console.py", line 784, in _exit_buffer
self._check_buffer()
File "C:\Users\kk\anaconda3\envs\hydra\lib\site-packages\rich\console.py", line 1836, in _check_buffer
write(line)
UnicodeEncodeError: 'gbk' codec can't encode character '\u2699' in position 0: illegal multibyte sequence
*** You may need to add PYTHONIOENCODING=utf-8 to your environment ***

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

Process finished with exit code 1

操作系统:Windows10
8月13的版本直接运行python run.py没有此问题,8月18版本直接运行python run.py运行出现该问题。在linux下没有此问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions