AlekPet / ComfyUI_Custom_Nodes_AlekPet

Custom nodes that extend the capabilities of Comfyui
MIT License
903 stars 59 forks source link

(IMPORT FAILED) error occured #99

Open lishrliu opened 1 day ago

lishrliu commented 1 day ago

Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [32 lines of output] pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead Traceback (most recent call last): File "/Users/lishrliu/StableDiffusion/ComfyUI/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main()


File "/Users/lishrliu/StableDiffusion/ComfyUI/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/lishrliu/StableDiffusion/ComfyUI/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/37/stln1lj53v7chk_d2n_jnbkm0000gn/T/pip-build-env-gwahmojv/overlay/lib/python3.13/site-packages/sipbuild/api.py", line 28, in build_wheel
project = AbstractProject.bootstrap('wheel',
arguments=_convert_config_settings(config_settings))
File "/private/var/folders/37/stln1lj53v7chk_d2n_jnbkm0000gn/T/pip-build-env-gwahmojv/overlay/lib/python3.13/site-packages/sipbuild/abstract_project.py", line 74, in bootstrap
project.setup(pyproject, tool, tool_description)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/37/stln1lj53v7chk_d2n_jnbkm0000gn/T/pip-build-env-gwahmojv/overlay/lib/python3.13/site-packages/sipbuild/project.py", line 608, in setup
self.apply_user_defaults(tool)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/private/var/folders/37/stln1lj53v7chk_d2n_jnbkm0000gn/T/pip-install-adaci5n2/pyqt5_e94979b37cc644bbbda8fe355b6bb450/project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/private/var/folders/37/stln1lj53v7chk_d2n_jnbkm0000gn/T/pip-build-env-gwahmojv/overlay/lib/python3.13/site-packages/pyqtbuild/project.py", line 51, in apply_user_defaults
super().apply_user_defaults(tool)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/private/var/folders/37/stln1lj53v7chk_d2n_jnbkm0000gn/T/pip-build-env-gwahmojv/overlay/lib/python3.13/site-packages/sipbuild/project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/private/var/folders/37/stln1lj53v7chk_d2n_jnbkm0000gn/T/pip-build-env-gwahmojv/overlay/lib/python3.13/site-packages/pyqtbuild/builder.py", line 50, in apply_user_defaults
raise PyProjectOptionException('qmake',
"specify a working qmake or add it to PATH")
sipbuild.pyproject.PyProjectOptionException
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
### [END] ComfyUI AlekPet Nodes ###
Traceback (most recent call last):
File "/Users/lishrliu/StableDiffusion/ComfyUI/nodes.py", line 2026, in load_custom_node
module_spec.loader.exec_module(module)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/Users/lishrliu/StableDiffusion/ComfyUI/custom_nodes/ComfyUI_Custom_Nodes_AlekPet/__init__.py", line 275, in <module>
from .ArgosTranslateNode.argos_translate_node import (
...<2 lines>...
)
File "/Users/lishrliu/StableDiffusion/ComfyUI/custom_nodes/ComfyUI_Custom_Nodes_AlekPet/ArgosTranslateNode/argos_translate_node.py", line 4, in <module>
import argostranslate.package
ModuleNotFoundError: No module named 'argostranslate'

Cannot import /Users/lishrliu/StableDiffusion/ComfyUI/custom_nodes/ComfyUI_Custom_Nodes_AlekPet module for custom nodes: No module named 'argostranslate'

Import times for custom nodes:

5.8 seconds (IMPORT FAILED): /Users/lishrliu/StableDiffusion/ComfyUI/custom_nodes/ComfyUI_Custom_Nodes_AlekPet

WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.

IMPORT FAILED: nodes_canny.py
IMPORT FAILED: nodes_morphology.py
AlekPet commented 1 day ago

Hi, I already answered a similar question https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/issues/93#issuecomment-2488299156