运行DialogueExtractor.py时无反应并报错如下:
Traceback (most recent call last):File "...\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 145, in <module>File "...\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 146, in Ui_MainWindow projectSetup = ProjectSetup()File "...\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 60, in __init__ data = json.loads(s)File "...\.conda\envs\Dex\lib\json\__init__.py", line 348, in loads return _default_decoder.decode(s)"File "...\.conda\envs\Dex\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end())File "...\.conda\envs\Dex\lib\json\decoder.py", line 355, in raw_decoderaise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
在删掉config.json文件后可以运行,但在选择导入/导出时闪退并报错如下:
File "...\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 635, in <lambda> lambda: self.getInputFolder(MainWindow))File "...\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 169, in getInputFolder with open("./config.json", "w", encoding="utf-8") as json_file:PermissionError: [Errno 13] Permission denied: './config.json'
Traceback (most recent call last):
File "...\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 145, in <module>
File "...\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 146, in Ui_MainWindow projectSetup = ProjectSetup()
File "...\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 60, in __init__ data = json.loads(s)
File "...\.conda\envs\Dex\lib\json\__init__.py", line 348, in loads return _default_decoder.decode(s)"
File "...\.conda\envs\Dex\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "...\.conda\envs\Dex\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
File "...\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 635, in <lambda> lambda: self.getInputFolder(MainWindow))
File "...\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 169, in getInputFolder with open("./config.json", "w", encoding="utf-8") as json_file:
PermissionError: [Errno 13] Permission denied: './config.json'