deepfakes / faceswap

Deepfakes Software For All
https://www.faceswap.dev
GNU General Public License v3.0
52.27k stars 13.21k forks source link

Windows 10 Conda setup #877

Closed stevepowellGV closed 5 years ago

stevepowellGV commented 5 years ago

Describe the bug When running python setup.py on Windows 10 on a clean conda 4.7.10 virtual machine, the script is failing with the following stack trace -

INFO    Running as Root/Admin
INFO    The tool provides tips for installation
        and installs required python packages
INFO    Setup in Windows 10
INFO    Installed Python: 3.5.6 64bit
INFO    Running in Conda
INFO    Running in a Virtual Environment
INFO    Encoding: cp1252
INFO    Installed pip: 10.0.1
Traceback (most recent call last):
  File "setup.py", line 803, in <module>
    ENV = Environment()
  File "setup.py", line 56, in __init__
    self.installed_packages = self.get_installed_packages()
  File "setup.py", line 195, in get_installed_packages
    shell=True, stdout=PIPE)
  File "C:\Users\User\Miniconda3\envs\faceswap_gpu\lib\subprocess.py", line 676, in __init__
    restore_signals, start_new_session)
  File "C:\Users\User\Miniconda3\envs\faceswap_gpu\lib\subprocess.py", line 957, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

To Reproduce Steps to reproduce the behavior: 1 Create a VM in Anaconda (I used Miniconda)

  1. Activate the VM
  2. Download the code for faceswap from git
  3. Run setup.py

Expected behavior The setup script should run and install all dependencies for faceswap

Desktop (please complete the following information):

torzdf commented 5 years ago

This is a conda issue :/

My advice would be to completely remove Conda from your machine, clean it up (as per: https://faceswap.dev/forum/app.php/faqpage?sid=6c5e612f4f04596edebf98168c1ecb8f#f1r1) and run the latest installer from here: https://github.com/deepfakes/faceswap/releases/tag/v1.0.0

stevepowellGV commented 5 years ago

Many thanks. I'll give that a go and see how I get on.

stevepowellGV commented 5 years ago

Cleared out my installs - Conda and Python, cleaned up as per the instructions.

Running the all-in-one installer ran into a problem creating the Conda envirnment... miniconda_fail

I tried creating the environment manually from Miniconda command line, which worked fine - but then ran into the same issue with the setup script as before.

fuomag9 commented 5 years ago

@stevepowellGV I incurred into the same error, I installed miniconda without creating anything and the installer worked. Remember to remove the old Anaconda folders as they contain libraries and stuff that may break the installer

stevepowellGV commented 5 years ago

Still having no success with that. I cleaned out all Anaconda/Miniconda files. Restarted, successfully installed Miniconda and ran the faceswap install package. Got exactly the same error.

I tried a couple of times, running the installer under main user, and again with admin privileges. Same problem.

Again, I was able to create a conda environment from the command line without any problems,

torzdf commented 5 years ago

This is a Conda issue, not a faceswap issue. We have seen this problem before, when Conda made changes.

You can try installing an older version of miniconda. 4.5.12 is known to work

stevepowellGV commented 5 years ago

Ok thanks, I'll give that a try.

stevepowellGV commented 5 years ago

Thanks for that suggestion.

Obviously it's not your issue, but for some reason I was unable to install that older version of Miniconda. The errors returned were strangely similar to those I get trying to run the Faceswap install script.

Shown is trying to install Miniconda2, which I tried after Miniconda3 didn't work...

miniconda3-4-5-12-screen1 miniconda3-4-5-12-screen2

bryanlyon commented 5 years ago

Yes, this is a bug with the conda installer or your local install. Unfortunately there is really nothing that we can do about this ourselves. Our only suggestion is to try a clean install. Remove all signs of Python and Conda and try again. If that doesn't solve it, please raise an issue with Anaconda as they're the only ones who could resolve it.