Skip to content

building detectron2 error #25

Description

@sgsgs-beep

Description

I encountered an error during the installation process on a brand new Ubuntu 24.04 environment. I followed the official installation instructions step-by-step, but the installation failed.

I encountered an error when entering the following command:

pip3 install 'git+https://github.com/facebookresearch/detectron2.git@710e7795d0eeadf9def0e7ef957eea13532e34cf' --no-deps

The error is:

  /home/ubuntu24/miniconda3/envs/human3d_cuda113/lib/python3.10/site-packages/torch/include/pybind11/attr.h:311:28: error: ‘const struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’?
    311 |     args_convert.reserve(f.nargs);
        |                            ^~~~~
        |                            args

  /home/ubuntu24/miniconda3/envs/human3d_cuda113/lib/python3.10/site-packages/torch/include/pybind11/attr.h:205:10: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
    205 |     std::uint16_t nargs_pos_only = 0;
        |          ^~~~~~~~
        |          wint_t

my gcc version: gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
I've tried installing other commit versions of Detectron2, but they all failed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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