Skip to content

[Python] Modification to do if you want a SofaUnity25.12 build with Python scenes #255

Description

@PierreFonda3D

If you are trying to do a unity build with SofaUnity for sofapython scene usage you must :

in the build go to this file :
YourBuild\YourBuild_Data\Plugins\x86_64\python3\site-packages\Sofa\ __int__.py
then go to line 160-170 and replace
sys.stdout.flush()
by

if sys.stdout is not None:
    sys.stdout.flush()
if sys.stderr is not None:
    sys.stderr.flush() 

The bug is liked to this PR sofa-framework/SofaPython3#614

if this is not enough check if all the external file (.msh,.obj...) are inside the build where they should be.

if this is not enough please open a new issue.

This will be solve with the next sofa release.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions