每当我尝试使用 PyCharm 中的运行按钮运行我的 Rasa 应用程序,或尝试使用调试器时,我都会收到以下错误:Traceback (most recent call last): File "/Users/matthewspeck/anaconda3/envs/proj_env/lib/python3.6/site-packages/pykwalify/core.py", line 76, in __init__ self.source = yaml.load(stream) File "/Users/matthewspeck/anaconda3/envs/proj_env/lib/python3.6/site-packages/ruamel/yaml/main.py", line 933, in load loader = Loader(stream, version, preserve_quotes=preserve_quotes) File "/Users/matthewspeck/anaconda3/envs/proj_env/lib/python3.6/site-packages/ruamel/yaml/loader.py", line 50, in __init__ Reader.__init__(self, stream, loader=self) File "/Users/matthewspeck/anaconda3/envs/proj_env/lib/python3.6/site-packages/ruamel/yaml/reader.py", line 85, in __init__ self.stream = stream # type: Any # as .read is called File "/Users/matthewspeck/anaconda3/envs/proj_env/lib/python3.6/site-packages/ruamel/yaml/reader.py", line 130, in stream self.determine_encoding() File "/Users/matthewspeck/anaconda3/envs/proj_env/lib/python3.6/site-packages/ruamel/yaml/reader.py", line 190, in determine_encoding self.update_raw() File "/Users/matthewspeck/anaconda3/envs/proj_env/lib/python3.6/site-packages/ruamel/yaml/reader.py", line 297, in update_raw data = self.stream.read(size) File "/Users/matthewspeck/anaconda3/envs/proj_env/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0]UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 473: ordinal not in range(128)During handling of the above exception, another exception occurred:但是,当我从终端或文本编辑器(我使用 VSCode)运行应用程序时,它运行没有任何问题。我在网上查看过,我看到的每个答案都与 Rasa 有关,但没有提到 PyCharm 的问题。我还检查了域的 yaml 格式是否正确,确实如此。任何人都知道为什么我会在 PyCharm 中收到此错误,但在任何其他环境中都没有,我该如何解决?
添加回答
举报
0/150
提交
取消