Closed Fadavvi closed 4 years ago
The error comes from libyara, error 8 corresponds to ERROR_UNSUPPORTED_FILE_VERSION
. Which version of yara-python
are you using? In the latest version ERROR_UNSUPPORTED_FILE_VERSION
is explicitly handled and returns its own error message instead of the generic: "Internal Error".
Thanks @plusvic.
Problem resolved by pip3 install python-yara==4.0.2
.
I used pip3 install yara
before.
Hi, I try to find data about Internal Error: 8, but I found it's in default section of your switch/case: https://github.com/VirusTotal/yara-python/blob/fa3795f9a8351c74b8dba05d05955e6b8d85d1f8/yara-python.c#L971
Anyone can help me to understand what happens in my codes? It's happened while I try to load (compiled) rules from a directory.