pupil-labs / apriltags

Python bindings for the apriltags3 library
https://pupil-apriltags.readthedocs.io/en/latest/index.html
Other
106 stars 29 forks source link

Build Error #59

Open Klinefelters opened 1 year ago

Klinefelters commented 1 year ago

I'm trying to install pupil-apriltags on a jetson nano running python 3.8 right now. When I run pip3 install pupil-apriltags, I get an error that I don't quite understand. I don't see any explicit failures besides the failed to build wheel at the end. Is it a problem with my cmake? Or maybe python version?

Collecting pupil-apriltags
  Using cached pupil_apriltags-1.0.4.post10.tar.gz (1.9 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: numpy in ./.local/lib/python3.8/site-packages (from pupil-apriltags) (1.24.3)
Building wheels for collected packages: pupil-apriltags
  Building wheel for pupil-apriltags (PEP 517) ... error
  ERROR: Command errored out with exit status -4:
   command: /usr/bin/python3 /tmp/tmp99vlyvjx build_wheel /tmp/tmpqzcikilb
       cwd: /tmp/pip-install-crtkebfk/pupil-apriltags
  Complete output (37 lines):

  --------------------------------------------------------------------------------
  -- Trying 'Ninja' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is GNU 8.4.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- The CXX compiler identification is GNU 8.4.0
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done (1.1s)
  -- Generating done (0.0s)
  -- Build files have been written to: /tmp/pip-install-crtkebfk/pupil-apriltags/_cmake_test_compile/build
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja' generator - success
  --------------------------------------------------------------------------------

  ----------------------------------------
  ERROR: Failed building wheel for pupil-apriltags
Failed to build pupil-apriltags
ERROR: Could not build wheels for pupil-apriltags which use PEP 517 and cannot be installed directly
YoavRozov commented 9 months ago

I got the same error when trying to install the library on a raspberry pi. I managed to fix it with the following steps: sudo apt-get update pip install --upgrade pip pip install numpy --upgrade

Then try to install the library again.