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: 29
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: 422
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: 29
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: 422
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: 29
Joined: Tue Apr 21, 2015 1:02 am

Re: clarisse 5 python path issues centos 7

Unread postby anemoff » Mon Jun 14, 2021 2:09 pm

When you run the following command in a terminal:
Code: Select all
ls -l /usr/local/lib/libpython*

Do you see libpython3.7m.so.1.0 in the output results?
You should see something like this:
Code: Select all
lrwxrwxrwx. 1 root root       20 Mar  9 15:29 /usr/local/lib/libpython3.7m.so -> libpython3.7m.so.1.0
-r-xr-xr-x. 1 root root 14869752 Mar  9 15:29 /usr/local/lib/libpython3.7m.so.1.0
-r-xr-xr-x. 1 root root     7656 Mar  9 15:29 /usr/local/lib/libpython3.so

How are you launching Clarisse?
You should run the launcher script namde clarisse, not the binary clarisse.bin directly.
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 422
Joined: Wed Jan 13, 2016 10:10 am

Re: clarisse 5 python path issues centos 7

Unread postby jim204 » Tue Jun 15, 2021 11:46 am

I get this with the ls command

/usr/local/lib/libpython3.7m.a

I am launching /pathtoclarisse/clarisse, not clarisse.bin
jim204
 
Posts: 29
Joined: Tue Apr 21, 2015 1:02 am

Re: clarisse 5 python path issues centos 7

Unread postby anemoff » Tue Jun 15, 2021 12:58 pm

Seems like you built/installed Python as a static library (.a) instead of as a shared library (.so).
You need to build/install it as a shared library.

If you're building it yourself from sources, you need to specify --enable-shared during configuration:
(with sudo if neeeded)

bash code

cd path/to/python3.7_sources

# Configure with optimizations and as a shared library
./configure --enable-optimizations --enable-shared

# Instal side-by-side to avoid overwriting the system's default Python
make altinstall


Hope this helps.
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 422
Joined: Wed Jan 13, 2016 10:10 am

Re: clarisse 5 python path issues centos 7

Unread postby jim204 » Wed Jun 16, 2021 4:40 am

Thanks following your steps, I now get past the python check, however, the application crashes. I couldn't attach the crash file as uploading the attachment wasn't allowed.

Application Command Line:
`/home/centos/Downloads/clarisse/clarisse.bin`

Environment Variables:
- PATH=`/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/sbin:/usr/local/sbin:/usr/sbin:/home/centos/.local/bin:/home/centos/bin`
- LD_LIBRARY_PATH=`.:/usr/local/lib:/usr/local/lib:`
- PYTHONHOME=`/usr/local/lib/python3.7`
- PYTHONPATH=`/usr/local/lib/python3.7/lib-dynload:/home/centos/Downloads/clarisse/python3`
- OCIO=
- IX_PYTHON2HOME=
- IX_PYTHON2PATH=
- IX_PYTHON3HOME=`/usr/local/lib/python3.7`
- IX_PYTHON3PATH=`/usr/local/lib/python3.7/lib-dynload`

Crash Call Stack: taken from crash file `/home/centos/clarisse.crash`.
```
Program received signal "Aborted" (6).
Memory statistics: Used = 298 MiB, Peak = 298 MiB, Free = 12037 MiB
# 0 0x7F05E8807400 (0x36400) in /lib64/libc.so.6 (0x7F05E87D1000)
# 1 0x7F05E8807387 gsignal (0x36387:0x36350+0x37) in /lib64/libc.so.6 (0x7F05E87D1000)
# 2 0x7F05E8808A78 abort (0x37A78:0x37930+0x148) in /lib64/libc.so.6 (0x7F05E87D1000)
# 3 0x7F0573C48EC5 (0x1AFEC5) in /usr/local/lib/libpython3.7m.so.1.0 (0x7F0573A99000)
# 4 0x7F0573C49E9D (0x1B0E9D) in /usr/local/lib/libpython3.7m.so.1.0 (0x7F0573A99000)
# 5 0x7F0573C4AA3B (0x1B1A3B) in /usr/local/lib/libpython3.7m.so.1.0 (0x7F0573A99000)
# 6 0x7F058047A89E _ZN20Python3EngineHandler10initializeER8OfObject (0xD89E:0xD3B0+0x4EE) in /home/centos/Downloads/clarisse/python3/scripting_module/scripting_python3.so (0x7F058046D000)
# 7 0x7F05ED296528 _ZN15ModuleScripting21execute_single_scriptERK13ExecutionModeRK10CoreStringRS3_Rb (0x28C528:0x28C454+0xD4) in /home/centos/Downloads/clarisse/libix_module.so (0x7F05ED00A000)
# 8 0x7F05F097B5FE _ZN11AppMainMenu10run_scriptERK10CoreStringS2_ (0x1EA5FE:0x1EA586+0x78) in /home/centos/Downloads/clarisse/libix_app.so (0x7F05F0791000)
# 9 0x7F05F097FA75 _ZN11AppMainMenu8run_fileERK10CoreStringS0_ (0x1EEA75:0x1EE43A+0x63B) in /home/centos/Downloads/clarisse/libix_app.so (0x7F05F0791000)
# 10 0x485526 (0x85526) in /home/centos/Downloads/clarisse/clarisse.bin (0x400000)
# 11 0x7F05F0992D93 _ZN9AppObject9run_startEv (0x201D93:0x201D12+0x81) in /home/centos/Downloads/clarisse/libix_app.so (0x7F05F0791000)
# 12 0x7F05F09930D3 _ZN9AppObject3runEv (0x2020D3:0x2020C6+0xD) in /home/centos/Downloads/clarisse/libix_app.so (0x7F05F0791000)
# 13 0x4739CF (0x739CF) in /home/centos/Downloads/clarisse/clarisse.bin (0x400000)
# 14 0x4290D0 (0x290D0) in /home/centos/Downloads/clarisse/clarisse.bin (0x400000)
# 15 0x7F05E87F3555 __libc_start_main (0x22555:0x22460+0xF5) in /lib64/libc.so.6 (0x7F05E87D1000)
# 16 0x47353D (0x7353D) in /home/centos/Downloads/clarisse/clarisse.bin (0x400000)
```
jim204
 
Posts: 29
Joined: Tue Apr 21, 2015 1:02 am

Re: clarisse 5 python path issues centos 7

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

Can you confirm that you are launching "clarisse.bin" (the program itself) directly instead of launching "clarisse" (the wrapper script)?
You should use the wrapper script, or configure the environment yourself if you intend to run clarisse.bin directly.
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 422
Joined: Wed Jan 13, 2016 10:10 am

Next

Return to General Discussion
cron