Hi, I'm using raisim for a research project, but I'm keeping having the following error in setting up the environment after hours of tinkering. So any help would be greatly appreciated!
(rma) ycliang at node063 in /om2/user/ycliang/raisimLib/raisimGymTorch on master
$ python setup.py develop
/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer, pypa/build or
other standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer, pypa/build or
other standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
-- pybind11 v2.9.0
-- raisim:
-- Version: 1.1.7
-- Includes: /net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisim/linux/include
-- Libraries: raisim::raisimPng;raisim::raisimODE;raisim::raisimMine;raisim::raisim
raisim os linux
raisim arch
-- Configuring done
-- Generating done
-- Build files have been written to: /net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/build/temp.linux-x86_64-cpython-38
Consolidate compiler generated dependencies of target rsg_anymal
[ 33%] Building CXX object CMakeFiles/rsg_anymal.dir/raisimGymTorch/env/Yaml.cpp.o
[ 66%] Building CXX object CMakeFiles/rsg_anymal.dir/raisimGymTorch/env/raisim_gym.cpp.o
In file included from /net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisim/linux/include/raisim/raisim_message.hpp:10:0,
from /net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisim/linux/include/raisim/helper.hpp:24,
from /net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisim/linux/include/raisim/World.hpp:12,
from /net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/../../RaisimGymEnv.hpp:13,
from /net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/Environment.hpp:10,
from /net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/raisimGymTorch/env/raisim_gym.cpp:9:
/net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisim/linux/include/raisim/raisim_message_logger.hpp: In member function ‘void raisim::RaiSimMsg::stream(const char*, int, std::stringstream&, int)’:
/net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisim/linux/include/raisim/raisim_message_logger.hpp:78:17: error: ‘put_time’ is not a member of ‘std’
<< std::put_time(timePtr, "%Y:%m:%d:%X")<< ' '
^
In file included from /net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/raisimGymTorch/env/raisim_gym.cpp:9:0:
/net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/Environment.hpp: In constructor ‘raisim::ENVIRONMENT::ENVIRONMENT(const string&, const Yaml::Node&, bool)’:
/net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/Environment.hpp:22:14: error: ‘make_unique’ is not a member of ‘std’
world_ = std::make_unique<raisim::World>();
^
/net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/Environment.hpp:22:44: error: expected primary-expression before ‘>’ token
world_ = std::make_unique<raisim::World>();
^
/net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/Environment.hpp:22:46: error: expected primary-expression before ‘)’ token
world_ = std::make_unique<raisim::World>();
^
/net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/Environment.hpp:72:17: error: ‘make_unique’ is not a member of ‘std’
server_ = std::make_unique<raisim::RaisimServer>(world_.get());
^
/net/vast-storage/scratch/vast/tenenbaum/ycliang/raisimLib/raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/Environment.hpp:72:54: error: expected primary-expression before ‘>’ token
server_ = std::make_unique<raisim::RaisimServer>(world_.get());
^
gmake[2]: *** [CMakeFiles/rsg_anymal.dir/raisimGymTorch/env/raisim_gym.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/rsg_anymal.dir/all] Error 2
gmake: *** [all] Error 2
Traceback (most recent call last):
File "setup.py", line 68, in <module>
setup(
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/command/develop.py", line 115, in install_for_development
self.run_command('build_ext')
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "setup.py", line 38, in run
self.build_extension(ext)
File "setup.py", line 66, in build_extension
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
File "/om2/user/ycliang/miniconda3/envs/rma/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
I thought it might be gcc/g++ version's problem, but it seems both are up-to-date, as shown below:
(rma) ycliang at node063 in /om2/user/ycliang/raisimLib/raisimGymTorch on master
$ g++ --version
g++ (Anaconda gcc) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(rma) ycliang at node063 in /om2/user/ycliang/raisimLib/raisimGymTorch on master
$ gcc --version
gcc (Anaconda gcc) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Hi, I'm using raisim for a research project, but I'm keeping having the following error in setting up the environment after hours of tinkering. So any help would be greatly appreciated!
I thought it might be gcc/g++ version's problem, but it seems both are up-to-date, as shown below: