Layout-Parser / annotation-service

15 stars 5 forks source link

No matching distribution found for torch==1.4.0+cpu #4

Open wpnbos opened 2 years ago

wpnbos commented 2 years ago

When building the container using docker-compose up --build -d, the build fails with the following output to terminal:

#11 0.959 Looking in links: https://download.pytorch.org/whl/torch_stable.html  
#11 1.961 ERROR: Could not find a version that satisfies the requirement torch==1.4.0+cpu (from versions: 1.8.0, 1.8.1, 1.9.0, 1.10.0, 1.10.1, 1.10.2, 1.11.0)
#11 1.961 ERROR: No matching distribution found for torch==1.4.0+cpu
#11 2.215 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
#11 2.215 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
------
executor failed running [/bin/sh -c pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html]: exit code: 1
ERROR: Service 'modeling' failed to build : Build failed
lolipopshock commented 2 years ago

Thanks for reporting this issue! That's interesting as I think the test I ran should have been passed a while ago; I shall take a closer look later.

maaxlong commented 4 months ago

Similar issue here!

[modeling 7/11] RUN pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html:
0.907 Looking in links: https://download.pytorch.org/whl/torch_stable.html
2.330 ERROR: Could not find a version that satisfies the requirement torch==1.4.0+cpu (from versions: 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1) 2.330 ERROR: No matching distribution found for torch==1.4.0+cpu 2.828 2.828 [notice] A new release of pip is available: 23.0.1 -> 24.0 2.828 [notice] To update, run: pip install --upgrade pip

failed to solve: process "/bin/sh -c pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" did not complete successfully: exit code: 1