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

Command '['where', 'cl']' returned non-zero exit status 1. #6

Closed
azra1l opened this issue Mar 31, 2024 · 6 comments
Closed

Command '['where', 'cl']' returned non-zero exit status 1. #6

azra1l opened this issue Mar 31, 2024 · 6 comments

Comments

@azra1l
Copy link

azra1l commented Mar 31, 2024

When i start ComfyUI, i get this error:

INFORMATION: Es konnten keine Dateien mit dem angegebenen
Muster gefunden werden.
Traceback (most recent call last):
File "C:\Tools\ComfyUI\nodes.py", line 1888, 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:\Tools\ComfyUI\custom_nodes\human-parser-comfyui-node_init
.py", line 1, in
from .HumanParserLIPCustomNode import HumanParserLIPCustomNode
File "C:\Tools\ComfyUI\custom_nodes\human-parser-comfyui-node\HumanParserLIPCustomNode.py", line 5, in
from .utils import generate
File "C:\Tools\ComfyUI\custom_nodes\human-parser-comfyui-node\utils.py", line 8, in
from .schp import networks
File "C:\Tools\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\networks_init_.py", line 3, in
from .AugmentCE2P import resnet101
File "C:\Tools\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\networks\AugmentCE2P.py", line 21, in
from ..modules import InPlaceABNSync
File "C:\Tools\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules_init_.py", line 1, in
from .bn import ABN, InPlaceABN, InPlaceABNSync
File "C:\Tools\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\bn.py", line 10, in
from .functions import *
File "C:\Tools\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\functions.py", line 12, in
_backend = load(name="inplace_abn",
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Tools\Python\311\Lib\site-packages\torch\utils\cpp_extension.py", line 1306, in load
return _jit_compile(
^^^^^^^^^^^^^
File "C:\Tools\Python\311\Lib\site-packages\torch\utils\cpp_extension.py", line 1710, in _jit_compile
_write_ninja_file_and_build_library(
File "C:\Tools\Python\311\Lib\site-packages\torch\utils\cpp_extension.py", line 1810, in _write_ninja_file_and_build_library
_write_ninja_file_to_build_library(
File "C:\Tools\Python\311\Lib\site-packages\torch\utils\cpp_extension.py", line 2238, in _write_ninja_file_to_build_library
_write_ninja_file(
File "C:\Tools\Python\311\Lib\site-packages\torch\utils\cpp_extension.py", line 2373, in _write_ninja_file
cl_paths = subprocess.check_output(['where',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Tools\Python\311\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Tools\Python\311\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.

Cannot import C:\Tools\ComfyUI\custom_nodes\human-parser-comfyui-node module for custom nodes: Command '['where', 'cl']' returned non-zero exit status 1.

I've put the 3 models under ComfyUI\models\schp without renaming them.
I even manually installed requirements, there's nothing missing.

@azra1l azra1l changed the title Another startup error Command '['where', 'cl']' returned non-zero exit status 1. Mar 31, 2024
@azra1l
Copy link
Author

azra1l commented Mar 31, 2024

Ok, i fixed it.
Following through on the other error reports, it appears my problem was lacking access to cl.exe.
So i lookup up where cl.exe is installed and added that path to my path environment variable. Probably not an ideal approach, as the path appears to change per release. Using the dev console might be the better option, as that automatically adds every path it needs, including to the cl.exe.

@jags111
Copy link

jags111 commented Mar 31, 2024

Traceback (most recent call last):
  File "D:\AI\comfyUI\nodes.py", line 1888, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\AI\ComfyUI\custom_nodes\human-parser-comfyui-node\__init__.py", line 1, in <module>
    from .HumanParserLIPCustomNode import HumanParserLIPCustomNode
  File "D:\AI\ComfyUI\custom_nodes\human-parser-comfyui-node\HumanParserLIPCustomNode.py", line 5, in <module>
    from .utils import generate
  File "D:\AI\ComfyUI\custom_nodes\human-parser-comfyui-node\utils.py", line 8, in <module>
    from .schp import networks
  File "D:\AI\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\networks\__init__.py", line 3, in <module>
    from .AugmentCE2P import resnet101
  File "D:\AI\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\networks\AugmentCE2P.py", line 21, in <module>
    from ..modules import InPlaceABNSync
  File "D:\AI\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\__init__.py", line 1, in <module>
    from .bn import ABN, InPlaceABN, InPlaceABNSync
  File "D:\AI\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\bn.py", line 10, in <module>
    from .functions import *
  File "D:\AI\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\functions.py", line 12, in <module>
    _backend = load(name="inplace_abn",
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\comfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 1306, in load
    return _jit_compile(
           ^^^^^^^^^^^^^
  File "D:\AI\comfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 1710, in _jit_compile
    _write_ninja_file_and_build_library(
  File "D:\AI\comfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 1810, in _write_ninja_file_and_build_library
    _write_ninja_file_to_build_library(
  File "D:\AI\comfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 2238, in _write_ninja_file_to_build_library
    _write_ninja_file(
  File "D:\AI\comfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 2373, in _write_ninja_file
    cl_paths = subprocess.check_output(['where',
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python311\Lib\subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python311\Lib\subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.

Cannot import D:\AI\ComfyUI\custom_nodes\human-parser-comfyui-node module for custom nodes: Command '['where', 'cl']' returned non-zero exit status 1.

How do  I resolve this issue in windows version of comfyUI which is standalone one .. All steps were done but still this error is not going away. Please advise

@azra1l
Copy link
Author

azra1l commented Mar 31, 2024

read my second comment.

you also need to install visual studio build tools first. and CUDA (i guess).

@azra1l azra1l closed this as completed Mar 31, 2024
@jags111
Copy link

jags111 commented Mar 31, 2024

all are already installed and running without any hassles. VS build tools already exist and the issue is still not clear

@azra1l
Copy link
Author

azra1l commented Mar 31, 2024

so, if you open command prompt and enter cl.exe, what happens?

@gabidobo
Copy link
Member

gabidobo commented Apr 2, 2024

@azra1l happy you managed to get it working!

@jags111 did you also figure it out?

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

3 participants