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

Unit tests failing: 'mutable default <> for field _ is not allowed: use default factory' #407

Closed
BengineerZ opened this issue Oct 10, 2024 · 0 comments · Fixed by #409
Closed
Assignees

Comments

@BengineerZ
Copy link

If it’s not a bug, please use discussions: https://github.com/NVlabs/curobo/discussions

Please provide the below information in addition to your issue:

  1. cuRobo installation mode (choose from [python, isaac sim, docker python, docker isaac sim]): python
  2. python version: 3.11.10
  3. Isaac Sim version (if using): n/a

Running tests after pip installing - got failures:


=========================================================================================== short test summary info ============================================================================================
ERROR tests/cuda_graph_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/curobo_robot_world_model_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/goal_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/ik_config_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/ik_module_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/ik_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/motion_gen_api_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/motion_gen_constrained_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/motion_gen_cuda_graph_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/motion_gen_eval_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/motion_gen_goalset_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/motion_gen_js_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/motion_gen_module_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/motion_gen_speed_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/motion_gen_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/mpc_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/multi_pose_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/pose_reaching_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/robot_assets_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/robot_segmentation_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/robot_world_model_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/trajopt_config_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/trajopt_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
ERROR tests/usd_export_test.py - ValueError: mutable default <class 'curobo.types.math.Pose'> for field goal_pose is not allowed: use default_factory
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 24 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================================== 2 skipped, 24 errors in 4.29s =========================================================================================

I've seen a similar error raised previously: #134 but I wasn't sure if this was fixed or not?

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

Successfully merging a pull request may close this issue.

2 participants