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

comfyui-art-venture module for custom nodes: cannot import name 'ImpImporter' from 'pkgutil' #59

Open
xingzhaoyang opened this issue Nov 22, 2024 · 3 comments

Comments

@xingzhaoyang
Copy link

Adding F:\ComfyUI_windows_portable\ComfyUI\custom_nodes to sys.path
Traceback (most recent call last):
File "F:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2024, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 995, in exec_module
File "", line 488, in call_with_frames_removed
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture_init
.py", line 13, in
from .modules.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\nodes.py", line 12, in
from .utility_nodes import (
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\utility_nodes.py", line 17, in
from .utils import pil2tensor, tensor2pil, ensure_package, get_dict_attribute
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\utils.py", line 9, in
import pkg_resources
File "F:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pkg_resources_init_.py", line 43, in
from pkgutil import ImpImporter
ImportError: cannot import name 'ImpImporter' from 'pkgutil' (F:\ComfyUI_windows_portable\python_embeded\python312.zip\pkgutil.pyc). Did you mean: 'zipimporter'?

Cannot import F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture module for custom nodes: cannot import name 'ImpImporter' from 'pkgutil'

@Arshitecture
Copy link

I have the same problem here; even I tried to update my Pip and Python.

@xingzhaoyang
Copy link
Author

I have the same problem here; even I tried to update my Pip and Python.

Problem solved?

@Arshitecture
Copy link

Yes, I just updated my pip for Python 3.12 ( and you need to update the pip for embedded Python).

check this: https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean

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

2 participants