Failed to install pywinpty

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
snoon
Posts: 1
Joined: Thu Jun 29, 2023 7:07 pm

Failed to install pywinpty

Post by snoon »

hi, faceswap got updated and crashed.

uninstalled and tried to re-install

getting cannot install pywinpty and aborting install.

I have tried everything, using conda viewer to manually install pywinpty. to no avail

I am attaching the log from install/log
I have changed the User name to USER in the file.
i have tried to address the SSL error by manually installing open SSL into windows main and bin directories.

LOG:

Code: Select all

06/29/2023 21:49:38 setup            <module>                       DEBUG    Setup called with args: ['C:\\Users\\USER\\faceswap\\setup.py', '--installer', '--nvidia']
06/29/2023 21:49:38 setup            _process_arguments             DEBUG    ['C:\\Users\\USER\\faceswap\\setup.py', '--installer', '--nvidia']
06/29/2023 21:49:38 setup            _check_permission              INFO     Running as Root/Admin
06/29/2023 21:49:38 setup            _check_system                  INFO     The tool provides tips for installation and installs required python packages
06/29/2023 21:49:38 setup            _check_system                  INFO     Setup in Windows 10
06/29/2023 21:49:38 setup            _check_python                  INFO     Installed Python: 3.10.11 64bit
06/29/2023 21:49:38 setup            _output_runtime_info           INFO     Running in Conda
06/29/2023 21:49:38 setup            _output_runtime_info           INFO     Running in a Virtual Environment
06/29/2023 21:49:38 setup            _output_runtime_info           INFO     Encoding: cp1252
06/29/2023 21:49:38 setup            _upgrade_pip                   INFO     Installed pip: 23.1.2
06/29/2023 21:49:38 setup            _update_backend_specific_conda DEBUG    Adding conda required package 'cudatoolkit>=11.0,<12.0' for backend 'nvidia')
06/29/2023 21:49:38 setup            _update_backend_specific_conda DEBUG    Adding conda required package 'cudnn>=8.0,<9.0' for backend 'nvidia')
06/29/2023 21:49:38 setup            _get_installed_packages        DEBUG    {}
06/29/2023 21:49:39 setup            _get_installed_conda_packages  DEBUG    {'bzip2': '1.0.8', 'ca-certificates': '2023.05.30', 'libffi': '3.4.4', 'openssl': '3.0.9', 'pip': '23.1.2', 'python': '3.10.11', 'setuptools': '67.8.0', 'sqlite': '3.41.2', 'tk': '8.6.12', 'tzdata': '2023c', 'vc': '14.2', 'vs2015_runtime': '14.27.29016', 'wheel': '0.38.4', 'xz': '5.4.2', 'zlib': '1.2.13'}
06/29/2023 21:49:39 setup            set_config                     INFO     Faceswap config written to: C:\Users\USER\faceswap\config\.faceswap
06/29/2023 21:49:39 setup            get_required_packages          DEBUG    [('tqdm', [('>=', '4.65')]), ('psutil', [('>=', '5.9.0')]), ('numexpr', [('>=', '2.8.4')]), ('numpy', [('>=', '1.25.0')]), ('opencv-python', [('>=', '4.7.0.0')]), ('pillow', [('>=', '9.4.0')]), ('scikit-learn', [('>=', '1.2.2')]), ('fastcluster', [('>=', '1.2.6')]), ('matplotlib', [('>=', '3.7.1')]), ('imageio', [('>=', '2.26.0')]), ('imageio-ffmpeg', [('>=', '0.4.8')]), ('ffmpy', [('>=', '0.3.0')]), ('pywin32', [('>=', '228')]), ('nvidia-ml-py', [('<', '300'), ('>=', '11.525')]), ('tensorflow', [('<', '2.11.0'), ('>=', '2.10.0')])]
06/29/2023 21:49:39 setup            check_missing_dependencies     DEBUG    [('tqdm', [('>=', '4.65')]), ('psutil', [('>=', '5.9.0')]), ('numexpr', [('>=', '2.8.4')]), ('numpy', [('>=', '1.25.0')]), ('opencv-python', [('>=', '4.7.0.0')]), ('pillow', [('>=', '9.4.0')]), ('scikit-learn', [('>=', '1.2.2')]), ('fastcluster', [('>=', '1.2.6')]), ('matplotlib', [('>=', '3.7.1')]), ('imageio', [('>=', '2.26.0')]), ('imageio-ffmpeg', [('>=', '0.4.8')]), ('ffmpy', [('>=', '0.3.0')]), ('pywin32', [('>=', '228')]), ('nvidia-ml-py', [('<', '300'), ('>=', '11.525')]), ('tensorflow', [('<', '2.11.0'), ('>=', '2.10.0')])]
06/29/2023 21:49:39 setup            _check_conda_missing_dependencies DEBUG    [('cudnn>=8.0,<9.0', ''), ('git',), ('cudatoolkit>=11.0,<12.0', '')]
06/29/2023 21:49:39 setup            __init__                       INFO     Installing Required Python Packages. This may take some time...
06/29/2023 21:49:39 setup            __init__                       INFO     Installing pywinpty==2.0.2
06/29/2023 21:49:39 setup            __init__                       DEBUG    argv: ['conda', 'install', '-y', 'pywinpty==2.0.2']
06/29/2023 21:49:46 setup            _seen_line_log                 DEBUG    Collecting package metadata (current_repodata.json): ...working... failed
06/29/2023 21:49:46 setup            _seen_line_log                 DEBUG    
06/29/2023 21:49:46 setup            _seen_line_log                 DEBUG    CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to
06/29/2023 21:49:46 setup            _seen_line_log                 DEBUG    download and install packages.
06/29/2023 21:49:46 setup            _seen_line_log                 DEBUG    Exception: HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))
06/29/2023 21:49:46 setup            __call__                       DEBUG    Package: pywinpty==2.0.2, returncode: 1
06/29/2023 21:49:46 setup            _install_setup_packages        ERROR    Unable to install package: pywinpty==2.0.2. Process aborted
Last edited by torzdf on Thu Jun 29, 2023 9:48 pm, edited 1 time in total.
User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: Failed to install pywinpty

Post by torzdf »

You have conflicts on your system. Follow all these steps and it will fix the issue:

app.php/faqpage#f1r1

My word is final

Locked