google-coral / edgetpu

Coral issue tracker (and legacy Edge TPU API source)
https://coral.ai
Apache License 2.0
429 stars 125 forks source link

Unable to setup for FreeRTOS development and run the face detection example for coral dev board micro #855

Closed harshajk closed 4 months ago

harshajk commented 4 months ago

How to reproduce: Run the setup instructions provided in Setup for FreeRTOS development

specifically running

cd coralmicro && bash setup.sh

generates an error as below:

  Building wheel for hidapi (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      /home/harshajk/anaconda3/envs/coralai/lib/python3.12/site-packages/setuptools/__init__.py:81: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!

              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************

      !!
        dist.fetch_build_eggs(dist.setup_requires)
      running bdist_wheel
      running build
      running build_ext
      Compiling hid.pyx because it changed.
      [1/1] Cythonizing hid.pyx
      /tmp/pip-install-qvzrj6ea/hidapi_181f514d26e544da9b2438e630595fd8/.eggs/Cython-3.0.10-py3.12-linux-x86_64.egg/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-qvzrj6ea/hidapi_181f514d26e544da9b2438e630595fd8/hid.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      building 'hid' extension
      error: unknown file type '.pxd' (from 'chid.pxd')
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for hidapi
  Running setup.py clean for hidapi
  Building wheel for progress (setup.py) ... done
  Created wheel for progress: filename=progress-1.5-py3-none-any.whl size=8069 sha256=cb4c9050a36257426569b638fe93725436ca9011649e80c79bc9f6cc0fbf1378
  Stored in directory: /home/harshajk/.cache/pip/wheels/85/ea/46/a0c75807394abbbd55cc848467be371adcabe677d77fa2c56e
Successfully built hexformat progress
Failed to build hidapi
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (hidapi)

Appreciate your help!

harshajk commented 4 months ago

The issue is seen with python versions > 3.9. To solve this problem, I created an environment with python3.9 and with that this issue is not observed.

google-coral-bot[bot] commented 4 months ago

Are you satisfied with the resolution of your issue? Yes No