Curobo errors encountered during installation #59
Replies: 2 comments 1 reply
-
What python version are you trying to install in? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for your response. I have solved this problem and I find this reason is that I use the newest version of the anaconda. Its version of python used is 3.11. In fact, the version 3.8 of python is suitable for installation. Therefore, will it to be more notable if there is a notification in the page of installation?
Thanks again.
王浩文
***@***.***
Original:
From:Balakumar Sundaralingam ***@***.***>Date:2023-11-29 23:45:51(中国 (GMT+08:00))To:NVlabs/curobo ***@***.***>Cc:Haowen Wang ***@***.***> , Author ***@***.***>Subject:Re: [NVlabs/curobo] Curobo errors encountered during installation (Discussion #59)
What python version are you trying to install in?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
balakumar-s
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
the notification is"ValueError: mutable default <class 'curobo.wrap.reacher.evaluator.TrajEvaluatorConfig'> for field traj_evaluator_config is not allowed: use default_factory" .
I am very confused with it because i have corrected it according to some advice provided by ChatGPT
The original code is :
@DataClass
class TrajEvaluatorConfig:
max_acc: float = 15.0
max_jerk: float = 500.0
cost_weight: float = 0.01
min_dt: float = 0.001
max_dt: float = 0.1
class TrajEvaluator(TrajEvaluatorConfig):
def init(self, config: Optional[TrajEvaluatorConfig] = None):
if config is None:
config = TrajEvaluatorConfig()
super().init(**vars(config))
And the corrected code is:
@DataClass
class TrajEvaluatorConfig:
max_acc: float = 15.0
max_jerk: float = 500.0
cost_weight: float = 0.01
min_dt: float = 0.001
max_dt: float = 0.1
@DataClass
class TrajEvaluator:
traj_evaluator_config: TrajEvaluatorConfig = field(default_factory=TrajEvaluatorConfig)
Are there people who know the reason this error still occurs
Beta Was this translation helpful? Give feedback.
All reactions