-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't import "hash" #8
Comments
@tungpun which version of yara do you have?
Works? |
@plutec I use yara 3.4.0 on Ubuntu (x86_64)
But in python, it returns syntax error: |
I'm having similar issues with both yara 3.4.0 and yara 3.5.0 at least. I cannot compile from within yara-python rules that use import "pe". However, they compile just fine with yarac from command line. |
Also see: #27 |
i have this issue when i am compiling ( python yara version 3.6.3 - windows) a yara file with import "hash" |
I am also having this issue. When I yara.compile a rule which contains an import statement (both pe and hash) I get the error mentioned in the first post. Works outside the library though. Would love to be able to use YARA modules in my rulesets being used in conjunction with this python library. |
Solved installing python-openssl on Ubuntu. |
I resolved it using and worked for me: |
I can confirm that this issue still persists on yara-python 3.11.0 running on Windows 10 x64. Manually building does not fix the issue, for some reason |
The
|
I try to write a python script to load .yara file, which contain
import "hash"
but it doesn't workThe text was updated successfully, but these errors were encountered: