New project announcement: k9-polyvox

Don’t think I ran that previously, but ran it just now and got errors telling me a different version of Python is required, so I’ve gone wrong somewhere, though I’m not sure where and what to do about it.

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement robot_hat==2.3.5 (from versions: 1.5.5, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.5)
ERROR: No matching distribution found for robot_hat==2.3.5

If you’ve not followed Pablo’s instructions to the letter it’s impossible to know the status of your build. You should start again from scratch, from a full new install of bookworm etc.

You can continue with your current build and progress to debug, for example, install the python versions reported, but I cannot help any further, with this unknown build status. Good luck!

OK, I get where you’re coming from and totally agree - I reckon I made a mistake somewhere along the line, so I’ll start a totally fresh install later today.

Thanks very much for all the help. I’ll let you know if I ever get it working.

Pablo’s requirements.txt worked perfectly for me. However, if there have been library updates, then I can see why this step gave those version errors. Personally I am not a fan of using pip with –break-system-packages. It is sometimes necessary but it may break things!

My own PERSONAL strategy is always to look for python3 wrapped versions first, and install via apt. For example these wrapped versons are available for polyvox

sudo apt install python3-luma.core python3-luma.oled python3-numpy python3-psutil python3-pyaudio python3-pygame python3-scipy

These will not break the system, but may or not be the latest equivalent version needed. However, as apt is clean it is very easy to undo the install.

Then add the remaining missing libraries via pip …….**** –break-system-packages

use the specified version first, but if not available try the “current” one. You can find them all over on Pypi

Pablo may disagree, and he knows this code far better than I do! So listen to him not me!

1 Like