IBM QRadar SOAR

IBM QRadar SOAR

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'

    Posted Mon August 07, 2023 10:23 AM

    Hi Team,

    Preparing a new integration server by following the below link:

       $https://www.ibm.com/docs/en/sqsp/49?topic=system-installing-resilient-circuits

    On step:5 it is mentioned to run the $resilient-circuits config -c , while running the command getting below error:

    [integration@localhost root]$ resilient-circuits config -c

    Traceback (most recent call last):

    File "/usr/local/bin/resilient-circuits", line 5, in <module>

    from resilient_circuits.bin.resilient_circuits_cmd import main

    ModuleNotFoundError: No module named 'resilient_circuits'

    [integration@localhost root]$

    Any leads it will be helpful.



    ------------------------------
    SOAR Engineer
    ------------------------------


  • 2.  RE: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'

    Posted Tue August 08, 2023 10:39 AM

    Hello, 

    What Operating System are you using? 
    Can you verify the Python version you're running? python --version

    The prerequisites state you must be running Python 3.6.x or 3.9.x - Minimum system requirements for installing the Integration server - IBM Documentation

    Based on the error, i'm assuming your system is running Python 2.x 

    Hope this helps :) 
    Daryl Ladd



    ------------------------------
    Daryl Ladd
    ------------------------------



  • 3.  RE: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'

    Posted Tue August 08, 2023 11:37 AM

    Hi @Daryl Ladd,

    Thanks for the response.

    RHEL 8.7 and Python Version is 3.9.16.



    ------------------------------
    SOAR Engineer
    ------------------------------



  • 4.  RE: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'

    Posted Tue August 08, 2023 12:14 PM

    Are there other versions of Python installed on the system? I tested on my end and while I had Python 3.9.16 installed, Pip3 resorted to using the 3.6 that was installed on the system. After removing the old Python, it ran using the upgraded Python version. I also alias'd Python to Python39 using this doc Chapter 38. Configuring the unversioned Python Red Hat Enterprise Linux 8 | Red Hat Customer Portal



    ------------------------------
    Daryl Ladd
    ------------------------------



  • 5.  RE: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'

    Posted Tue August 08, 2023 12:38 PM

    Hi @Daryl Ladd

    No other Python version is available on the server.

    Getting error while running the command resilient-circuits config -c  as integration user.

    I have bit confused with the documentation: https://www.ibm.com/docs/en/sqsp/49?topic=system-installing-resilient-circuits

    Step 3 says we need to execute as a root user, the step 5 says we need to execute the command as resilient-circuits config -c as root user.

    If we execute the command as resilient-circuits config -c as root user how the app.config file get creates under /home/integration/ folder as root user it creates under /root folder right?



    ------------------------------
    SOAR Engineer
    ------------------------------



  • 6.  RE: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'

    Posted Tue September 19, 2023 04:21 PM

    Greetings!

    Might be a bit late, but anyways.

    If you are using root (or sudo) to execute the command, make sure that you have installed the packages using the same user, as python virtual envs differ from user to user. Similarly, if you used sudo to install the pip packages, you might run into some issues.

    It is weird that the documentation states to use root while installing the packages. Installing python packages while root or with sudo is usually a malpractice and pip advises against it.

    As this is post is old, did you find the issue?

    Cheers!



    ------------------------------
    Pol Estecha Hernández
    ------------------------------



  • 7.  RE: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'

    Posted Thu September 21, 2023 11:45 AM

    Root is not required to run `resilient-circuits config`. We'll look to correct that documentation. 



    ------------------------------
    Mark Scherfling
    ------------------------------