Page 1 of 1

(Fixed) Issues installing python-serial

Posted: Sat May 06, 2023 4:46 pm
by EricvL
Hi guys,

I decided to buy a Pi and I found one on Marktplaats. It contained no SD card, so I had to install everything from scratch. It's now running the newest PiOS BullsEye with the latest Python 3.9.9. I now get stuck when installing the python-serial package:

Code: Select all

RaspberryPi:~ $ sudo apt-get install python-serial
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python-serial 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-serial' has no installation candidate
I do have a pyserial package installed:

Code: Select all

RaspberryPi:~/ToonRooter $ pip list|grep serial
pyserial          3.5b0
But I think this is python3-serial, not python-serial. And the ToonRooter doesn't work with it, I think:

Code: Select all

RaspberryPi:~/ToonRooter $ sudo python . --jtag-available
INFO:__main__:Starting up...
CRITICAL:__main__:No module named 'serial'
Any idea how to fix that? Do I have to downgrade to a Python 2.x release?
Thanks for any help!

Kind regrads,
Eric

Re: Issues installing python-serial

Posted: Sat May 06, 2023 8:56 pm
by oepi-loepi
Bullseye is te nieuw lijkt het. (Is ook logisch).

Re: Issues installing python-serial

Posted: Sun May 07, 2023 1:17 pm
by EricvL
oepi-loepi wrote: Sat May 06, 2023 8:56 pm Bullseye is te nieuw lijkt het. (Is ook logisch).
Hi Oepi-Loepi,

You're right, downgrading Python didn't help either, so I downgraded to Buster and now everything is working.
Thanks for your help!

Kind regards,
Eric