Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Traceback (most recent call last): #44

Open
MesterPerfect opened this issue Aug 25, 2022 · 4 comments
Open

bug: Traceback (most recent call last): #44

MesterPerfect opened this issue Aug 25, 2022 · 4 comments

Comments

@MesterPerfect
Copy link

After adding the keys to the config.json file
When I run the program, this error appears


cx_Freeze: Python error in main script

Traceback (most recent call last):
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\Lib\site-packages\cx_Freeze\initscripts_startup_.py", line 120, in run
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\Lib\site-packages\cx_Freeze\initscripts\Console.py", line 16, in run
File "wit_transcriber\gui\app.py", line 20, in
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\site-packages\click\core.py", line 1130, in call
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\site-packages\click\core.py", line 1055, in main
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\site-packages\click\core.py", line 1404, in invoke
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\site-packages\click\core.py", line 760, in invoke
File "wit_transcriber\gui\app.py", line 10, in gui
File "D:\a\wit_transcriber\wit_transcriber\wit_transcriber\gui\main_window.py", line 56, in init
File "D:\a\wit_transcriber\wit_transcriber\wit_transcriber\gui\preferences.py", line 13, in init
File "D:\a\wit_transcriber\wit_transcriber\wit_transcriber\gui\preferences.py", line 16, in load_preferences_file
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\json_init_.py", line 346, in loads
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\json\decoder.py", line 337, in decode
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\json\decoder.py", line 353, in raw_decode
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 3 column 1 (char 48)


OK

@yshalsager
Copy link
Owner

yshalsager commented Aug 25, 2022

Something is wrong with your JSON file, can you please paste it here and censor your token?

@MesterPerfect
Copy link
Author

Something is wrong with your JSON file, can you please paste it here and censor your token?

{
    "en": "xxxxxxxxxxxxxxxx",
    "ar": "xxxxxxxxxxxxxxxx"
}

@MesterPerfect
Copy link
Author

Something is wrong with your JSON file, can you please paste it here and censor your token?

I know the error is in the json file
Specifically because I added more than one value within one dictionary
Perhaps the dictionary only accepts one value
For this you must add the feature of adding a token from within the program
Also put the expected error inside except:

@MesterPerfect
Copy link
Author

انا عدلت ملف json بالشكل الصحيح
وحاليا بجربه مع ملف صوتي english
ومنتظر النتيجة

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants