You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invalid output
Traceback (most recent call last):
File "VirusTotal/virustotal.py", line 8, in
from cortexutils.analyzer import Analyzer
ImportError: No module named cortexutils.analyzer
Possible Solutions
The following is a trace of the fix and next issue. These commands were conducted from the docker exec command as follows: docker exec -itu 0 cortextest_cortex_1 bash
Invalid output
Traceback (most recent call last):
File "VirusTotal/virustotal.py", line 8, in
from cortexutils.analyzer import Analyzer
File "/usr/local/lib/python2.7/dist-packages/cortexutils/analyzer.py", line 7, in
from cortexutils.extractor import Extractor
File "/usr/local/lib/python2.7/dist-packages/cortexutils/extractor.py", line 2, in
from builtins import str as unicode
ImportError: No module named builtins
Fix:
pip2 install future
Provided the following error:
Invalid output
Traceback (most recent call last):
File "VirusTotal/virustotal.py", line 176, in
VirusTotalAnalyzer().run()
File "VirusTotal/virustotal.py", line 153, in run
self.report(self.check_response(self.vt.get_ip_report(data)))
File "/opt/Cortex-Analyzers/analyzers/VirusTotal/virustotal_api.py", line 200, in get_ip_report
except requests.RequestException as e:
NameError: global name 'requests' is not defined
Fix:
pip2 install requests
This then provided a working analyzer.
This should be addressed in the docker image.
Also, what's the reason for the following in virustotal_api.py ?
try:
import requests
except ImportError:
pass
The text was updated successfully, but these errors were encountered:
Request Type
Bug
Work Environment
Docker info
Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:10:45 2017
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.12.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:09:19 2017
OS/Arch: linux/amd64
Experimental: false
Description
Error when running analyzer. Python errors with requirements
Steps to Reproduce
Possible Solutions
The following is a trace of the fix and next issue. These commands were conducted from the docker exec command as follows: docker exec -itu 0 cortextest_cortex_1 bash
This gave the following error:
Fix:
Provided the following error:
Fix:
This then provided a working analyzer.
This should be addressed in the docker image.
Also, what's the reason for the following in virustotal_api.py ?
The text was updated successfully, but these errors were encountered: