cannot import yara
resteex0 opened this issue · 1 comments
resteex0 commented
Traceback (most recent call last):
File "/home/geo/Loki/loki.py", line 30, in
import yara # install 'yara-python' module not the outdated 'yara' module
File "/usr/local/lib/python3.9/dist-packages/yara/init.py", line 7, in
from yara.rules import compile
File "/usr/local/lib/python3.9/dist-packages/yara/rules.py", line 17, in
from yara.libyara_wrapper import *
File "/usr/local/lib/python3.9/dist-packages/yara/libyara_wrapper.py", line 362, in
libyaradll.lookup_rule.restype = POINTER(RULE)
File "/usr/lib/python3.9/ctypes/init.py", line 387, in getattr
func = self.getitem(name)
File "/usr/lib/python3.9/ctypes/init.py", line 392, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/libyara.so: undefined symbol: lookup_rule
root$whereis yara
yara: /usr/bin/yara /usr/local/bin/yara /usr/share/man/man1/yara.1.gz
resteex0 commented
apt-get search python-pip
apt-get install python-pip-whl
pip uninstall yara
#VirusTotal/yara#326
#apt-get install yara-python
#pip3 install yara-python