stepjam / RLBench

A large-scale benchmark and learning environment.
https://sites.google.com/corp/view/rlbench
Other
1.12k stars 229 forks source link

ModuleNotFoundError: No module named 'rlbench.action_modes' #160

Closed Dear-Chen closed 2 years ago

Dear-Chen commented 2 years ago

Dear developer,

I installed the package according to the tutorial. Then I tried to run the example(Few-Shot Learning and Meta Learning) in the tutorial. When I run 'from rlbench.action_modes.action_mode import MoveArmThenGripper', there were some errors.

ModuleNotFoundError: No module named 'rlbench.action_modes'.

After I checked the installation path, there was no action_modes submodule there. Then I checked the setup.py file, there was no rlbench.action_modes item in the packages list. So, edit the packages list in the setup.py file could be a solution.

dkjung commented 2 years ago

I've just experienced the same problem. Could anyone please answer this issue?

Dear-Chen commented 2 years ago

I've just experienced the same problem. Could anyone please answer this issue?

Modify the packages list in the setup.py file as follows.

packages=[
            'rlbench',
            'rlbench.action_modes',
            'rlbench.backend',
            'rlbench.tasks',
            'rlbench.task_ttms',
            'rlbench.robot_ttms',
            'rlbench.sim2real',
            'rlbench.assets',
            'rlbench.gym'
      ]

Then install the package again. pip install .