Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors “File not found” at first launch #3576

Open
4 of 5 tasks
dgapbdRvJV opened this issue Aug 29, 2024 · 1 comment
Open
4 of 5 tasks

Errors “File not found” at first launch #3576

dgapbdRvJV opened this issue Aug 29, 2024 · 1 comment
Labels
bug Something isn't working triage This needs an (initial) review

Comments

@dgapbdRvJV
Copy link

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?

I downloaded Fooocus from GitHub, went into the folder and opened run.bat. The terminal appeared with errors.

screenshot

I tried doing it all over again: I deleted the folder and downloaded Fooocus again from GitHub. The error is repeated. I read troubleshoot.md. Tried doing something with System Swap. Tried running run.bat with and without VPN if suddenly my carrier blocks the download. Looked for a problem in the Issue section. Nothing helped.

Steps to reproduce the problem

Download Fooocus and run run.bat

What should have happened?

Fooocus should download the files for the first run

What browsers do you use to access Fooocus?

Other

Where are you running Fooocus?

Locally

What operating system are you using?

Windows 11

Console logs

C:\Users\krl\Desktop\Fooocus_win64_2-5-0>.\python_embeded\python.exe -s Fooocus\entry_with_update.py
Update failed.
failed to create temporary file 'C:/Users/krl/Desktop/Fooocus_win64_2-5-0/Fooocus/.git/objects/pack/pack_git2_17f489c08910c7d1': Не удается найти указанный файл.

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.0
Error checking version for opencv-contrib-python-headless: No package metadata was found for opencv-contrib-python-headless
Installing requirements
Couldn't install requirements.
Command: "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\python_embeded\python.exe" -m pip install -r "requirements_versions.txt" --prefer-binary
Error code: 2
stderr: ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\pip\_internal\cli\base_command.py", line 179, in exc_logging_wrapper
    status = run_func(*args)
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
    return func(self, options, args)
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\pip\_internal\commands\install.py", line 294, in run
    options.use_user_site = decide_user_install(
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\pip\_internal\commands\install.py", line 712, in decide_user_install
    if site_packages_writable(root=root_path, isolated=isolated_mode):
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\pip\_internal\commands\install.py", line 656, in site_packages_writable
    return all(
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\pip\_internal\commands\install.py", line 657, in <genexpr>
    test_writable_dir(d)
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\pip\_internal\utils\filesystem.py", line 91, in test_writable_dir
    return _test_writable_dir_win(path)
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\python_embeded\lib\site-packages\pip\_internal\utils\filesystem.py", line 103, in _test_writable_dir_win
    fd = os.open(file, os.O_RDWR | os.O_CREAT | os.O_EXCL)
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\krl\\Desktop\\Fooocus_win64_2-5-0\\python_embeded\\Lib\\site-packages\\accesstest_deleteme_fishfingers_custard_z3exya'

[notice] A new release of pip is available: 24.1.2 -> 24.2
[notice] To update, run: C:\Users\krl\Desktop\Fooocus_win64_2-5-0\python_embeded\python.exe -m pip install --upgrade pip

CMD Failed requirements: install -r "requirements_versions.txt"
Traceback (most recent call last):
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\Fooocus\entry_with_update.py", line 46, in <module>
    from launch import *
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\Fooocus\launch.py", line 87, in <module>
    from modules import config
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\Fooocus\modules\config.py", line 203, in <module>
    path_sam = get_dir_or_set_default('path_sam', '../models/sam/')
  File "C:\Users\krl\Desktop\Fooocus_win64_2-5-0\Fooocus\modules\config.py", line 184, in get_dir_or_set_default
    os.makedirs(dp, exist_ok=True)
  File "os.py", line 225, in makedirs
FileNotFoundError: [WinError 2] Не удается найти указанный файл: 'C:\\Users\\krl\\Desktop\\Fooocus_win64_2-5-0\\Fooocus\\models\\sam'

C:\Users\krl\Desktop\Fooocus_win64_2-5-0>pause
Для продолжения нажмите любую клавишу . . .

Additional information

No response

@dgapbdRvJV dgapbdRvJV added bug Something isn't working triage This needs an (initial) review labels Aug 29, 2024
@Vic3Q
Copy link

Vic3Q commented Aug 29, 2024

I didn't use Fooocus for some time and today when I launched it, it started the update process and also having issue with missing "requirements_versions.txt" file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This needs an (initial) review
Projects
None yet
Development

No branches or pull requests

2 participants