ITADN

Hiddenswitch installation doesnt seem to work with python3.11

#45OpenJJassonn69 创建于 2025-09-22
J
JJassonn69commented
### Custom Node Testing - [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help) ### Your question Hiddenswitch is incompatible with python3.11.13. Getting error when starting [comfystream](https://github.com/livepeer/comfystream/pull/413) by importing the `comfy/client/async_progress_iterable.py` file. Looks like the `@override` feature is only on 3.12 https://gokulnath-dev.medium.com/python-3-12-override-for-static-typing-2229d5e5645f ### Logs ```powershell (comfystream) root@ef3eec815355:/workspace/comfystream/server# python3 app.py --workspace=/workspace/ComfyUI --media-ports=5678 --host=0.0.0.0 --port=8889 --log-level=INFO --comfyui-inference-log-level=DEBUG /workspace/miniconda3/envs/comfystream/lib/python3.11/site-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you. import pynvml # type: ignore[import] /workspace/miniconda3/envs/comfystream/lib/python3.11/site-packages/opentelemetry/instrumentation/dependencies.py:4: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. from pkg_resources import ( Traceback (most recent call last): File "/workspace/comfystream/server/app.py", line 26, in <module> from comfystream.pipeline import Pipeline File "/workspace/comfystream/src/comfystream/__init__.py", line 1, in <module> from .client import ComfyStreamClient File "/workspace/comfystream/src/comfystream/client.py", line 10, in <module> from comfy.client.embedded_comfy_client import EmbeddedComfyClient File "/workspace/miniconda3/envs/comfystream/lib/python3.11/site-packages/comfy/client/embedded_comfy_client.py", line 19, in <module> from .async_progress_iterable import _ProgressHandler, QueuePromptWithProgress File "/workspace/miniconda3/envs/comfystream/lib/python3.11/site-packages/comfy/client/async_progress_iterable.py", line 4, in <module> from typing import override, NamedTuple, Optional, AsyncIterable ImportError: cannot import name 'override' from 'typing' (/workspace/miniconda3/envs/comfystream/lib/python3.11/typing.py) (comfystream) root@ef3eec815355:/workspace/ComfyUI# python3 Python 3.11.13 | packaged by conda-forge | (main, Jun 4 2025, 14:48:23) [GCC 13.3.0] on linux ``` ### Other _No response_
1 条评论