COLOR-SKY / DialogueExtractor

A tool that extracts video clips using subtitles
GNU General Public License v3.0
136 stars 21 forks source link

命令行导入DialogueExtractor.py后报错 #4

Closed levingab closed 1 year ago

levingab commented 2 years ago

Traceback (most recent call last): File "D:\Python\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 145, in class Ui_MainWindow(object): File "D:\Python\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 146, in Ui_MainWindow projectSetup = ProjectSetup() File "D:\Python\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 60, in init data = json.loads(s) File "D:\Anacoda\envs\Dex\lib\json__init__.py", line 348, in loads return _default_decoder.decode(s) File "D:\Anacoda\envs\Dex\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "D:\Anacoda\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)

COLOR-SKY commented 2 years ago

可能configure.json文件包含无法识别的字段,大多数情况是文件内容包含了emoji,unicode这类文本。请检查以下。

On Wed, Mar 30, 2022 at 2:14 AM levingab @.***> wrote:

Traceback (most recent call last): File "D:\Python\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 145, in class Ui_MainWindow(object): File "D:\Python\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py", line 146, in Ui_MainWindow projectSetup = ProjectSetup() File "D:\Python\DialogueExtractor-master\DialogueExtractor-master\DialogueExtractorch\DialogueExtractor.py", line 60, in init data = json.loads(s) File "D:\Anacoda\envs\Dex\lib\jsoninit_.py", line 348, in loads return _default_decoder.decode(s) File "D:\Anacoda\envs\Dex\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "D:\Anacoda\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)

— Reply to this email directly, view it on GitHub https://github.com/COLOR-SKY/DialogueExtractor/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFHR6FUA6I3S6PRLFPTPQG3VCPWN5ANCNFSM5SAZV3HA . You are receiving this because you are subscribed to this thread.Message ID: @.***>