-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
I am trying to run it locally but I have problems with dependency versions, I have tried with Debian/sid and then with docker (which is based on nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 and is the same image for the face-alignment
project which works)
ERROR: Could not find a version that satisfies the requirement opencv-python==4.1.0.25 (from -r requirements.txt (line 4)) (from versions: 3.4.8.29, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46)
ERROR: No matching distribution found for opencv-python==4.1.0.25 (from -r requirements.txt (line 4))
ERROR: Could not find a version that satisfies the requirement tensorflow==1.12.0 (from -r requirements.txt (line 5)) (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0)
ERROR: No matching distribution found for tensorflow==1.12.0 (from -r requirements.txt (line 5))
ERROR: Could not find a version that satisfies the requirement torch==1.1.0 (from -r requirements.txt (line 6)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0)
ERROR: No matching distribution found for torch==1.1.0 (from -r requirements.txt (line 6))
ERROR: Could not find a version that satisfies the requirement torchvision==0.3.0 (from -r requirements.txt (line 7)) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.5.0, 0.6.0, 0.6.1, 0.7.0, 0.8.0, 0.8.1)
ERROR: No matching distribution found for torchvision==0.3.0 (from -r requirements.txt (line 7))
I tried to upgrade the packages with the nearest available stable version
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,9 +1,9 @@
librosa==0.7.0
numpy==1.17.1
opencv-contrib-python==4.2.0.34
-opencv-python==4.1.0.25
-tensorflow==1.12.0
-torch==1.1.0
-torchvision==0.3.0
+opencv-python==4.1.2.30
+tensorflow==2.2.0
+torch==1.4.0
+torchvision==0.6.0
tqdm==4.45.0
numba==0.48
But then numpy fail to build
...
[cut]
...
numpy/random/entropy.c:23684:15: error: ‘__Pyx_PyCode_New’ undeclared (first use in this function); did you mean ‘PyCode_New’?
py_code = __Pyx_PyCode_New(
^~~~~~~~~~~~~~~~
PyCode_New
error: Command "gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNPY_NO_DEPRECATED_API=0 -Inumpy/core/include -Ibuild/src.linux-x86_64-3.8/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/conda/include/python3.8 -Ibuild/src.linux-x86_64-3.8/numpy/core/src/common -Ibuild/src.linux-x86_64-3.8/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.8/numpy/core/src/common -Ibuild/src.linux-x86_64-3.8/numpy/core/src/npymath -c numpy/random/entropy.c -o build/temp.linux-x86_64-3.8/numpy/random/entropy.o -MMD -MF build/temp.linux-x86_64-3.8/numpy/random/entropy.o.d -U__GNUC_GNU_INLINE__ -std=c99 -msse2" failed with exit status 1
----------------------------------------
Rolling back uninstall of numpy
Moving to /opt/conda/bin/f2py
from /tmp/pip-uninstall-tyzmyngj/f2py
Moving to /opt/conda/bin/f2py3
from /tmp/pip-uninstall-tyzmyngj/f2py3
Moving to /opt/conda/bin/f2py3.8
from /tmp/pip-uninstall-tyzmyngj/f2py3.8
Moving to /opt/conda/lib/python3.8/site-packages/numpy-1.19.2.dist-info/
from /opt/conda/lib/python3.8/site-packages/~umpy-1.19.2.dist-info
Moving to /opt/conda/lib/python3.8/site-packages/numpy/
from /opt/conda/lib/python3.8/site-packages/~umpy
ERROR: Command errored out with exit status 1: /opt/conda/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mkks_ft8/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mkks_ft8/numpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-c67btjrp/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/include/python3.8/numpy Check the logs for full command output.
Any hint to get it working?
Metadata
Metadata
Assignees
Labels
No labels