mo29cg / nvda-chatGPT

15 stars 7 forks source link

Version 0.9 cannot initialize due to a hardcoded path #16

Closed jmdaweb closed 10 months ago

jmdaweb commented 10 months ago

I have just installed the latest version. The following traceback is displayed in the log:

Error importing global plugin nvdaChatGPT
Traceback (most recent call last):
  File "globalPluginHandler.pyc", line 23, in listPlugins
  File "importlib\__init__.pyc", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\jmdaweb\AppData\Roaming\nvda\addons\nvdaChatGPT\globalPlugins\nvdaChatGPT\__init__.py", line 6, in <module>
    from . import asker as asker
  File "C:\Users\jmdaweb\AppData\Roaming\nvda\addons\nvdaChatGPT\globalPlugins\nvdaChatGPT\asker.py", line 2, in <module>
    from . import (
  File "C:\Users\jmdaweb\AppData\Roaming\nvda\addons\nvdaChatGPT\globalPlugins\nvdaChatGPT\messenger.py", line 4, in <module>
    from .myLog import mylog
  File "C:\Users\jmdaweb\AppData\Roaming\nvda\addons\nvdaChatGPT\globalPlugins\nvdaChatGPT\myLog.py", line 8, in <module>
    f = open(LOG_FILE_NAME, "w")
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\suzuki\\TerminalOutputs\\firstLog.json'

Regards.

rperez030 commented 10 months ago

The problem was fixed in the latest release, but the version number remains the same. That may be a problem for folks that already have that version installed and may not receive the latest update.

jmdaweb commented 10 months ago

Thanks for the info. I'll close the issue, uninstall and reinstall. I have seen the same version re-published at least twice after it was submited to the store. That causes a checksum missmatch, so this add-on currently can't be downloaded. @mo29cg, you should release a new update (0.9.1, 0.10, 1.0), submit it again, and never touch it afterwards. Regards.