Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ChristianDuriez opened this issue Mar 3, 2022 · 4 comments
Open
Assignees

Comments

@ChristianDuriez
Copy link

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 ?

@damienmarchal
Copy link
Member

Yes :)

@ozilxu
Copy link

ozilxu commented Jun 5, 2022

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

@damienmarchal
Copy link
Member

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

@ozilxu
Copy link

ozilxu commented Jul 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants