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

Error occurred when executing Yoloworld_ESAM_Zho: cannot import name 'packaging' from 'pkg_resources' #79

Open
hong2610 opened this issue Jul 18, 2024 · 4 comments

Comments

@hong2610
Copy link

think you.
屏幕截图 2024-07-18 141006

@neozbr
Copy link

neozbr commented Jul 22, 2024

I've got exactly same error too...

@huangkun1985
Copy link

`requirements: Ultralytics requirement ['git+https://github.com/ultralytics/CLIP.git'] not found, attempting AutoUpdate...
Running command git clone --filter=blob:none --quiet https://github.com/ultralytics/CLIP.git 'D:\Temp\pip-req-build-q4n_pb7x'

[notice] A new release of pip is available: 24.0 -> 24.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip
requirements: AutoUpdate success ✅ 35.8s, installed 1 package: ['git+https://github.com/ultralytics/CLIP.git']
requirements: ⚠️ Restart runtime or rerun command for updates to take effect

!!! Exception during processing!!! cannot import name 'packaging' from 'pkg_resources' (D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pkg_resources_init_.py)
Traceback (most recent call last):
File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\ultralytics\nn\tasks.py", line 570, in set_classes
import clip
File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\clip_init_.py", line 1, in
from .clip import *
File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\clip\clip.py", line 6, in
from pkg_resources import packaging
ImportError: cannot import name 'packaging' from 'pkg_resources' (D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pkg_resources_init_.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-YoloWorld-EfficientSAM\YOLO_WORLD_EfficientSAM.py", line 139, in yoloworld_esam_image
YOLO_WORLD_MODEL.set_classes(categories)
File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\inference\models\yolo_world\yolo_world.py", line 133, in set_classes
self.model.set_classes(text)
File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\ultralytics\models\yolo\model.py", line 97, in set_classes
self.model.set_classes(classes)
File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\ultralytics\nn\tasks.py", line 573, in set_classes
import clip
File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\clip_init_.py", line 1, in
from .clip import *
File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\clip\clip.py", line 6, in
from pkg_resources import packaging
ImportError: cannot import name 'packaging' from 'pkg_resources' (D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pkg_resources_init_.py)

Prompt executed in 36.68 seconds`

@huangkun1985
Copy link

think you. 屏幕截图 2024-07-18 141006

same here.

@WeiYang1982
Copy link

the same to me

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

4 participants