sudo apt install python3-pymysql
sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED
pip install mysql-connector-python
If you run textphone.py and you get the following error:
/dev/ttyUSB3 not available
/dev/ttyUSB2 not available
It is because of ModemManager that comes pre-installed and running on the new Rasbian Bookworm. To disable ModemManager and prevent it from working on reboot type the following two lines:
sudo systemctl disable ModemManager
sudo systemctl stop ModemManager