PKU-MARL/DexterousHands

isaacgym/python/isaacgym/gymdeps.py", line 21, in _import_deps raise ImportError("PyTorch was imported before isaacgym modules. Please import torch after isaacgym modules.") ImportError: PyTorch was imported before isaacgym modules. Please import torch after isaacgym modules.

lucasjinreal opened this issue · 4 comments

isaacgym/python/isaacgym/gymdeps.py", line 21, in _import_deps
raise ImportError("PyTorch was imported before isaacgym modules. Please import torch after isaacgym modules.")
ImportError: PyTorch was imported before isaacgym modules. Please import torch after isaacgym modules.

hello @jinfagang ,

Could you tell me in detail how you got this bug? we haven't had this problem when we use it.

python tasks/shadow_hand_bottle_cap.py

Obviously your code have some place imported torch before issacgym

isaacgym/python/isaacgym/gymdeps.py", line 21, in _import_deps raise ImportError("PyTorch was imported before isaacgym modules. Please import torch after isaacgym modules.") ImportError: PyTorch was imported before isaacgym modules. Please import torch after isaacgym modules.

I also met this problem. Try to import isaacgym at the top of your code (before torch).

python tasks/shadow_hand_bottle_cap.py

Obviously your code have some place imported torch before issacgym

I think you start the repo in a wrong way. You can check the Training Examples in our README file. There exists a right usage to start a new training experiment. Hope this can help you and others meet with the same problem.