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

Python vs Python3 apt install #21

Closed
lucasra1 opened this issue Nov 24, 2021 · 2 comments
Closed

Python vs Python3 apt install #21

lucasra1 opened this issue Nov 24, 2021 · 2 comments
Assignees
Milestone

Comments

@lucasra1
Copy link

  • Platform/operating system (i.e. Raspberry Pi with Raspbian operating system,
    Windows 32-bit, Windows 64-bit, Mac OSX 64-bit, etc.):
    Raspbian 32-Bit Light - Raspberry Pi Zero W 2

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

  • Error message you are receiving, including any Python exception traces:

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

  • List the steps to reproduce the problem below (if possible attach code or commands
    to run):
    sudo apt install python-rpi.gpio python-spidev python-pip python-pil python-numpy

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
Copy link

mschleid commented Jan 2, 2022

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
Copy link
Member

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

@Gadgetoid Gadgetoid self-assigned this Jan 4, 2022
@Gadgetoid Gadgetoid added this to the 0.0.5 milestone Jan 4, 2022
anabolyc pushed a commit to sonocotta/st7789-orangepi-python that referenced this issue Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants