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

NotADirectoryError: [WinError 267] The directory name is invalid #3534

Closed
BenDes21 opened this issue May 21, 2024 · 4 comments
Closed

NotADirectoryError: [WinError 267] The directory name is invalid #3534

BenDes21 opened this issue May 21, 2024 · 4 comments

Comments

@BenDes21
Copy link

Hello there, I get this error when I try to update all my nodes, anyone know where its can from ? Thanks

Update ComfyUI
comfy_path: C:\Users\Admin\Documents\Stable diffusion\ComfyUI
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\commands\freeze.py", line 98, in run
for line in freeze(
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\freeze.py", line 43, in freeze
req = FrozenRequirement.from_dist(dist)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\freeze.py", line 238, in from_dist
req, comments = _get_editable_info(dist)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\freeze.py", line 165, in _get_editable_info
vcs_backend = vcs.get_backend_for_dir(location)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\vcs\versioncontrol.py", line 238, in get_backend_for_dir
repo_path = vcs_backend.get_repository_root(location)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\vcs\git.py", line 501, in get_repository_root
r = cls.run_command(
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\vcs\versioncontrol.py", line 650, in run_command
return call_subprocess(
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\utils\subprocess.py", line 141, in call_subprocess
proc = subprocess.Popen(
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1456, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
NotADirectoryError: [WinError 267] The directory name is invalid

@NeedsMoar
Copy link

Probably trying to run as the Admin user on Windows?

@WainWong
Copy link

WainWong commented Jun 8, 2024

same

@mcmonkey4eva
Copy link
Collaborator

This is an issue with pip/python/windows, not ComfyUI

@ltdrdata
Copy link
Contributor

ltdrdata commented Jun 8, 2024

I recommend that move C:\Users\Admin\Documents\Stable diffusion\ComfyUI to C:\ComfyUI
If the path contains blanks or special characters, it often causes problems. In particular, on Windows, the length of the path frequently also causes issues.

And it seems that you are using the system Python, which you shouldn't do. Set up a venv or use a portable version instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants