Isotropix Forums

clarisse 5 python path issues centos 7

General Discussion about Isotropix and CG related topics

clarisse 5 python path issues centos 7

Unread postby jim204 » Wed Jun 09, 2021 1:13 pm

Hi,

I downloaded the PLE version of clarisse 5 and am trying to run it on centos 7.

I get the following when trying to run it.

error: Failed to load library "/home/centos/Downloads/clarisse/python3/scripting_module/scripting_python3.so". Error: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
error: OfClassFactory.add_module: failed to load DSO file '/home/centos/Downloads/clarisse/python3/scripting_module/scripting_python3.so'.
error: Scripting engine class 'ScriptingPython3' not found. The class name is unknown or the associated module is not loaded.
error: Failed to initialize the Python Scripting engine.

Please fix the following requirements and restart the application:
- Install Python 2.7 and/or Python 3.7.
- Add Python installation path to PATH.
- Add Python lib path to LD_LIBRARY_PATH.
- In file "/home/centos/.isotropix/clarisse/5.0/clarisse.env":
- Set IX_PYTHON*HOME and IX_PYTHON*PATH to match PYTHONHOME and
PYTHONPATH for the chosen Python version.

For more information:
- Visit "https://pythonfix-5-linux.isotropix.com".
- See the User Manual section "Using Clarisse > Configuration and Environment".

I followed the steps on the page https://pythonfix-5-linux.isotropix.com, yet am still getting this issue.

I have attached a screen capture which shows my python 3.7 terminal and my clarisse env file.

Does anyone know what else could be causing an issue here?

Cheers,
Jim

Cheers,
Jim
Attachments
Screenshot from 2021-06-10 00-04-12.png
file:///home/centos/Pictures
jim204
 
Posts: 24
Joined: Tue Apr 21, 2015 1:02 am

Re: clarisse 5 python path issues centos 7

Unread postby anemoff » Wed Jun 09, 2021 2:01 pm

Hi Jim,

This error occurs because the system doesn't know where to find the library file libpython3.7m.so.1.0.
A possible solution is to add the following code to your .bashrc file, located in your user $HOME:
Code: Select all
# Add Python 3.7 executable to the environment (optional, needed if you want to be able to run `python3.7`)
export PATH=/usr/local/bin:$PATH
# Add Python 3.7 libraries to the environment
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH


After saving the file, for the changes to take effect, you need to:
- run Clarisse from a new terminal;
- or, call the following command in the current terminal to reload the .bashrc file:
Code: Select all
source ~/.bashrc


We'll either add the above step to the python page or find a different solution.
Let us know if it solves your problem.

Cheers,
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 386
Joined: Wed Jan 13, 2016 10:10 am

Re: clarisse 5 python path issues centos 7

Unread postby jim204 » Thu Jun 10, 2021 12:53 am

Hi Anthony,

I have tried what you suggested, but am getting the same shell output errors when launching clarisse. Any other ideas?

Have attached a screen capture of my bashrc file.

Cheers,
Jim
Attachments
Screenshot from 2021-06-10 11-49-49.png
jim204
 
Posts: 24
Joined: Tue Apr 21, 2015 1:02 am

Re: clarisse 5 python path issues centos 7

Unread postby anemoff » Thu Jun 10, 2021 10:07 am

Can you move the added lines at the bottom of the file, after the "# User specific aliases and functions", and retry?
To be 100% sure the modifications are applied everywhere you can log in and out of your user session.

Cheers,
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 386
Joined: Wed Jan 13, 2016 10:10 am

Re: clarisse 5 python path issues centos 7

Unread postby jim204 » Sat Jun 12, 2021 7:11 am

Hi Anthony,

I tried what you suggested, but I still seem to get that error.

Cheers,
Jim
jim204
 
Posts: 24
Joined: Tue Apr 21, 2015 1:02 am


Return to General Discussion