ltdrdata / ComfyUI-Manager

ComfyUI-Manager is an extension designed to enhance the usability of ComfyUI. It offers management functions to install, remove, disable, and enable various custom nodes of ComfyUI. Furthermore, this extension provides a hub feature and convenience functions to access a wide range of information within ComfyUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prestartup_script.py fails on windows when running without Admin privilege

DukeSniper opened this issue · comments

`C:\stable\ComfyUI>python main.py

## ComfyUI-Manager: installing dependencies. (GitPython)
ERROR: Could not install packages due to an OSError: [WinError 5] Access denied: 'C:\\Program Files\\Python312\\Lib\\site-packages\\wrapt'
Consider using the `--user` option or check the permissions.

Failed to execute startup-script: C:\stable\ComfyUI\custom_nodes\ComfyUI-Manager\prestartup_script.py / Command '['C:\\Program Files\\Python312\\python.exe', '-s', '-m', 'pip', 'install', '-r', 'C:\\stable\\ComfyUI\\custom_nodes\\ComfyUI-Manager\\requirements.txt']' returned non-zero exit status 1.

From what I can see in the code and gathered from check_output documentation, it raises an exception that the code fails to catch. Currently working on a fix in my fork, will submit PR again when done. Already managed to catch the initial exception due to missing permissions, but there's still an issue with the import git when there's no actual git client installed on the system

Thank you for the patch.