STLIB icon indicating copy to clipboard operation
STLIB copied to clipboard

Python code missing in the packaging of STLIB (release versions)

Open ChristianDuriez opened this issue 3 years ago • 4 comments

Hi

Current packaging of STLIB is not working as the python code is not included in the packaging. In some old version of this packaging v21.06.03, in STLIB/lib/ there was a folder "python3/site-packages" that included the python code... Is it possible to put it back ?

ChristianDuriez avatar Mar 03 '22 12:03 ChristianDuriez

Yes :)

damienmarchal avatar Apr 09 '22 06:04 damienmarchal

Hi, I have encounter a similar problem when using the first step tutorial file. And I can not find the ShowGrid object in the directory.

Here is my detailed log:

[SofaPython3::SceneLoader] Unable to completely load the scene from file '/xxx/SOFA_robosoft2022_python-3.8_Linux/plugins/SoftRobots/docs/sofapython3/tutorials/FirstSteps/myproject/mystep1.py'.
Python exception:
ImportError: cannot import name 'ShowGrid' from 'stlib3.visuals' (/xxx/SOFA_robosoft2022_python-3.8_Linux/plugins/STLIB/lib/python3/site-packages/stlib3/visuals/init.py)

At: mystep1.py(2): (219): _call_with_frames_removed (848): exec_module (609): _exec /usr/lib/python3.8/imp.py(169): load_source /usr/lib/python3.8/imp.py(234): load_module (3):

Thanks! @damienmarchal

ozilxu avatar Jun 05 '22 09:06 ozilxu

Hi all,

Thank for reporting these issues. Normally all that should be fixed for the next 22.06 release of Sofa. If you have some time to help, you can currently download the pre-release to check that this error is fixed. Check the v22.06 files at this page (the one with beta3, beta4 in there filename.) https://github.com/SofaDefrost/DefrostSofaBundle/releases

damienmarchal avatar Jul 04 '22 12:07 damienmarchal

Thanks a lot! @damienmarchal The new version has fixed this issue!

ozilxu avatar Jul 11 '22 02:07 ozilxu