Closed sputtering closed 7 months ago
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'D:\AI-Art\Fooocus-mashb1t\python_embeded\Lib\site-packages\cv2\cv2.pyd' Consider using the
--user
option or check the permissions.
Seems like you're having a permission issue.
Please execute "D:\AI-Art\Fooocus-mashb1t\python_embeded\python.exe" -m pip install -r "requirements_versions.txt" --prefer-binary --user
and check the output.
@sputtering did you have any luck with the suggested command?
Closing as stale for now, feel free to provide more information.
@mashb1t I did run the pip install command, and it did look like it installed some missing modules, including diffusers-0.25.1 However, when I run, I still get errors related to diffusers:
Fooocus version: 2.1.864 Error checking version for diffusers: No package metadata was found for diffusers Installing requirements
Requested to load GPT2LMHeadModel
Loading 2 new models
Exception in thread Thread-4 (worker):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "D:\AI-Art\Fooocus-mashb1t\Fooocus\modules\async_worker.py", line 46, in worker
from modules.censor import censor_batch
File "D:\AI-Art\Fooocus-mashb1t\Fooocus\modules\censor.py", line 4, in
@sputtering i followed the exact same steps and i'm getting the same error even after runniong the pip install command
Looking into this now
Solution:
..\python_embeded\python.exe -m pip install -r "requirements_versions.txt"
Please find the installation instructions in the new release https://github.com/mashb1t/Fooocus/releases/tag/2.1.864 See also https://github.com/mashb1t/Fooocus?tab=readme-ov-file#switching-from-fooocus-to-this-fork
It still did not work for me. But I fixed it by deleting the whole directory and using the 7z file you posted in the other link. Once I did that, I was able to generate a few images without issue. I'll follow up if something else breaks, but I think we are good for now.
Prerequisites
Describe the problem
Full console log output
Version
Fooocus 2.1,864
Where are you running Fooocus?
Locally
Operating System
Windows 10
What browsers are you seeing the problem on?
Chrome