Problem
When installing csc-mlops without specifying a version, pip downloads an old version that has compatibility issues with the current Docker Python SDK (v6.1.3), resulting in the error:
docker.errors.DockerException: Error while fetching server API version: Not supported URL scheme http+docker
Steps to reproduce
- Install dependencies:
pip install -r requirements.txt
- Run any code that uses
docker.from_env() from the csc-mlops package
- Observe the
http+docker URL scheme error
Proposed solution
Pin the csc-mlops version
Update requirements.txt to specify the current version:
Problem
When installing
csc-mlopswithout specifying a version, pip downloads an old version that has compatibility issues with the current Docker Python SDK (v6.1.3), resulting in the error:docker.errors.DockerException: Error while fetching server API version: Not supported URL scheme http+docker
Steps to reproduce
pip install -r requirements.txtdocker.from_env()from thecsc-mlopspackagehttp+dockerURL scheme errorProposed solution
Pin the csc-mlops version
Update
requirements.txtto specify the current version: