I’ve been trying to utilize mbedcli tools for a project. However everytime I use the command
mbed test
The command runs but I get the following warning:
The Mbed OS tools in this program require the following Python modules: hidapi, cmsis_pack_manager, psutil, cryptography, click, cbor
You can install all missing modules by running "pip install -r requirements.txt" in "${Workspace-folder}/mbed-os"
On Mac you might have to install packages as your user by adding the "--user" flag
Doing exactly as it asks, I run:
pip3.7 install -r requirements.txt --user
Resulting in:
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
running bdist_wheel
running build
running build_ext
Compiling hid.pyx because it changed.
[1/1] Cythonizing hid.pyx
/private/var/folders/d8/cxmznbcj083czpvyk0ts547h0000gn/T/pip-install-8qb7a_bs/hidapi_af0223a4f48641e9837738a3e4d1f9dd/.eggs/Cython-3.0.11-py3.7-macosx-10.9-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: /private/var/folders/d8/cxmznbcj083czpvyk0ts547h0000gn/T/pip-install-8qb7a_bs/hidapi_af0223a4f48641e9837738a3e4d1f9dd/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
Failed to build hidapi
ERROR: Could not build wheels for hidapi, which is required to install pyproject.toml-based projects
Any assistance on this would be greatly appreciated.