google-deepmind / google-deepmind/dm_control

I installed it without -e option, but I got cannot import name 'constants' error.

オープン
#390 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
4.7k
フォーク
764
PR マージ指標
30日以内にマージされた PR はありません

説明

I tried to install this repository as follows:

```
git clone https://github.com/deepmind/dm_control.git
cd dm_control/
pip3 install -r requirements.txt
```

But, after running the command, the following error occurred.

```
python3 ./dm_control/locomotion/soccer/explore.py
ImportError: cannot import name 'constants' from partially initialized module 'dm_control.mujoco.wrapper.mjbindings' (most likely due to a circular import) (/home/dl/DM_Control2/dm_control/dm_control/mujoco/wrapper/mjbindings/__init__.py)
```

Please let me know how to avoid it.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず requirements.txt のコマンドを再現し、dm_control/locomotion/soccer/explore.py を実行します。次に dm_control/mujoco/wrapper/mjbindings/__init__.py と報告されたインポートパスを調べ、constants を利用できない理由を特定します。インストールまたはインポートの修正が確認され、検証済みの結果が文書化されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
developer-experience
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。