PKU-MARL / DexterousHands

This is a library that provides dual dexterous hand manipulation tasks through Isaac Gym
https://pku-marl.github.io/DexterousHands/
Apache License 2.0
664 stars 83 forks source link

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. #1

Open lucasjinreal opened 2 years ago

lucasjinreal commented 2 years ago

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.

cypypccpy commented 2 years ago

hello @jinfagang ,

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

lucasjinreal commented 2 years ago
python tasks/shadow_hand_bottle_cap.py

Obviously your code have some place imported torch before issacgym

nuomizai commented 2 years ago

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).

Shengjie-bob commented 2 years ago
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.