Closed a-niem closed 2 years ago
It seems that the logger is working well (writing to the file), but it cannot be opened via "Help" menu (as well as Readme). See the logged excerptions, seems easily fixable:
[08/23 16:35:48] Python.backend.logger INFO: C:\Users\Dmitry\AppData\Local\Temp/RodTracker\Session_tv0s128d
[08/23 16:35:52] Python.backend.logger ERROR: Uncaught exception:
Traceback (most recent call last):
File "C:\Users\Dmitry\Documents\GitHub\Track_Gui\Python\backend\logger.py", line 52, in open_logs
os.startfile(LOG_PATH)
NameError: name 'os' is not defined
NoneType: None
[08/23 16:38:17] Python.backend.logger ERROR: Uncaught exception:
Traceback (most recent call last):
File "C:\Users\Dmitry\Documents\GitHub\Track_Gui\Python\backend\logger.py", line 52, in open_logs
os.startfile(LOG_PATH)
NameError: name 'os' is not defined
NoneType: None
[08/23 16:38:19] Python.backend.logger ERROR: Uncaught exception:
Traceback (most recent call last):
File "C:\Users\Dmitry\Documents\GitHub\Track_Gui\Python\ui\mainwindow.py", line 278, in <lambda>
self))
File "C:\Users\Dmitry\Documents\GitHub\Track_Gui\Python\ui\dialogs.py", line 584, in show_readme
docs_dialog.docs.setMarkdown(readme_md)
AttributeError: 'QTextEdit' object has no attribute 'setMarkdown'
NoneType: None
Access to the logs on windows is now possible. @dmitrypuzyrev Can you please check what version of the PyQt5 package is installed. There might be a mismatch between your version and the required version.
I have reinstalled Anaconda and now have PyQt 5.9.2 (which still seems to be pretty old). The Readme does not open, and now there is no error message. Which PyQt version is required?
The requirements.txt file specifies 5.15.4. You can make sure to have the required libraries by using this file for the installation:
$ conda install pip
$ pip install -r requirements.txt
Actions performed in the GUI are now also logged to a file. This file is created in the RodTracker's temporary directory and can be immediatly accessed from the GUI using the "Help" menu. There is only one file created and subsequent sessions are appended to this log file. During program crashes the
Exception
, that caused it, is written to the log file.Example of a log: