Skip to content
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

Shodan Analyzer Fails - Module cortexutils Not Found #55

Closed
darksheer opened this issue Dec 17, 2017 · 5 comments
Closed

Shodan Analyzer Fails - Module cortexutils Not Found #55

darksheer opened this issue Dec 17, 2017 · 5 comments

Comments

@darksheer
Copy link

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu 16.0.4 LTS
OS version (client) OS X
Cortex version / git hash Latest
Package Type Source
Browser type & version Chrome (N/A)

Problem Description

Enabling the Shodan analyzer fails with an error of:

Traceback (most recent call last):
  File "./shodan_analyzer.py", line 3, in <module>
    from cortexutils.analyzer import Analyzer
ImportError: No module named 'cortexutils'

To confirm it is installed:

root@ip-10-10-2-40:/opt/Cortex-Analyzers/analyzers/Shodan# pip search cortexutils
cortexutils (1.2.0)  - A Python library for including utility classes for Cortex analyzers
  INSTALLED: 1.2.0 (latest)

Steps to Reproduce

  1. Install Cortex
  2. pip install requirements.txt (under Shodan Analyzer folder)
  3. Execute the python script OR run the analyzer via WebUI
@darksheer
Copy link
Author

Actually just caught that this module requires Python3, not Python2 like most of the modules. Had to install pip3, then reinstall the requirements.txt

@darksheer
Copy link
Author

Closing this for now, but there should probably be some thoughts on how to automate requirement installs for the analyzers.

@xme
Copy link

xme commented Feb 6, 2018

I've the same issue... Module installed for Python2 and Python3. Any idea?

@jeromeleonard
Copy link
Contributor

@xme did you run pip3 install cortexutils as a user or as root ? If install as user module may sit in the homedir/.local and not in the global installdir. In this case, uninstall the lib and reinstall it as root. Otherwise, maybe check permissions on /usr/local/lib/python3.5/dist-packages/cortexutils ; User cortex needs to have right to read and load the lib.

@xme
Copy link

xme commented Feb 10, 2018

As root because it's running in a docker. But I'll check this, could be the reason indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants