Azure-Samples / Custom-vision-service-iot-edge-raspberry-pi

Sample showing how to deploy a AI model from the Custom Vision service to a Raspberry Pi 3 device using Azure IoT Edge
MIT License
186 stars 135 forks source link

Docker build fails with opencv not found at piwheels #53

Closed jkewley closed 5 years ago

jkewley commented 5 years ago

This issue is for a:

- [X] bug report 
- [ ] feature request
- [ ] documentation issue or request
- [X] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Build the arm32v7 Docker file. It will pull the latest version of Raspbian (Buster) from balenalib. The docker file will fail to build when it gets to the piwheels packages, which doesn't have Buster support yet.

Any log messages given by the failure

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting opencv-python
  ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
ERROR: No matching distribution found for opencv-python

Expected/desired behavior

Docker build completes

OS and Version?

Windows 10. Raspbian Buster

Details

As I was writing up this issue I noticed that the piwheels maintainer added Buster support over the weekend. However, I think it makes sense for the sample to specify a version/tag of Raspbian in the Docker file so others don't run into the problem I did last week - that of a failing build due to out-of-date dependencies.