iperov / DeepFaceLive

Real-time face swap for PC streaming or video calls
GNU General Public License v3.0
24.81k stars 4.13k forks source link

failed to build docker image on ubuntu 22.10 #162

Closed derVedro closed 1 year ago

derVedro commented 1 year ago

tried to run in on my ubuntu system, just clone repo and followed Build info, on ./start.sh was an error:

#0 211.1 INFO: pip is looking at multiple versions of onnx to determine which version is compatible with other requirements. This could take a while.
#0 211.1 ERROR: Cannot install onnx==1.13.0, onnxruntime-gpu==1.14.1 and protobuf==3.20.1 because these package versions have conflicting dependencies.
#0 211.1 
#0 211.1 The conflict is caused by:
#0 211.1     The user requested protobuf==3.20.1
#0 211.1     onnxruntime-gpu 1.14.1 depends on protobuf
#0 211.1     onnx 1.13.0 depends on protobuf<4 and >=3.20.2
#0 211.1 
#0 211.1 To fix this you could try to:
#0 211.1 1. loosen the range of package versions you've specified
#0 211.1 2. remove package versions to allow pip attempt to solve the dependency conflict
#0 211.1 
#0 211.1 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
------
Dockerfile:13
--------------------
  11 |     
  12 |     RUN python -m pip install --upgrade pip
  13 | >>> RUN python -m pip install onnxruntime-gpu==1.14.1 numpy==1.21.6 h5py numexpr protobuf==3.20.1 opencv-python==4.7.0.72 opencv-contrib-python==4.7.0.72 pyqt6==6.5.0 onnx==1.13.0 torch==1.13.1 torchvision==0.14.1
  14 |     
  15 |     RUN apt install -y libnvidia-compute-$NV_VER
--------------------
ERROR: failed to solve: process "/bin/sh -c python -m pip install onnxruntime-gpu==1.14.1 numpy==1.21.6 h5py numexpr protobuf==3.20.1 opencv-python==4.7.0.72 opencv-contrib-python==4.7.0.72 pyqt6==6.5.0 onnx==1.13.0 torch==1.13.1 torchvision==0.14.1" did not complete successfully: exit code: 1
access control disabled, clients can connect from any host
Unable to find image 'deepfacelive:latest' locally
docker: Error response from daemon: pull access denied for deepfacelive, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

I use 525 driver and 11.5 cuda. Any ideas?

By the way, the nvidia driver version check in start.sh is bad. Better approach would be to change this: NV_LIB=$(locate nvidia.ko |grep $(uname -r) |grep dkms | head -1) to that: NV_LIB=$(locate -br "^nvidia.ko$" |grep $(uname -r) | head -1)

nopium commented 11 months ago

Anyone still having troubles on ubuntu 22.10.
The fix is straightforward: change the Dockerfile to use protobuf==3.20.2

derVedro commented 11 months ago

Anyone still having troubles on ubuntu 22.10. The fix is straightforward: change the Dockerfile to use protobuf==3.20.2

helped, but now a new qt issue became a problem (#150)