bitsy-ai / rpi-object-tracking

Object tracking tutorial using TensorFlow / TensorFlow Lite, Raspberry Pi, Pi Camera, and a Pimoroni Pan-Tilt Hat.
https://medium.com/@grepLeigh/real-time-object-tracking-with-tensorflow-raspberry-pi-and-pan-tilt-hat-2aeaef47e134
MIT License
178 stars 70 forks source link

Error encountered when upgrading rpi-deep-pantilt #35

Open TCIII opened 4 years ago

TCIII commented 4 years ago

*pi-deep-pantilt version: 1.1.0 Python version: 3.7.3 TensorFlow version: 2.0.0 Operating System: Raspbian Buster Desktop on Rpi 4B+ w/4GB RAM

Description

When I attempted to upgrade rpi-deep-pantilt to version 1.2.0, the upgrade failed.

What I Did

(.venv) pi@raspberrypi:~/rpi-deep-pantilt $ python3 -m pip install --upgrade rpi-deep-pantilt Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting rpi-deep-pantilt Using cached rpi_deep_pantilt-1.2.0-py2.py3-none-any.whl (30 kB) Requirement already satisfied, skipping upgrade: smbus; platform_machine == "armv7l" in ./.venv/lib/python3.7/site-packages (from rpi-deep-pantilt) (1.1.post2) Requirement already satisfied, skipping upgrade: pillow in ./.venv/lib/python3.7/site-packages (from rpi-deep-pantilt) (7.0.0) Requirement already satisfied, skipping upgrade: Click>=7.0 in ./.venv/lib/python3.7/site-packages (from rpi-deep-pantilt) (7.1.1) Requirement already satisfied, skipping upgrade: h5py in ./.venv/lib/python3.7/site-packages (from rpi-deep-pantilt) (2.10.0) ERROR: Could not find a version that satisfies the requirement tensorflow>=2.2.0 (from rpi-deep-pantilt) (from versions: 0.11.0, 1.12.0, 1.13.1, 1.14.0) ERROR: No matching distribution found for tensorflow>=2.2.0 (from rpi-deep-pantilt)

I assume that TensorFlow needs to be updated to version 2.2.0 or greater since that is what the rpi-deep-pantilt upgrade is requesting?

Regards, TCIII

TCIII commented 4 years ago

Okay, went back to the README.md and found this CLI string: pip install https://github.com/leigh-johnson/Tensorflow-bin/releases/download/v2.2.0/tensorflow-2.2.0-cp37-cp37m-linux_armv7l.whl which I successfully used to uninstall tensorflow 2.0.0 and associated components and install 2.2.0 and associated components.

I then was able to successfully upgrade rpi-deep-pantilt to 1.2.0 using: pip install --upgrade rpi-deep-pantilt without encountering any errors.

Regards, TCIII

leigh-johnson commented 4 years ago

Sorry that you had to dig for info @TCIII

I'm going to re-open this issue as a reminder to add an explicit section on upgrading to the Readme.

TCIII commented 4 years ago

@leigh-johnson,

No problem. I am good at Arduino C++, but still learning to deal with Python commands and programming so it was a good exercise for me.

I really like the additional options added to the command line especially the ability to rotate the pi camera image in detect and tracking.

Regards, TCIII