BoraxTheClean / adaptable-antelopes

Code Jam 2021 adaptable antelopes team
MIT License
1 stars 0 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '.thought_box\\.user_setting.json' #52

Closed ntdkhiem closed 3 years ago

ntdkhiem commented 3 years ago

After deleting .thought_box/ (which is the same when a user first open the app), I received this error message when I tried to open the app.

Traceback (most recent call last):
  File "C:\Users\kevin\Documents\python\aa\src\application\state.py", line 22, in __init__
    with open(os.path.join(NOTES_DIR, ".user_setting.json"), "r") as j:
FileNotFoundError: [Errno 2] No such file or directory: '.thought_box\\.user_setting.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\kevin\Documents\python\aa\src\application_entry.py", line 3, in <module>
    TB = ThoughtBox()
  File "C:\Users\kevin\Documents\python\aa\src\application\editor.py", line 28, in __init__
    self.application_state = ApplicationState()
  File "C:\Users\kevin\Documents\python\aa\src\application\state.py", line 28, in __init__
    with open(os.path.join(NOTES_DIR, ".user_setting.json"), "w") as j:
FileNotFoundError: [Errno 2] No such file or directory: '.thought_box\\.user_setting.json'