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

[SofaPython3] Separates the pre-loaded python modules out of the python (Fix issue #283) #284

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

damienmarchal
Copy link
Contributor

@damienmarchal damienmarchal commented Jul 9, 2022

The execution of SOFA from a python3 environement is not working anymore because
some features need Sofa & SofaRuntime modules to be loaded but the loading is done when
initializing only in the embeded python interpreter.

To fix this, the PR move the module loading and access into its own singleton that initialize at
first use.

Fixing that is important for 22.06 release.
For the future, refactoring the PythonEnvironment file to split PythonEnvironment in two, to separate what is actually relevant for the PythonEnvironment and what
should be part something like PythonEmbededInterpreter.

Fix #283

…on environment (BUGFIX)

The execution of Sofa from a python3 environement is not working anymore because
some features need Sofa & SofaRuntime modules to be loaded but the loading is done when
initializing only in the embeded python interpreter.

To fix this, the PR move the module loading and access into its own singleton that initialize at
first use.

Fixing that is important for 22.06 release.
For the future, refactoring the PythonEnvironment file to split PythonEnvironment in two, to separate what is actually relevant for the PythonEnvironment and what
should be part something like PythonEmbededInterpreter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CRASH when running sofa in python3 interpreter
2 participants