med-air / ViSkill

[IROS 2023] Value-Informed Skill Chaining for Policy Learning of Long-Horizon Tasks with Surgical Robot
MIT License
11 stars 0 forks source link

qeustion about No module named 'skill_chaining' #1

Open JauJieYou opened 1 year ago

JauJieYou commented 1 year ago

Dear Sir I had tried install ViSkill, in Ubuntu 18.04, as web instruments. But (1) I cannot find that file as

4.Then add one line of code at the top of gym/gym/envs/ init.py to register SurRoL tasks: directory: anaconda3/envs/dex/lib/python3.8/site-packages/ import surrol.gym

So, I add line "import surrol.gym" in ~/anaconda3/envs/viskill/lib/python3.8/site-packages/gym/envs/ init.py Is it correct?

(2) then, I try python SurRoL/surrol/data/data_generation_bipegtransfer.py --env BiPegTransfer-v0 --subtask grasp

it show me the error of below.

Traceback (most recent call last): File "SurRoL/surrol/data/data_generation_bipegtransfer.py", line 13, in from skill_chaining.components.envrionment import BiPegTransferSLWrapper ModuleNotFoundError: No module named 'skill_chaining'

It looks it cannot identify the skill_chaining. Did I make something wrong? I will be very appreciated if you would kindly figure out the solution.

Thank you very much.

TaoHuang13 commented 1 year ago

Hi, Jaujie,

(1): Yes. That is correct. (2): Have you run the command 'pip install -e .' before you run this command?

JauJieYou commented 1 year ago

Yes, and I had rebuild again. I also try find ~ -name 'skill_chaining*', and it shows

/home/cmuh/.local/share/Trash/files/ViSkill/viskill/configs/skill_chaining.yaml /home/cmuh/ViSkill/viskill/configs/skill_chaining.yaml

There is no skill_chaining.py for import? I also check your web file, but I also cannot find it. Did I miss something?

KantaphatLeelakunwet commented 5 months ago

Yes, and I had rebuild again. I also try find ~ -name 'skill_chaining*', and it shows

/home/cmuh/.local/share/Trash/files/ViSkill/viskill/configs/skill_chaining.yaml /home/cmuh/ViSkill/viskill/configs/skill_chaining.yaml

There is no skill_chaining.py for import? I also check your web file, but I also cannot find it. Did I miss something?

Hi, I have the same error here. Have you found a solution to this?

KantaphatLeelakunwet commented 5 months ago

I just found out that the code is a bit wrong. In the file "SurRoL/surrol/data/data_generation_bipegtransfer.py", line 13, in from skill_chaining.components.envrionment import BiPegTransferSLWrapper we need to change it to from viskill.components.envrionment import BiPegTransferSLWrapper then it should work.

TaoHuang13 commented 5 months ago

Thanks for catching it out! I used the original name of this repo here, which would work on my local computer. I will fix it soon.

carrenD commented 5 months ago

Dear Tao,

Can you fix it asap? Thanks!

Regards, Qi

Sent from iPhone

On Sat, 4 May 2024 at 11:50 PM, Tao Huang @.***> wrote:

Thanks for catching it out! I used the original name of this repo here, which would work on my local computer. I will fix it soon.

— Reply to this email directly, view it on GitHub https://github.com/med-air/ViSkill/issues/1#issuecomment-2094271102, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACLQIFFZRVZVO5VYLZ4FILLZAT7VDAVCNFSM6AAAAAA3W7U3JOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGI3TCMJQGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>