GraftingRayman / ComfyUI_GraftingRayman

A bunch of image manipulation nodes
https://github.com/GraftingRayman/ComfyUI_GraftingRayman
GNU General Public License v3.0
51 stars 2 forks source link

IMPORT FAILED: cannot import name 'packaging' from 'pkg_resources' #6

Closed RGX650 closed 4 months ago

RGX650 commented 4 months ago

Cannot import C:\AI\COMFYUI\ComfyUI\custom_nodes\ComfyUI_GraftingRayman module for custom nodes: cannot import name 'packaging' from 'pkg_resources' (C:\AI\COMFYUI\ComfyUI\venv\lib\site-packages\pkg_resources__init__.py)

GraftingRayman commented 4 months ago

Hi

Looks like you need to install packaging

Did not even know the nodes were using this

if you are using system python you can run "pip install packaging" of if you are running the portable version you can run the following in your comfyui folder .\python_embeded\python -m pip install packaging"

I will add this to the requirements file

RGX650 commented 4 months ago

I have a the normal install of Comfyui (non portable) I actually already have packaging installed... this is weird...

(venv) C:\AI\COMFYUI\ComfyUI\venv\Lib\site-packages>pip show packaging Name: packaging Version: 24.1 Summary: Core utilities for Python packages Home-page: Author: Author-email: Donald Stufft donald@stufft.io License: Location: c:\ai\comfyui\comfyui\venv\lib\site-packages Requires: Required-by: accelerate, clip, datasets, docker, gunicorn, huggingface-hub, keras, kornia, lazy_loader, lightning, lightning-utilities, marshmallow, matplotlib, mlflow, mmcv-full, onnxruntime, onnxruntime-gpu, openxlab, pooch, pytest, pytorch-lightning, scikit-image, skypilot, tensorflow-intel, torchmetrics, transformers

RGX650 commented 4 months ago

SOLVED ! pip install setuptools==69.5.1

https://stackoverflow.com/questions/78604018/importerror-cannot-import-name-packaging-from-pkg-resources-when-trying-to

GraftingRayman commented 4 months ago

added to requirements