Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Using Python27 as the default Python, maybe

    Posted on

    I hope this makes sense

    I'm currently setting up a system using a software package called Cortex.

    https://github.com/TheHive-Project/Cortex

    It uses a number of plugins that it calls Analyzers that run in either Python 2 or Python3.

    https://github.com/TheHive-Project/Cortex-Analyzers/

    I installed python27 and rh-python36 from SCL and installed the dependencies fine.

    When cortex runs the analysers it fails because it can't find the required module. from python, I suspect it's because it's not running the right version of Python.

    I'm curious about if there is away where I can configure the Cortex application (runs under it's own user) to use the correct version of python.

    Thanks.

    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
    
    {
      "errorMessage": "Invalid output\nTraceback (most recent call last):\n  File \"VirusTotal/virustotal.py\", line 8, in \n    from cortexutils.analyzer import Analyzer\nImportError: No module named cortexutils.analyzer\n",
      "input": null,
      "success": false
    }
    

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat