facebookresearch / torchbeast

A PyTorch Platform for Distributed RL
Apache License 2.0
738 stars 114 forks source link

error install nest on Ubuntu 16 #26

Closed cyou6 closed 3 years ago

cyou6 commented 3 years ago

pip install nest/ Processing ./nest Requirement already satisfied: pybind11>=2.3 in ~/anaconda3/envs/torchbeast/lib/python3.7/site-packages (from nest==0.0.3) (2.6.2) Building wheels for collected packages: nest Building wheel for nest (setup.py) ... error ERROR: Command errored out with exit status 1: command:~/anaconda3/envs/torchbeast/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-xjc52l4k/setup.py'"'"'; file='"'"'/tmp/pip-req-build-xjc52l4k/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ty9pec67 cwd: /tmp/pip-req-build-xjc52l4k/ Complete output (227 lines): running bdist_wheel running build running build_ext building 'nest' extension creating build creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/nest

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from nest/nest_pybind.cc:21:0: nest/nest.h:29:22: error: parameter packs not expanded with ‘...’: using Ts::operator()...; ^ nest/nest.h:29:22: note: ‘Ts’ nest/nest.h:29:23: error: expected ‘;’ before ‘...’ token using Ts::operator()...; ^ nest/nest.h:29:23: error: expected unqualified-id before ‘...’ token nest/nest.h:32:37: error: expected constructor, destructor, or type conversion before ‘;’ token overloaded(Ts...)->overloaded; ^ nest/nest.h:38:12: error: ‘variant’ in namespace ‘std’ does not name a template type std::variant<T, std::vector, std::map<std::string, Nest>>; ^ nest/nest.h:58:16: error: expected ‘)’ before ‘v’ Nest(value_t v) : value(std::move(v)) {}

cyou6 commented 3 years ago

FYI: it is a gcc version problem, which need to be compatible with C++17