gaasedelen/lighthouse

ModuleNotFoundError: No module named 'lighthouse.util'

alvin01v opened this issue · 1 comments

I use several types of ida plugins.
However, only the lighthouse cannot be used.
I don't know why I can't access the path of lighthouse.util.
Of course, the lighthouse folder and lighthouse_plugin.py are located in the plugin directory.

The OS and python information I use are as follows.

Windows 10
Python 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
Python 2.7.18150 (x64)

C:\Users\root\Desktop\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\plugins\lighthouse_plugin.py: No module named 'lighthouse.util'
Traceback (most recent call last):
File "C:\Users\root\Desktop\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\python\3\ida_idaapi.py", line 616, in IDAPython_ExecScript
exec(code, g)
File "C:/Users/root/Desktop/IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)/IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)/plugins/lighthouse_plugin.py", line 1, in
from lighthouse.util.log import logging_started, start_logging
ModuleNotFoundError: No module named 'lighthouse.util'

Python>sys.path
['C:\Users\root\Desktop\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\python\3', 'C:\Users\root\Desktop\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\python\3\ida_64', 'C:\Users\root\AppData\Local\Programs\Python\Python38\python38.zip', 'C:\Users\root\AppData\Local\Programs\Python\Python38\Lib', 'C:\Users\root\AppData\Local\Programs\Python\Python38\DLLs', 'C:\Users\root\AppData\Roaming\Python\Python38\site-packages', 'C:\Users\root\AppData\Local\Programs\Python\Python38', 'C:\Users\root\AppData\Local\Programs\Python\Python38\lib\site-packages', 'C:\Users\root\AppData\Local\Programs\Python\Python38\lib\site-packages\win32', 'C:\Users\root\AppData\Local\Programs\Python\Python38\lib\site-packages\win32\lib', 'C:\Users\root\AppData\Local\Programs\Python\Python38\lib\site-packages\Pythonwin', 'C:\Users\root\Desktop\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\python', 'C:\Users\root\Desktop\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\python', 'C:\Users\root\Desktop\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)\IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)', 'C:/Users/root/Desktop/IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)/IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS)/plugins']

If I were to guess it's probably some issue with IDA / Python not really functioning properly based on your install path.

I would recommend not running IDA from a folder called IDA PRO 7.5 SP3 (x86, x64, ARM, ARM64, PPC, PPC64, MIPS). I would also recommend following the install instructions which suggest you install the plugin to the user plugin directory.