HIDAPI установить на Raspberry Pi для устранения неполадок

контекст

rPi3 оснащен OSMC. Подробности представлены ниже.

Вопросы:

Ключевое сообщение об ошибке:

/tmp/easy_install-umkn03/Cython-0.28.2/Cython/Plex/Scanners.c:19:20: fatal error: Python.h: No such file or directory
     #include "Python.h"
                        ^
    compilation terminated.

Какова линия рассуждений \ допросов, которая устранит неполадки при установке?

ПОДРОБНОСТИ

osmc@osmc:~$ pip --version
pip 10.0.1 from /home/osmc/.local/lib/python2.7/site-packages/pip (python 2.7)
osmc@osmc:~$ pip install hidapi
Collecting hidapi
  Using cached https://files.pythonhosted.org/packages/c1/86/89df0e8890f96eeb5fb68d4ccb14cb38e2c2d2cfd7601ba972206acd9015/hidapi-0.7.99.post21.tar.gz
    Complete output from command python setup.py egg_info:
    Unable to find pgen, not compiling formal grammar.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Plex/Scanners.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Plex/Actions.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Pythran.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Lexicon.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Scanning.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Parsing.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Visitor.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/FlowControl.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Code.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Runtime/refnanny.pyx because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/FusedNode.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Tempita/_tempita.py because it changed.
    Compiling /tmp/easy_install-umkn03/Cython-0.28.2/Cython/StringIOTree.py because it changed.
    [ 1/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Code.py
    [ 2/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/FlowControl.py
    [ 3/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/FusedNode.py
    [ 4/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Lexicon.py
    [ 5/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Parsing.py
    [ 6/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Pythran.py
    [ 7/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Scanning.py
    [ 8/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Compiler/Visitor.py
    [ 9/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Plex/Actions.py
    [10/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Plex/Scanners.py
    [11/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Runtime/refnanny.pyx
    [12/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/StringIOTree.py
    [13/13] Cythonizing /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Tempita/_tempita.py
    warning: no files found matching '2to3-fixers.txt'
    warning: no files found matching 'Doc/*'
    warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.pxd' under directory 'Cython/Utility'
    warning: no files found matching 'pyximport/README'
    /tmp/easy_install-umkn03/Cython-0.28.2/Cython/Plex/Scanners.c:19:20: fatal error: Python.h: No such file or directory
     #include "Python.h"
                        ^
    compilation terminated.
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-z3bxZG/hidapi/setup.py", line 123, in <module>
        install_requires = ['setuptools>=19.0'],
      File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 128, in setup
        _install_setup_requires(attrs)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 123, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 514, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 770, in resolve
        replace_conflicting=replace_conflicting
      File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1053, in best_match
        return self.obtain(req, installer)
      File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1065, in obtain
        return installer(requirement)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 581, in fetch_build_egg
        return cmd.easy_install(req)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 673, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 699, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 884, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1152, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1140, in run_setup
        raise DistutilsError("Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-z3bxZG/hidapi/

0 ответов

Другие вопросы по тегам