SaintsSec / Navi

An Interface for AI built for cybersecurity professionals
https://www.saintssec.org/
GNU Affero General Public License v3.0
78 stars 10 forks source link

fix module loading #47

Closed tlford82 closed 5 months ago

tlford82 commented 5 months ago

python3 navi-shell.py Module 'bullet' not found Traceback (most recent call last): File "/opt/Navi/commands/init.py", line 11, in load_module module = importlib.import_module(f".{name}", '.commands') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1149, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/opt/Navi/commands/bullet.py", line 2, in import click ModuleNotFoundError: No module named 'click'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/Navi/navi-shell.py", line 6, in import commands File "/opt/Navi/commands/init.py", line 35, in mod = load_module(module) ^^^^^^^^^^^^^^^^^^^ File "/opt/Navi/commands/init.py", line 11, in load_module module = importlib.import_module(f".{name}", '.commands') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/Navi/commands/init.py", line 35, in mod = load_module(module) ^^^^^^^^^^^^^^^^^^^ File "/opt/Navi/commands/init.py", line 14, in load_module logging.basicConfig( File "/usr/lib/python3.11/logging/init.py", line 2050, in basicConfig h = FileHandler(filename, mode, ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/logging/init.py", line 1181, in init StreamHandler.init(self, self._open()) ^^^^^^^^^^^^ File "/usr/lib/python3.11/logging/init.py", line 1213, in _open return open_func(self.baseFilename, self.mode, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/opt/Navi/logs/error.log'

AlexKollar commented 5 months ago

I'll be looking into this tomorrow morning when I get in. - Thanks for the heads up. 👍🏼

AlexKollar commented 5 months ago

Ubuntu / Debian installation issues.

AlexKollar commented 5 months ago

Seems to have been a non-issue now.