pimoroni / st7789-python

Python library to control an ST7789 240x240 1.3" TFT LCD display.
MIT License
193 stars 51 forks source link

Python vs Python3 apt install #21

Closed lucasra1 closed 2 years ago

lucasra1 commented 2 years ago

Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye

Linux raspberrypi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux

package python-pip is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: python3-pip

Package python-rpi.gpio is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

Package python-numpy is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

Package python-pil is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'python-rpi.gpio' has no installation candidate E: Package 'python-pip' has no installation candidate E: Package 'python-pil' has no installation candidate E: Package 'python-numpy' has no installation candidate

what worked for me was: sudo apt install python3-rpi.gpio python3-spidev python3-pip python3-pil python3-numpy

I dont know if this is just with newer releases of raspbian, but maybe this should be mentioned in the installation guide

mschleid commented 2 years ago

Having the same issue, but it does not pertain to this library or this repository. It appears that almost all python packages in the new Raspberry Pi OS package manager are broken. This is probably because RPiOS is trying to move more toward Python3 instead of Python2.

Gadgetoid commented 2 years ago

Looks like I updated the instructions as of 5c16baecb8844b1807da221b40d03dec500b3a9e but these changes haven't yet made it to a release.