[Help]I meet problem importing `gymapi` when runing `python ~/python/examples/joint_monkey.py`

Hello, I meet one problem when import . Below is the command line and the hints:

installation steps:

tar -xvf IsaacGym_Preview_4_Package.tar.gz
cd isaacgym/python
sh ../create_conda_env_rlgpu.sh

hints:
…/create_conda_env_rlgpu.sh: 3: Bad substitution
…/create_conda_env_rlgpu.sh: 8: pushd: not found
…/create_conda_env_rlgpu.sh: 12: source: not found
Collecting package metadata (repodata.json): | WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.8.0., but conda is ignoring the . and treating it as 1.8.0
WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.7.1., but conda is ignoring the . and treating it as 1.7.1
WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.9.0., but conda is ignoring the . and treating it as 1.9.0
WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.6.0., but conda is ignoring the . and treating it as 1.6.0
done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
current version: 23.7.2
latest version: 23.7.4

Please update conda by running

$ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

 conda install conda=23.7.4

Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: - By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): EULA :: CUDA Toolkit Documentation

done

usage: conda [-h] [–no-plugins] [-V] COMMAND …
conda: error: argument COMMAND: invalid choice: ‘activate’ (choose from ‘clean’, ‘compare’, ‘config’, ‘create’, ‘info’, ‘init’, ‘install’, ‘list’, ‘notices’, ‘package’, ‘remove’, ‘uninstall’, ‘rename’, ‘run’, ‘search’, ‘update’, ‘upgrade’, ‘build’, ‘convert’, ‘debug’, ‘develop’, ‘doctor’, ‘index’, ‘inspect’, ‘metapackage’, ‘render’, ‘skeleton’, ‘env’, ‘server’, ‘verify’, ‘content-trust’, ‘repo’, ‘pack’, ‘token’)
*** Failed to activate env

after conda activate rlgpu, when I am runing python ~/python/examples/joint_monkey.py, the error looks like this:

/python/examples$ python joint_monkey.py

Importing module ‘gym_37’ (/dataSSD/zheng/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_37.so)
Traceback (most recent call last):
File “joint_monkey.py”, line 19, in
from isaacgym import gymapi, gymutil
File “/dataSSD/zheng/isaacgym/python/isaacgym/init.py”, line 5, in
from isaacgym import gymapi
File “/dataSSD/zheng/isaacgym/python/isaacgym/gymapi.py”, line 104, in
_import_active_version()
File “/dataSSD/zheng/isaacgym/python/isaacgym/gymapi.py”, line 63, in _import_active_version
module = importlib.import_module(package_path)
File “/homeL/zheng/dataSSD/anaconda3/envs/rlgpu/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

1 Like