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

Problems with execution of .py code #470

Open
AndreaCusinato opened this issue Nov 19, 2024 · 0 comments
Open

Problems with execution of .py code #470

AndreaCusinato opened this issue Nov 19, 2024 · 0 comments

Comments

@AndreaCusinato
Copy link

Good morning, I'm Andrea. I tried to run the basic.py python code and SOFA didn't give me any errors, but if I try to run the test.py code, it gives me the following errors:

[WARNING] [Qt] QObject::connect: No such slot sofa::gui::qt::RealGUI::fileSaveAs(sofa::simulation::Node*)
[WARNING] [Qt] QObject::connect:  (sender name:   'SimuGraph')
[WARNING] [Qt] QObject::connect:  (receiver name: 'GUI')

[DEPRECATED] [SofaPython3::SceneLoader] Unable to completely load the scene from file '/home/labjets/Scrivania/andrea/test.py'.  
Python exception:   
  IndentationError: ('expected an indented block after function definition on line 4', ('/home/labjets/Scrivania/andrea/test.py', 6, 1, 'root = Sofa.Core.Node("root")\n', 6, 5))

At:
  <frozen importlib._bootstrap>(241): _call_with_frames_removed
  <frozen importlib._bootstrap_external>(947): source_to_code
  <frozen importlib._bootstrap_external>(1017): get_code
  <frozen importlib._bootstrap_external>(879): exec_module
  <string>(6): <module>

[INFO]    [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckCollisionResponse, SceneCheckDeprecatedComponents, SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias, SceneCheckMultithreading]
[INFO]    [SceneCheckerVisitor] Finished validating node "root".
[WARNING] [Node(root)] An animation loop is required, but has not been found. Add an animation loop in the root of your scene to fix this warning. The list of available animation loop components is: [AnimationLoopParallelScheduler, ConstraintAnimationLoop, DefaultAnimationLoop, FreeMotionAnimationLoop, MultiStepAnimationLoop, MultiTagAnimationLoop]. A component of type DefaultAnimationLoop will be automatically added for you.
[WARNING] [RealGUI] Global Bounding Box seems very small; Your viewer settings (based on the bbox) are likely invalid, switching to default value of [-1,-1,-1,1,1,1].This is caused by using component which does not implement properly the computeBBox function.You can remove this warning by manually forcing a value in the parameter bbox="minX minY minZ maxX maxY maxZ" in your root node 

How can I do to resolve it?
While waiting for your reply, I send you my best regards.
Andrea
basic.txt
test.txt

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

1 participant