lukashermann / hulc

Hierarchical Universal Language Conditioned Policies
http://hulc.cs.uni-freiburg.de
MIT License
64 stars 10 forks source link

Questions about running the code. #6

Closed suoych closed 1 year ago

suoych commented 1 year ago

Hi, thanks for sharing your work, I met this problem when I followed the instructions run the training code.

image I successfully installed the calvin_env. image

I don't know why this happens, there might be something wrong with the calvin_env? It would be so nice if you could answer my question, thanks again.

lukashermann commented 1 year ago

Does the same error occur if you import it directly in a python console?

from calvin_env.envs.tasks import Tasks
suoych commented 1 year ago

Yeah I tried before and it says there is no module named calvin_env.envs

@lukashermann

Does the same error occur if you import it directly in a python console?

from calvin_env.envs.tasks import Tasks
lukashermann commented 1 year ago

And if you run pip list it shows calvin_env? I don't know what could be the problem.

suoych commented 1 year ago

And if you run pip list it shows calvin_env? I don't know what could be the problem.

Yeah, it shows calvin_env, pip show calvin_env is also available. I'll try to figure it out by myself then, thanks for your patience anyway.

lukashermann commented 1 year ago

What happens if you only do import calvin_env? I guess the problem is unrelated to our code since you are the first to spot this error, but keep me updated if you find the solution!

suoych commented 1 year ago

@lukashermann Hi, I found the problem. After I installed the calvin_env, I ran the training code in the root directory of hulc project, which will cause the "import" command in python to import the calvin_env folder first instead of the installed lib.

The solution is to run the training code in another directory or install the calvin_env lib in another directory.

Sorry for my negligence and thanks again for your reply.

What happens if you only do import calvin_env? I guess the problem is unrelated to our code since you are the first to spot this error, but keep me updated if you find the solution!