mqtt-io icon indicating copy to clipboard operation
mqtt-io copied to clipboard

adxl345 Module outdated and does not install

Open mschlenstedt opened this issue 3 months ago • 1 comments

Unfortunately the recently added adxl345 module could not be installed anymore. As far as I could figure out "use_2to3" was removed in sezuptools > 58.0:

root@loxberry:~# python3 -m pip install --upgrade adxl345
Collecting adxl345
  Downloading adxl345-1.0.4.tar.gz (3.1 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in adxl345 setup command: use_2to3 is invalid.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

The Git Repo of adxl345 says that the code is outdated and better use https://github.com/adafruit/Adafruit_Python_ADXL345 (see here: https://github.com/pimoroni/adxl345-python).

Unfortunately I have no adxl345 here and therefore could not rewrite the sensor module...

mschlenstedt avatar Apr 06 '24 07:04 mschlenstedt