-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hello,
I just got an isdt N8 charger and wanted to be able to read the data from it on my computer, but unfortunately the manufacturer doesn't provide any tools for this.
After some searching I discovered this project, but unfortunately I wasn't able to install it using the provided instructions.
Running "pip install isdttool" results in the following error:
$ pip install isdttool
Collecting isdttool
Using cached isdttool-1.0.1-py3-none-any.whl (37 kB)
Collecting hidapi~=0.10.1 (from isdttool)
Using cached hidapi-0.10.1.tar.gz (60 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: setuptools>=19.0 in /usr/local/lib/python3.10/site-packages (from hidapi~=0.10.1->isdttool) (68.1.2)
Building wheels for collected packages: hidapi
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]
/usr/local/lib/python3.10/site-packages/setuptools/__init__.py:84: _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
/usr/local/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /private/var/folders/8c/xhd483rj5013w9v522q96yfh0000gn/T/pip-install-_7b0jdec/hidapi_764360f6fc914e96a3b6b714b2832f8a/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
I tried this on macOS 10.15, Fedora 37 and also Raspberrypi OS 11 (bullseye), and on all of them I get the same error.
After some searching I was able to get isdttool installed by changing the install_requires statement in the setup.py as follows:
install_requires=['hidapi>=0.10.1'],
Now the installation runs trough:
$ python3 ./setup.py install
running install
...
Installing isdttool script to /usr/local/bin
Installed /usr/local/lib/python3.10/site-packages/isdttool-1.0.0-py3.10.egg
Processing dependencies for isdttool==1.0.0
Searching for hidapi==0.14.0
Best match: hidapi 0.14.0
Adding hidapi 0.14.0 to easy-install.pth file
detected new path './isdttool-1.0.0-py3.10.egg'
Using /usr/local/lib/python3.10/site-packages
Searching for setuptools==68.1.2
Best match: setuptools 68.1.2
Adding setuptools 68.1.2 to easy-install.pth file
Using /usr/local/lib/python3.10/site-packages
Finished processing dependencies for isdttool==1.0.0
Unfortunately it is not possible to read any data from the N8:
$ isdttool list
Model "SMART Device" at "DevSrvsID:4295048006"
Found 1 candidate devices. Note that the model identifier does NOT have to be correct here.
$ isdttool metrics
This command is currently not supported by the model "NXHOSTP" in app mode.
The command is supported in the following modes:
Model "C4" in app mode
Model "A4" in app mode
Model "C4EVO" in app mode
Metadata
Metadata
Assignees
Labels
No labels