Sorry about the mistake. I am using Python 3.11. Corrected now in the main post.Is the Pi 4 running Bookworm or Bullseye?
Are you actually using "Python11" or Python 3.11 ?
On my Pi4 running Python 3.9.2 (that is installed by default) that code does not give an error.
I am using Bookworm
Statistics: Posted by guidupas — Mon Apr 29, 2024 11:18 am