Skip to content

A strange error was encountered after pip install yara-python #263

Description

@Make-Ye

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions