Skip to content

Fix for installation bug #377

@AnandGokhale

Description

@AnandGokhale

Hey guys,
I dont know if other people have already reported this, but iGibson was not compiling on my computer

  In file included from /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:44,
                   from /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/cpp/tinyobjloader/bindings.cc:1:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:192:10: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
    192 |     std::uint16_t nargs;
        |          ^~~~~~~~
        |          wint_t
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:195:10: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
    195 |     std::uint16_t nargs_kw_only = 0;
        |          ^~~~~~~~
        |          wint_t
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:198:10: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
    198 |     std::uint16_t nargs_pos_only = 0;
        |          ^~~~~~~~
        |          wint_t
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h: In constructor ‘pybind11::detail::function_call::function_call(const pybind11::detail::function_record&, pybind11::handle)’:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:303:20: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    303 |     args.reserve(f.nargs);
        |                    ^~~~~
        |                    args
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:304:28: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    304 |     args_convert.reserve(f.nargs);
        |                            ^~~~~
        |                            args
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h: In function ‘void pybind11::detail::process_kw_only_arg(const pybind11::arg&, function_record*)’:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:375:10: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_kw_only’
    375 |     ++r->nargs_kw_only;
        |          ^~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h: In static member function ‘static void pybind11::detail::process_attribute<pybind11::pos_only>::init(const pybind11::pos_only&, pybind11::detail::function_record*)’:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:432:12: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    432 |         r->nargs_pos_only = static_cast<std::uint16_t>(r->args.size());
        |            ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:432:46: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
    432 |         r->nargs_pos_only = static_cast<std::uint16_t>(r->args.size());
        |                                              ^~~~~~~~
        |                                              wint_t
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, const char*, const std::type_info* const*, pybind11::size_t)’:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:264:26: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_kw_only’
    264 |                 if (rec->nargs_kw_only > 0 && arg_index + rec->nargs_kw_only == args)
        |                          ^~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:264:64: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_kw_only’
    264 |                 if (rec->nargs_kw_only > 0 && arg_index + rec->nargs_kw_only == args)
        |                                                                ^~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:282:26: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    282 |                 if (rec->nargs_pos_only > 0 && (arg_index + 1) == rec->nargs_pos_only)
        |                          ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:282:72: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    282 |                 if (rec->nargs_pos_only > 0 && (arg_index + 1) == rec->nargs_pos_only)
        |                                                                        ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:324:14: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    324 |         rec->nargs = (std::uint16_t) args;
        |              ^~~~~
        |              args
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:324:28: error: ‘uint16_t’ is not a member of ‘std’; did you mean ‘wint_t’?
    324 |         rec->nargs = (std::uint16_t) args;
        |                            ^~~~~~~~
        |                            wint_t
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h: In static member function ‘static PyObject* pybind11::cpp_function::dispatcher(PyObject*, PyObject*, PyObject*)’:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:522:40: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    522 |                 size_t num_args = func.nargs;    // Number of positional arguments that we need
        |                                        ^~~~~
        |                                        args
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:525:51: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs_kw_only’
    525 |                 size_t pos_args = num_args - func.nargs_kw_only;
        |                                                   ^~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:575:40: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    575 |                 if (args_copied < func.nargs_pos_only) {
        |                                        ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:576:47: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    576 |                     for (; args_copied < func.nargs_pos_only; ++args_copied) {
        |                                               ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:590:44: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    590 |                     if (args_copied < func.nargs_pos_only)
        |                                            ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:674:53: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    674 |                     second_pass_convert.resize(func.nargs, false);
        |                                                     ^~~~~
        |                                                     args
  gmake[2]: *** [CMakeFiles/tinyobjloader.dir/build.make:107: CMakeFiles/tinyobjloader.dir/cpp/tinyobjloader/bindings.cc.o] Error 1
  gmake[1]: *** [CMakeFiles/Makefile2:185: CMakeFiles/tinyobjloader.dir/all] Error 2
  gmake[1]: *** Waiting for unfinished jobs....
  [ 87%] Building CXX object CMakeFiles/EGLRendererContext.dir/cpp/egl_mesh_renderer.cpp.o
  In file included from /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:44,
                   from /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/cpp/egl_mesh_renderer.cpp:12:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:192:10: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
    192 |     std::uint16_t nargs;
        |          ^~~~~~~~
        |          wint_t
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:195:10: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
    195 |     std::uint16_t nargs_kw_only = 0;
        |          ^~~~~~~~
        |          wint_t
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:198:10: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
    198 |     std::uint16_t nargs_pos_only = 0;
        |          ^~~~~~~~
        |          wint_t
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h: In constructor ‘pybind11::detail::function_call::function_call(const pybind11::detail::function_record&, pybind11::handle)’:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:303:20: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    303 |     args.reserve(f.nargs);
        |                    ^~~~~
        |                    args
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:304:28: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    304 |     args_convert.reserve(f.nargs);
        |                            ^~~~~
        |                            args
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h: In function ‘void pybind11::detail::process_kw_only_arg(const pybind11::arg&, function_record*)’:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:375:10: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_kw_only’
    375 |     ++r->nargs_kw_only;
        |          ^~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h: In static member function ‘static void pybind11::detail::process_attribute<pybind11::pos_only>::init(const pybind11::pos_only&, pybind11::detail::function_record*)’:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:432:12: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    432 |         r->nargs_pos_only = static_cast<std::uint16_t>(r->args.size());
        |            ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/attr.h:432:46: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
    432 |         r->nargs_pos_only = static_cast<std::uint16_t>(r->args.size());
        |                                              ^~~~~~~~
        |                                              wint_t
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, const char*, const std::type_info* const*, pybind11::size_t)’:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:264:26: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_kw_only’
    264 |                 if (rec->nargs_kw_only > 0 && arg_index + rec->nargs_kw_only == args)
        |                          ^~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:264:64: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_kw_only’
    264 |                 if (rec->nargs_kw_only > 0 && arg_index + rec->nargs_kw_only == args)
        |                                                                ^~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:282:26: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    282 |                 if (rec->nargs_pos_only > 0 && (arg_index + 1) == rec->nargs_pos_only)
        |                          ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:282:72: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    282 |                 if (rec->nargs_pos_only > 0 && (arg_index + 1) == rec->nargs_pos_only)
        |                                                                        ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:324:14: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    324 |         rec->nargs = (std::uint16_t) args;
        |              ^~~~~
        |              args
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:324:28: error: ‘uint16_t’ is not a member of ‘std’; did you mean ‘wint_t’?
    324 |         rec->nargs = (std::uint16_t) args;
        |                            ^~~~~~~~
        |                            wint_t
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h: In static member function ‘static PyObject* pybind11::cpp_function::dispatcher(PyObject*, PyObject*, PyObject*)’:
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:522:40: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    522 |                 size_t num_args = func.nargs;    // Number of positional arguments that we need
        |                                        ^~~~~
        |                                        args
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:525:51: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs_kw_only’
    525 |                 size_t pos_args = num_args - func.nargs_kw_only;
        |                                                   ^~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:575:40: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    575 |                 if (args_copied < func.nargs_pos_only) {
        |                                        ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:576:47: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    576 |                     for (; args_copied < func.nargs_pos_only; ++args_copied) {
        |                                               ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:590:44: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs_pos_only’
    590 |                     if (args_copied < func.nargs_pos_only)
        |                                            ^~~~~~~~~~~~~~
  /tmp/pip-install-xd2qj7hl/igibson_7603bf7255a04bb8ab669c78a27d8f7c/igibson/render/pybind11/include/pybind11/pybind11.h:674:53: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    674 |                     second_pass_convert.resize(func.nargs, false);
        |                                                     ^~~~~
        |                                                     args
  gmake[2]: *** [CMakeFiles/EGLRendererContext.dir/build.make:121: CMakeFiles/EGLRendererContext.dir/cpp/egl_mesh_renderer.cpp.o] Error 1
  gmake[2]: *** Waiting for unfinished jobs....
  gmake[1]: *** [CMakeFiles/Makefile2:154: CMakeFiles/EGLRendererContext.dir/all] Error 2
  gmake: *** [Makefile:136: all] Error 2
  /tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/command/build_py.py:220: _Warning: Package 'igibson.utils.data_utils.sampling_task' is absent from the `packages` configuration.
  !!
  
          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'igibson.utils.data_utils.sampling_task' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.
  
          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'igibson.utils.data_utils.sampling_task' is explicitly added
          to the `packages` configuration field.
  
          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
  
          You can read more about "package discovery" on setuptools documentation page:
  
          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
  
          If you don't want 'igibson.utils.data_utils.sampling_task' to be distributed and are
          already explicitly excluding 'igibson.utils.data_utils.sampling_task' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.
  
          You can read more about "package data files" on setuptools documentation page:
  
          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
  
  
          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************
  
  !!
    check.warn(importable)
  Traceback (most recent call last):
    File "/home/anand/anaconda3/envs/eai-eval/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/home/anand/anaconda3/envs/eai-eval/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/anand/anaconda3/envs/eai-eval/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 437, in build_wheel
      return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 425, in _build
      return self._build_with_temp_dir(
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 406, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 319, in run_setup
      exec(code, locals())
    File "<string>", line 127, in <module>
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 183, in setup
      return run_commands(dist)
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/command/bdist_wheel.py", line 400, in run
      self.run_command("build")
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-dj7eolwz/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "<string>", line 54, in run
    File "<string>", line 107, in build_extension
    File "/home/anand/anaconda3/envs/eai-eval/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.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for igibson
Building wheel for bddl (setup.py) ... done
Created wheel for bddl: filename=bddl-1.0.1-py3-none-any.whl size=212351 sha256=6c4d7a33cb662a1de2f5af708f87e0ff87c6e3a056629cf95cb5d81b07f95f1d
Stored in directory: /home/anand/.cache/pip/wheels/17/33/d4/c51b0332fb55d3802766dca72a5ec05c899b4adbf385070f54
Successfully built bddl
Failed to build igibson

And I met all the requirements for installing iGibson.

Here is how I fixed it:

In igibson/render/pybind11/include/pybind11/attr.h, I added the header file cstdint and things worked.

Just decided to post it here in case other people had this bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions