Open aicoder2048 opened 8 months ago
i found the problem.
I manually deleted "ComfyUI-DiffusersStableCascade", because it was not supported by newly updated ComfyUI. This is causing pip freeze (executed by was node suite) to fail and subsequently to fail import this node.
The fix is simply “pip uninstall diffusers”
diffusers 0.27.0.dev0 C:\Apps\ComfyUI\ComfyUI\custom_nodes\ComfyUI-DiffusersStableCascade\src\diffusers
chow ...
Sounds like it was conflict in packages and environments
On Sun, Feb 25, 2024, 4:48 PM Sean @.***> wrote:
i found the problem.
I manually deleted "ComfyUI-DiffusersStableCascade", because it was not supported by newly updated ComfyUI. This is causing pip freeze (executed by was node suite) to fail and subsequently to fail import this node.
The fix is simply “pip uninstall diffusers”
diffusers 0.27.0.dev0 C:\Apps\ComfyUI\ComfyUI\custom_nodes\ComfyUI-DiffusersStableCascade\src\diffusers
chow ...
— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/was-node-suite-comfyui/issues/347#issuecomment-1963136362, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZEZMPYAFQIK7D3V5J6VTYVPLWBAVCNFSM6AAAAABDVSUVGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRTGEZTMMZWGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I fixed this.
I modify pip freeze to pip list, and the error skiped.
return [( r.decode().split('==')[0] if not versions else r.decode() ) for r in subprocess.check_output([sys.executable, '-s', '-m', 'pip', 'freeze']).split()]
changed to
return [( r.decode().split('==')[0] if not versions else r.decode() ) for r in subprocess.check_output([sys.executable, '-s', '-m', 'pip', 'list']).split()]
That would break all packages checks though.
On Wed, Feb 28, 2024, 7:54 PM bingwei @.***> wrote:
I fixed this. I modify pip freeze to pip list, and the error skiped. return [( r.decode().split('==')[0] if not versions else r.decode() ) for r in subprocess.check_output([sys.executable, '-s', '-m', 'pip', 'freeze']).split()] changed to return [( r.decode().split('==')[0] if not versions else r.decode() ) for r in subprocess.check_output([sys.executable, '-s', '-m', 'pip', 'list']).split()]
— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/was-node-suite-comfyui/issues/347#issuecomment-1970350189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZEZMAUXJUF4IBXIPD23TYV2S55AVCNFSM6AAAAABDVSUVGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZQGM2TAMJYHE . You are receiving this because you commented.Message ID: @.***>
I fixed this. I modify pip freeze to pip list, and the error skiped.
return [( r.decode().split('==')[0] if not versions else r.decode() ) for r in subprocess.check_output([sys.executable, '-s', '-m', 'pip', 'freeze']).split()]
changed toreturn [( r.decode().split('==')[0] if not versions else r.decode() ) for r in subprocess.check_output([sys.executable, '-s', '-m', 'pip', 'list']).split()]
thank you i fixed too, just need change "freeze" to "list", in WAS_Node_Suite.py
It doesn't fix it. It breaks all checks. It's a different format that the code isn't setup to decode.
I made an update on comfyui and nodes, then I somehow fail to load the was-node-suite-comfyui node. I got the following error, and have no clue how to fix it.
Maybe someone with extensive experience could come to help, thanks a lot !
ERROR: Exception: Traceback (most recent call last): File "C:\Users\sean2092\miniconda3\envs\ComfyUI\Lib\site-packages\pip_internal\cli\base_command.py", line 180, in exc_logging_wrapper status = run_func(args) ^^^^^^^^^^^^^^^ File "C:\Users\sean2092\miniconda3\envs\ComfyUI\Lib\site-packages\pip_internal\commands\freeze.py", line 98, in run for line in freeze( File "C:\Users\sean2092\miniconda3\envs\ComfyUI\Lib\site-packages\pip_internal\operations\freeze.py", line 43, in freeze req = FrozenRequirement.from_dist(dist) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\sean2092\miniconda3\envs\ComfyUI\Lib\site-packages\pip_internal\operations\freeze.py", line 238, in from_dist req, comments = _get_editable_info(dist) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\sean2092\miniconda3\envs\ComfyUI\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\sean2092\miniconda3\envs\ComfyUI\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\sean2092\miniconda3\envs\ComfyUI\Lib\site-packages\pip_internal\vcs\git.py", line 501, in get_repository_root r = cls.run_command( ^^^^^^^^^^^^^^^^ File "C:\Users\sean2092\miniconda3\envs\ComfyUI\Lib\site-packages\pip_internal\vcs\versioncontrol.py", line 650, in run_command return call_subprocess( ^^^^^^^^^^^^^^^^ File "C:\Users\sean2092\miniconda3\envs\ComfyUI\Lib\site-packages\pip_internal\utils\subprocess.py", line 141, in call_subprocess proc = subprocess.Popen( ^^^^^^^^^^^^^^^^^ File "C:\Users\sean2092\miniconda3\envs\ComfyUI\Lib\subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\sean2092\miniconda3\envs\ComfyUI\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NotADirectoryError: [WinError 267] 目录名称无效。 Traceback (most recent call last): File "C:\Apps\ComfyUI\ComfyUI\nodes.py", line 1887, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Apps\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui__init__.py", line 1, in
from .WAS_Node_Suite import NODE_CLASS_MAPPINGS
File "C:\Apps\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 14103, in
if 'opencv-python' in packages() or 'opencv-python-headless' in packages():
^^^^^^^^^^
File "C:\Apps\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 336, in packages
return [( r.decode().split('==')[0] if not versions else r.decode() ) for r in subprocess.check_output([sys.executable, '-s', '-m', 'pip', 'freeze']).split()]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sean2092\miniconda3\envs\ComfyUI\Lib\subprocess.py", line 466, in check_output
return run( popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sean2092\miniconda3\envs\ComfyUI\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\Users\sean2092\miniconda3\envs\ComfyUI\python.exe', '-s', '-m', 'pip', 'freeze']' returned non-zero exit status 2.
Cannot import C:\Apps\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui module for custom nodes: Command '['C:\Users\sean2092\miniconda3\envs\ComfyUI\python.exe', '-s', '-m', 'pip', 'freeze']' returned non-zero exit status 2.