Root is not required to run `resilient-circuits config`. We'll look to correct that documentation.
Original Message:
Sent: Tue September 19, 2023 04:20 PM
From: Pol Estecha Hernández
Subject: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'
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
Original Message:
Sent: Tue August 08, 2023 12:37 PM
From: SOAR Engineer
Subject: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'
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
Original Message:
Sent: Tue August 08, 2023 12:14 PM
From: Daryl Ladd
Subject: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'
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
Original Message:
Sent: Tue August 08, 2023 11:37 AM
From: SOAR Engineer
Subject: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'
Hi @Daryl Ladd,
Thanks for the response.
RHEL 8.7 and Python Version is 3.9.16.
------------------------------
SOAR Engineer
Original Message:
Sent: Tue August 08, 2023 10:38 AM
From: Daryl Ladd
Subject: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'
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
Original Message:
Sent: Mon August 07, 2023 10:23 AM
From: SOAR Engineer
Subject: resilient-circuits: ModuleNotFoundError: No module named 'resilient_circuits'
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
------------------------------