Can't launch Python script directly with python3 #5262
Replies: 5 comments 9 replies
|
Hello ! This is related to your OS not being able to find Python3.12 when opening the shared library libSofaPython3.dylib. In MacOS this is done using a @rpath. You could either enrich the rpath of the library by running Or you could give hint to your OS by appending the path needed to replace I prefere second option, becaus eusing the first one you'll need to do it for each lib in the SOFA binaries that depends on Python3.12 |
|
No it is the same error, you need to apply this install_name_tool to each lib depending on Python. libSofaPython3 is one of them. That is why I've suggested the solution with DYLD_LIBRARY_PATH. It could work for every lib. Maybe try again to export this to see if it solves anything. |
|
Hello @bakpaul and @hugtalbot, I'm still blocked with this problem. Do you have any suggestions to solve it...? Thank you and have a great day |
|
|
|
|


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I've a problem about launching python script directly with command ( python3 script.py). In this example, I've tried to run the script from Training: python3 17-python3-new-forcefield.py.
Before launching the script, I've done like the instruction in https://sofapython3.readthedocs.io/en/latest/content/Installation.html with:
But I've received an error message:
Can someone know this error and can help me please? Thank you and have a great day!
All reactions