timfarkas / Serenify

0 stars 0 forks source link

BUG: patientMain bugs when opened via main.py #85

Open timfarkas opened 15 hours ago

timfarkas commented 15 hours ago

When I submit any mood score, with or without comment, it does nothing and throws this error.

Traceback (most recent call last): File "/opt/homebrew/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/init.py", line 1967, in call return self.func(*args) ^^^^^^^^^^^^^^^^ File "", line 189, in submit_mood File "/opt/homebrew/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/init.py", line 594, in get return int(self._tk.getdouble(value)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _tkinter.TclError: expected floating-point number but got "" Exception in Tkinter callback Traceback (most recent call last): File "/opt/homebrew/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/init.py", line 592, in get return self._tk.getint(value) ^^^^^^^^^^^^^^^^^^^^^^ _tkinter.TclError: expected integer but got ""

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/homebrew/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/init.py", line 1967, in call return self.func(*args) ^^^^^^^^^^^^^^^^ File "", line 189, in submit_mood File "/opt/homebrew/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/init.py", line 594, in get return int(self._tk.getdouble(value)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _tkinter.TclError: expected floating-point number but got ""

timfarkas commented 15 hours ago

nevermind, seems to be due to a pandas import error my end

timfarkas commented 15 hours ago

nevermind, this always seems to happen when opening patientMain via main.py (rather than opening it directly)

timfarkas commented 15 hours ago

also, when saving a journal entry it throws: Exception in Tkinter callback Traceback (most recent call last): File "/opt/homebrew/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/init.py", line 1967, in call return self.func(args) ^^^^^^^^^^^^^^^^ File "", line 250, in save_journal_entry NameError: name 'JournalEntry' is not defined Exception in Tkinter callback Traceback (most recent call last): File "/opt/homebrew/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/init.py", line 1967, in call return self.func(args) ^^^^^^^^^^^^^^^^ File "", line 250, in save_journal_entry NameError: name 'JournalEntry' is not defined