hacksider / Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image
GNU Affero General Public License v3.0
34.92k stars 4.93k forks source link

requirements - Ubuntu 24 #418

Open GinoMalatesta opened 3 weeks ago

GinoMalatesta commented 3 weeks ago

Hi, I'm having lots of exceptions. Ubuntu 24, Python 3.12, pip 24

Figured it out ... the module was removed from 3.12 ModuleNotFoundError: No module named 'distutils'


Installing Python 3.10 ...

It's going all the way thru collecting everything, but then it hangs at

Preparing metadata (setup.py) ... -

No errors, just hangs there ...


Tried again this morning, suddenly went further. But throws lots of errors. Build ends with this:

Failed to build insightface basicsr filterpy ERROR: Could not build wheels for insightface, basicsr, filterpy, which is required to install pyproject.toml-based projects


Installed python3.10-dev and libpython3.10-dev It built insightface now, but still

ERROR: Could not build wheels for basicsr, filterpy, which is required to install pyproject.toml-based projects

GinoMalatesta commented 3 weeks ago

Whats missing?

Updatedme commented 3 weeks ago

What type of laptop computer is it ? What's your laptop configuration

GinoMalatesta commented 3 weeks ago

It's a mini, Ryzen 7735 - Radeon x16, 32 GB DDR5 ... Ubuntu 24.04 LTS comes with Python 3.12 I installed alternatives properly. 3.10 and 3.11 I wonder if gcc is the wrong version, or missing something ... gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0

GinoMalatesta commented 3 weeks ago

created virtual environment CPython3.10.14.final.0-64 in 191ms creator CPython3Posix(dest=/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/gonzo/.local/share/virtualenv) added seed packages: pip==24.0, setuptools==68.1.2, wheel==0.42.0 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator


Console quite similar for both failing:

  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-rjituo28/filterpy_d8286705469243f099efdadf57a21622/setup.py", line 12, in <module>
      setup(
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/dist.py", line 1233, in run_command
      super().run_command(command)
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 403, in run
      self.run_command("install")
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/dist.py", line 1233, in run_command
      super().run_command(command)
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/command/install.py", line 78, in run
      return orig.install.run(self)
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install.py", line 708, in run
      self.run_command(cmd_name)
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/dist.py", line 1233, in run_command
      super().run_command(command)
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
      cmd_obj.ensure_finalized()
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
      self.finalize_options()
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
      self.set_undefined_options('install',('install_layout','install_layout'))
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 296, in set_undefined_options
      setattr(self, dst_option, getattr(src_cmd_obj, src_option))
    File "/home/gonzo/AI-Stuff/Deep-Live/Deep-Live-Cam/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
      raise AttributeError(attr)
  AttributeError: install_layout. Did you mean: 'install_platlib'?