Updating Python to 3.8.0 with Bluetooth Support

Hey Guys,

I’m running Home Assistant Core, and I’m trying to update my Python to 3.8.0, as the new Home Assistant releases require it… I tried to update from source with this tutorial: https://installvirtual.com/how-to-install-python-3-8-on-raspberry-pi-raspbian/ and it worked, however the bluetooth support is not working for my Xiaomi Thermometer… Does someone knows how should be the correct way to update and support bluetooth?

Thanks!

You should really have gone for 3.8.7, not 3.8.0. That said, the guide is missing a number of libraries, including Bluetooth, which would explain your problem.

The minimal set I recommend is:

sudo apt install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline-dev \
  libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev \
  zlib1g-dev libudev-dev unixodbc-dev libpq-dev libopenzwave1.5-dev \
  libwebp-dev libopenjp2-7-dev libjpeg-dev libtiff5-dev libfreetype6-dev \
  libc-dev libffi-dev libbluetooth-dev libtirpc-dev  
1 Like

@Tinkerer Nice! Thanks!

1 Like