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 2018-11-12 16:22:14 +01:00
parent b9f634b506
commit 58b3a069bf
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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']}