原始消息如下:
@Lord-Haji,请添加reno发布说明,参见贡献指南中的说明。此外,添加一些单元测试将显著加快此PR的集成速度🙏
Hi @vblagoje,我尝试生成发布说明,但在尝试运行时不断遇到奇怪的问题。稍后我会重试,但似乎出现了某种UTF-8解码错误。我在Windows上
我不知道这是否愚蠢,但我正在附上回溯信息,以防有人能帮忙。因为我无法真正找到解决此问题的快捷方式
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "E:\haystack\venv\bin\reno.exe\__main__.py", line 7, in <module>
File "E:\haystack\venv\lib\python3.11\site-packages\reno\main.py", line 225, in main
conf = config.Config(args.reporoot, args.relnotesdir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\haystack\venv\lib\python3.11\site-packages\reno\config.py", line 335, in __init__
self._load_file()
File "E:\haystack\venv\lib\python3.11\site-packages\reno\config.py", line 352, in _load_file
self._contents = yaml.safe_load(fd)
^^^^^^^^^^^^^^^^^^
File "E:\haystack\venv\lib\python3.11\site-packages\yaml\__init__.py", line 125, in safe_load
return load(stream, SafeLoader)
^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\haystack\venv\lib\python3.11\site-packages\yaml\__init__.py", line 79, in load
loader = Loader(stream)
^^^^^^^^^^^^^^
File "E:\haystack\venv\lib\python3.11\site-packages\yaml\loader.py", line 34, in __init__
Reader.__init__(self, stream)
File "E:\haystack\venv\lib\python3.11\site-packages\yaml\reader.py", line 85, in __init__
self.determine_encoding()
File "E:\haystack\venv\lib\python3.11\site-packages\yaml\reader.py", line 124, in determine_encoding
self.update_raw()
File "E:\haystack\venv\lib\python3.11\site-packages\yaml\reader.py", line 178, in update_raw
data = self.stream.read(size)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\msys64\mingw64\lib\python3.11\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 1826: character maps to <undefined>
- 最初由@Lord-Haji在#7303(评论)中发布*
3条答案
按热度按时间6vl6ewon1#
在
releasenotes/config.yaml
中的emojis是导致问题的原因。Windows用户的当前解决方法是通过
intl.cpl
启用系统范围内的UTF-8。我相信这应该添加到
CONTRIBUTING.md
中。dced5bon2#
Nice investigative work @Lord-Haji !!
zed5wv103#
我会诚实地移除表情符号。