Home › Forum › SoftRobots › Getting Started › “No module named ‘stlib'”
Tagged: SOFA, SOFA_2012, SofaPython3, STlib, VS2019, Windows_10
- This topic has 5 replies, 4 voices, and was last updated 3 years, 2 months ago by Abdelrahman.
-
AuthorPosts
-
29 June 2021 at 01:27 #19881AnonymousInactive
Hi,
I’ve been having trouble integrating stlib into python, as I can import the plug-in no problem into runSOFA via the plug-in manager but then cannot run python code with the line “import stlib” within it.
I have been trying to fix this issue by following the instructions found on the stlib github’s readme.txt and running into issues with CMake here and there. However, I just realized that the readme file is 2 years old and am wondering whether or not this information is still relevant or whether or not I am just building the plug-in that is already imported into runSOFA and my problem lies elsewhere.
Best regards,
Geoffrey Liu29 June 2021 at 10:55 #19885Julien D.BlockedHello gliu,
A few weeks ago, I wanted to try the tutorials examples on the SOFT Robot plugin and I had similar issues… It seems that the STLIB plugin have to be installed through Python.
I have no clue how to solve this issue either, so if anyone has a solution feel free to share.
Best wishes to everyone,
5 July 2021 at 14:42 #19926HugoKeymasterHi guys,
Problems of compatibility of the STLIB plugin with the last v20.12 relase were reported. We are actively working on it to deliver a nice and fresh v21.06 SOFA release and an updated version of the STLIB plugin (thanks to the Defrost team)!
Stay tuned,
BestHugo
7 September 2021 at 14:46 #20321HugoKeymasterHey @geofliu
Can you confirm us that with the v21.06 the problem is now solved?
Else I would push for working on this on the STLIB side.Best
Hugo
7 September 2021 at 20:09 #20330AnonymousInactiveHi @Hugo,
The way I got around the problem was by using just SofaPython instead of SofaPython3 in v20.12.03. Without the ability to use SofaPython (python2 rather than python3), I could not get v21.06 to work on my set up.
While using SofaPython worked on my desktop, while trying to set SOFA on a colleague’s computer this past week I ran into the issue again and the solution I had found did not work. Despite downloading everything in the “Getting Started/Build/Windows” section of the windows documentation in the hopes that one of those programs would solve the issue, it unfortunately did not, so it does not seem to be a solution for everybody.
Best regards,
Geoffrey Liu15 September 2021 at 17:34 #20361AbdelrahmanBlockedHello @geofliu
I don’t know if this would help you or not, I ran with same issue on linux, I was trying to run sofa from a conda env. My solution that I copied the file stlib from sofa source to the path that sofa env run from, for example on my linux that is the path
PYTHONPATH=/home/abdelrahman/sofa/build/v21.06/lib/python3/site-packages
I copied the file in that path.
Best regards
Abdelrahman -
AuthorPosts
- You must be logged in to reply to this topic.