Skip to content

[Bug]: I seem to be getting an error when running the program OSError: [WinError 193] %1 is not a valid Win32 application. #4072

@SamCantCode2

Description

@SamCantCode2

Checklist

  • The issue has not been resolved by following the troubleshooting guide
  • The issue exists on a clean installation of Fooocus
  • The issue exists in the current version of Fooocus
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

Everytime I try to run the run file I get this error and I'm not sure why

Steps to reproduce the problem

  1. Install Fooocus
  2. Extract
  3. Run

What should have happened?

Ideally I should be seeing the models download but they don't happen

What browsers do you use to access Fooocus?

Brave

Where are you running Fooocus?

Locally

What operating system are you using?

No response

Console logs

C:\Users\Samhruth\Documents\StableDiff\Fooocus_win64_2-5-0\Fooocus_win64_2-5-0>.\python_embeded\python.exe -s Fooocus\entry_with_update.py
Already up-to-date
Update succeeded.
[System ARGV] ['Fooocus\\entry_with_update.py']
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Fooocus version: 2.5.5
[Cleanup] Attempting to delete content of temp dir C:\Users\Samhruth\AppData\Local\Temp\fooocus
[Cleanup] Cleanup successful
Downloading: "https://huggingface.co/mashb1t/misc/resolve/main/xl-to-v1_interposer-v4.0.safetensors" to C:\Users\Samhruth\Documents\StableDiff\Fooocus_win64_2-5-0\Fooocus_win64_2-5-0\Fooocus\models\vae_approx\xl-to-v1_interposer-v4.0.safetensors

Traceback (most recent call last):
  File "C:\Users\Samhruth\Documents\StableDiff\Fooocus_win64_2-5-0\Fooocus_win64_2-5-0\Fooocus\entry_with_update.py", line 46, in <module>
    from launch import *
  File "C:\Users\Samhruth\Documents\StableDiff\Fooocus_win64_2-5-0\Fooocus_win64_2-5-0\Fooocus\launch.py", line 145, in <module>
    config.default_base_model_name, config.checkpoint_downloads = download_models(
  File "C:\Users\Samhruth\Documents\StableDiff\Fooocus_win64_2-5-0\Fooocus_win64_2-5-0\Fooocus\launch.py", line 107, in download_models
    load_file_from_url(url=url, model_dir=config.path_vae_approx, file_name=file_name)
  File "C:\Users\Samhruth\Documents\StableDiff\Fooocus_win64_2-5-0\Fooocus_win64_2-5-0\Fooocus\modules\model_loader.py", line 26, in load_file_from_url
    from torch.hub import download_url_to_file
  File "C:\Users\Samhruth\Documents\StableDiff\Fooocus_win64_2-5-0\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\torch\__init__.py", line 128, in <module>
    raise err
OSError: [WinError 193] %1 is not a valid Win32 application. Error loading "C:\Users\Samhruth\Documents\StableDiff\Fooocus_win64_2-5-0\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\torch\lib\cufft64_11.dll" or one of its dependencies.

C:\Users\Samhruth\Documents\StableDiff\Fooocus_win64_2-5-0\Fooocus_win64_2-5-0>pause
Press any key to continue . . .

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis needs an (initial) review

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions