kavat / anubi

IOC/Hash scanner and IDS layer 4 designed to be portable and fast
GNU General Public License v3.0
15 stars 0 forks source link

ModuleNotFoundError: No module named 'yara' #2

Open diego-betto opened 3 weeks ago

diego-betto commented 3 weeks ago

Hi,

I've installed all deps, compiled yara, tested, and yara-python, tested in repl console and it works.

But if I start anubi this is the output

└─$ sudo python3 anubi.py
Traceback (most recent call last):
  File "/security/anubi/anubi.py", line 5, in <module>
    import config
  File "/security/anubi/config.py", line 7, in <module>
    from core.yara_scanner import YaraScan
  File "/security/anubi/core/yara_scanner.py", line 1, in <module>
    import yara
ModuleNotFoundError: No module named 'yara'  

Any hint?

kavat commented 3 weeks ago

Hi! If you run pip3 list, can you see yara in the list?

Il giorno ven 14 giu 2024 alle 11:05 Diego Betto @.***> ha scritto:

Hi,

I've installed all deps, compiled yara, tested, and yara-python, tested in repl console and it works.

But if I start anubi this is the output

└─$ sudo python3 anubi.py Traceback (most recent call last): File "/security/anubi/anubi.py", line 5, in import config File "/security/anubi/config.py", line 7, in from core.yara_scanner import YaraScan File "/security/anubi/core/yara_scanner.py", line 1, in import yara ModuleNotFoundError: No module named 'yara'

Any hint?

— Reply to this email directly, view it on GitHub https://github.com/kavat/anubi/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEM2VAKZRGNFH4UKMFQGGUDZHKW7DAVCNFSM6AAAAABJJ6MHJ6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TEOJQGQ2DMOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

diego-betto commented 3 weeks ago

This is the output image

diego-betto commented 3 weeks ago

Tested this way

image

kavat commented 3 weeks ago

It seems related to environment problem, because yara library is the same loaded manually. Do you have time for a quick google in computer sharing?

Il giorno ven 14 giu 2024 alle ore 11:17 Diego Betto < @.***> ha scritto:

Tested this way

image.png (view on web) https://github.com/kavat/anubi/assets/11378282/78b29887-f92e-46e1-acdd-25219e9419e3

— Reply to this email directly, view it on GitHub https://github.com/kavat/anubi/issues/2#issuecomment-2167609637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEM2VAIR4EJCL7AMIZXLOPDZHKYLDAVCNFSM6AAAAABJJ6MHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRXGYYDSNRTG4 . You are receiving this because you commented.Message ID: @.***>

diego-betto commented 3 weeks ago

Sure

kavat commented 3 weeks ago

Can you send me your mail? I will call you using google :-)

Il giorno ven 14 giu 2024 alle ore 11:21 Diego Betto < @.***> ha scritto:

Sure

— Reply to this email directly, view it on GitHub https://github.com/kavat/anubi/issues/2#issuecomment-2167616278, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEM2VAI54YLWVHJOKQIR3ELZHKYZRAVCNFSM6AAAAABJJ6MHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRXGYYTMMRXHA . You are receiving this because you commented.Message ID: @.***>