-
Notifications
You must be signed in to change notification settings - Fork 188
Description
Failed to import 'C:\Users\Name\AppData\Local\Programs\Python\Python311\DLLs\libyara.dll'
Traceback (most recent call last):
File "C:\Users\Name\AppData\Local\Programs\Python\Python311\Lib\site-packages\yara_init_.py", line 7, in
from yara.rules import compile
File "C:\Users\Name\AppData\Local\Programs\Python\Python311\Lib\site-packages\yara\rules.py", line 17, in
from yara.libyara_wrapper import *
File "C:\Users\Name\AppData\Local\Programs\Python\Python311\Lib\site-packages\yara\libyara_wrapper.py", line 315, in
libyaradll = cdll.LoadLibrary(library)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Name\AppData\Local\Programs\Python\Python311\Lib\ctypes_init_.py", line 454, in LoadLibrary
return self.dlltype(name)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Name\AppData\Local\Programs\Python\Python311\Lib\ctypes_init.py", line 376, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: Could not find module 'C:\Users\Name\AppData\Local\Programs\Python\Python311\DLLs\libyara.dll' (or one of its dependencies). Try using the full path with constructor syntax.
when I looked for the file, it turned out to be in this directory for me:
C:\Users\Name\AppData\Local\Programs\Python\Python311\Lib\site-packages\Users\Name\AppData\Local\Programs\Python\Python310\DLLs