Closed Njasa2k closed 1 year ago
Are you using the ComfyUI Windows Portable? Because your installation process is quoting your system python, not the ComfyUI python located in ComfyUI_windows_portable\python_embeded\python.exe
There is a install.bat
you can try inside was-node-suite-comfyui if the installation instructions are confusing.
The install.bat ended with this error message:
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [47 lines of output]
The Meson build system
Version: 0.62.2
Source dir: C:\Users\*****\AppData\Local\Temp\pip-install-jqz4bk6m\scipy_dca9bddb28f54c5fb5aa89b4fb8a8767
Build dir: C:\Users\*****\AppData\Local\Temp\pip-install-jqz4bk6m\scipy_dca9bddb28f54c5fb5aa89b4fb8a8767\.mesonpy-8v6_e9mq\build
Build type: native build
Project name: SciPy
Project version: 1.9.1
Activating VS 17.6.4
..\..\meson.build:1:0: ERROR: Compiler cl can not compile programs.
A full log can be found at C:\Users\*****\AppData\Local\Temp\pip-install-jqz4bk6m\scipy_dca9bddb28f54c5fb5aa89b4fb8a8767\.mesonpy-8v6_e9mq\build\meson-logs\meson-log.txt
+ meson setup --native-file=C:\Users\*****\AppData\Local\Temp\pip-install-jqz4bk6m\scipy_dca9bddb28f54c5fb5aa89b4fb8a8767\.mesonpy-native-file.ini -Ddebug=false -Doptimization=2 --prefix=C:\Users\*****\AppData\Local\Programs\Python\Python311 C:\Users\*****\AppData\Local\Temp\pip-install-jqz4bk6m\scipy_dca9bddb28f54c5fb5aa89b4fb8a8767 C:\Users\*****\AppData\Local\Temp\pip-install-jqz4bk6m\scipy_dca9bddb28f54c5fb5aa89b4fb8a8767\.mesonpy-8v6_e9mq\build
Traceback (most recent call last):
File "C:\Users\*****\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\*****\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\*****\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\*****\AppData\Local\Temp\pip-build-env-40o3pzqx\overlay\Lib\site-packages\mesonpy\__init__.py", line 969, in get_requires_for_build_wheel
with _project(config_settings) as project:
File "C:\Users\*****\AppData\Local\Programs\Python\Python311\Lib\contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "C:\Users\*****\AppData\Local\Temp\pip-build-env-40o3pzqx\overlay\Lib\site-packages\mesonpy\__init__.py", line 948, in _project
with Project.with_temp_working_dir(
File "C:\Users\*****\AppData\Local\Programs\Python\Python311\Lib\contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "C:\Users\*****\AppData\Local\Temp\pip-build-env-40o3pzqx\overlay\Lib\site-packages\mesonpy\__init__.py", line 777, in with_temp_working_dir
yield cls(source_dir, tmpdir, build_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\*****\AppData\Local\Temp\pip-build-env-40o3pzqx\overlay\Lib\site-packages\mesonpy\__init__.py", line 682, in __init__
self._configure(reconfigure=bool(build_dir) and not native_file_mismatch)
File "C:\Users\*****\AppData\Local\Temp\pip-build-env-40o3pzqx\overlay\Lib\site-packages\mesonpy\__init__.py", line 713, in _configure
self._meson(
File "C:\Users\*****\AppData\Local\Temp\pip-build-env-40o3pzqx\overlay\Lib\site-packages\mesonpy\__init__.py", line 696, in _meson
return self._proc('meson', *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\*****\AppData\Local\Temp\pip-build-env-40o3pzqx\overlay\Lib\site-packages\mesonpy\__init__.py", line 691, in _proc
subprocess.check_call(list(args))
File "C:\Users\*****\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['meson', 'setup', '--native-file=C:\\Users\\*****\\AppData\\Local\\Temp\\pip-install-jqz4bk6m\\scipy_dca9bddb28f54c5fb5aa89b4fb8a8767\\.mesonpy-native-file.ini', '-Ddebug=false', '-Doptimization=2', '--prefix=C:\\Users\\*****\\AppData\\Local\\Programs\\Python\\Python311', 'C:\\Users\\*****\\AppData\\Local\\Temp\\pip-install-jqz4bk6m\\scipy_dca9bddb28f54c5fb5aa89b4fb8a8767', 'C:\\Users\\*****\\AppData\\Local\\Temp\\pip-install-jqz4bk6m\\scipy_dca9bddb28f54c5fb5aa89b4fb8a8767\\.mesonpy-8v6_e9mq\\build']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
It's still seems to be installing stuff to system. Is your Scripts path in python embedded in your environment PATHS var? Are you not using the portable ComfyUi? Otherwise you have to compile and build these binaries for your system manually.
This error occurs when trying to use the WAS Node Suite in Linux. Spent several days figuring out what the problem was. Turns out, the issue is that the package "scipy-1.9.1.tar.gz" is incompatible with Python versions newer than 3.10, while most recent Linux distributions typically use Python 3.11.x.
The solution is to use Conda to create a virtual environment with a downgraded Python version. Here's how it looks:
_conda create -n oldpython python=3.10
Then, activate the environment:
_conda activate oldpython
Next, inside the "/ComfyUI/custom_nodes/was-node-suite-comfyui" directory, run:
pip3 install -r requirements.txt
Also, make sure to run ComfyUI within this environment to use the WAS Node Suite. Before that, run:
pip3 install -r requirements.txt
If you don't need the WAS Node Suite, you can use the base Linux environment with the latest Python version. To do this, run:
conda deactivate
Enjoy! :)
This error occurs when trying to use the WAS Node Suite in Linux. Spent several days figuring out what the problem was. Turns out, the issue is that the package "scipy-1.9.1.tar.gz" is incompatible with Python versions newer than 3.10, while most recent Linux distributions typically use Python 3.11.x.
The solution is to use Conda to create a virtual environment with a downgraded Python version. Here's how it looks:
_conda create -n oldpython python=3.10
Then, activate the environment:
_conda activate oldpython
Next, inside the "/ComfyUI/custom_nodes/was-node-suite-comfyui" directory, run:
pip3 install -r requirements.txt
Also, make sure to run ComfyUI within this environment to use the WAS Node Suite. Before that, run:
pip3 install -r requirements.txt
If you don't need the WAS Node Suite, you can use the base Linux environment with the latest Python version. To do this, run:
conda deactivate
Enjoy! :)
Will this work with windows?
I think yes, to do this, you need to install Conda for Windows.
https://docs.conda.io/projects/conda/en/latest/user-guide/install/windows.html
The commands may vary, but the principle remains the same.
This is a common issue installing to system Python on Windows, without having the build tools to do so. ComfyUI Portable ships with these tools you need. I don't support manual installations because that means supporting various compilation and building method on various OSes, which even changes on different systems and software versions. Just a hassle.