fix: Updated yara import error message

- Better to 'pip install -I -r REQUIREMENTS' to
  have the correct yara-python version working
  for all the modules, than having another one
  failing with yara hash & pe modules
pull/253/head
chrisr3d 4 years ago
parent b9f634b506
commit 58b3a069bf
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
  1. 2
      misp_modules/modules/expansion/yara_query.py
  2. 2
      misp_modules/modules/expansion/yara_syntax_validator.py

@ -3,7 +3,7 @@ import re
try:
import yara
except (OSError, ImportError):
print("yara is missing, use 'pip3 install yara' to install it.")
print("yara is missing, use 'pip3 install -I -r REQUIREMENTS' from the root of this repository to install it.")
misperrors = {'error': 'Error'}
moduleinfo = {'version': '1', 'author': 'Christian STUDER',

@ -3,7 +3,7 @@ import requests
try:
import yara
except (OSError, ImportError):
print("yara is missing, use 'pip3 install yara' to install it.")
print("yara is missing, use 'pip3 install -I -r REQUIREMENTS' from the root of this repository to install it.")
misperrors = {'error': 'Error'}
mispattributes = {'input': ['yara'], 'output': ['text']}

Loading…
Cancel
Save