Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adxl345 Module outdated and does not install #362

Open
mschlenstedt opened this issue Apr 6, 2024 · 1 comment
Open

adxl345 Module outdated and does not install #362

mschlenstedt opened this issue Apr 6, 2024 · 1 comment

Comments

@mschlenstedt
Copy link
Contributor

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 mschlenstedt changed the title adxl345 MOdule outdated and does not install adxl345 Module outdated and does not install Apr 6, 2024
@mschlenstedt
Copy link
Contributor Author

Workaround is to temporarly install setuptools <58.0:

pip3 install "setuptools<58.0.0" wheel
pip3 install adxl345
pip3 install setuptools wheel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant