roboflow / inference

A fast, easy-to-use, production-ready inference server for computer vision supporting deployment of many popular model architectures and fine-tuned models.
https://inference.roboflow.com
Other
1.15k stars 85 forks source link

current constellation of dependencies inconsistently breaking installation process #373

Closed grzegorz-roboflow closed 2 months ago

grzegorz-roboflow commented 2 months ago

Search before asking

Bug

This is probably just coincidence but recent update of fastapi results in broken installation process (although pip resolves versions inconsistently and sometimes it pulls lower version of fastapi, if fastapi==0.110.3 is pulled then build process runs smoothly, if fastapi==0.111.0 is pulled then installation process results in error)

Environment

No response

Minimal Reproducible Example

python3.8 -m venv venv
source venv/bin/activate
pip install -e .
# Fails with errors similar to [PyYAML](https://github.com/yaml/pyyaml/issues/601)

Additional

N/A

Are you willing to submit a PR?

grzegorz-roboflow commented 2 months ago

if fastapi 0.111.0 is installed then installation fails with errors similar to these tracked here

grzegorz-roboflow commented 2 months ago

I can't reproduce this consistently when running in the container because sometimes pip is picking fastapi==0.110.3 and sometimes 0.111.0

docker run \
    -v $(pwd):/inf \
    -it --rm \
    --entrypoint /bin/bash \
    python:3.8 \
        -c "python -m venv /tmp/venv \
            && source /tmp/venv/bin/activate \
            && cd /inf \
            && pip install -e . \
            && pip freeze | grep fastapi"