was-node-suite-comfyui icon indicating copy to clipboard operation
was-node-suite-comfyui copied to clipboard

Pilgram module not found

Open matwin99 opened this issue 1 year ago • 8 comments

Hi. I keep getting this message:

File "\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 4125, in image_blending_mode import pilgram ModuleNotFoundError: No module named 'pilgram'

I do a pip install pilgram and it tells me it is already installed. I have a folder ComfyUI_Pilgram in \custom-nodes\

What can i do to fix? thanks

matwin99 avatar Jul 26 '24 23:07 matwin99

ComfyUI_Pilgram is probably a conflict. My suite uses pilgram package and that custom_node may be overriding it in the namespace, not sure. But all it's doing is importing pilgram, so if it can't import it something is wrong with the environment setup.

WASasquatch avatar Jul 27 '24 02:07 WASasquatch

cheers. i believe i have found the issue. If running a portable version of comfyui then in was-node-suite you need to run the install.bat This has fixed the issue for me however now i have new issues in different parts of the workflow. hahaha. Not related i think.

matwin99 avatar Jul 27 '24 03:07 matwin99

I solved this like this in 2025.

in powershell

  1. activate venv
  2. cd /custom-nodes/was-node-suite/
  3. set SETUPTOOLS_USE_DISTUTILS=stdlib - this installation is using a zipped standard library, and the _distutils_hack choked on it. Some packages like setuptools or pip assume distutils is a regular directory, not bundled up in a .zip.
  4. .\install.bat

muunkky avatar Apr 11 '25 17:04 muunkky

I solved this like this in 2025.

in powershell

1. activate venv

2. `cd /custom-nodes/was-node-suite/`

3. `set SETUPTOOLS_USE_DISTUTILS=stdlib` - this installation is using a zipped standard library, and the _distutils_hack choked on it. Some packages like setuptools or pip assume distutils is a regular directory, not bundled up in a .zip.

4. `.\install.bat`

Pilgram is pretty ancient now, and we're all running newer Python versions.

Wonder if this is something to even keep. Most these filters could be reproduced for the pack itself, or removed. Though I recently saw someone relying on it and monitor effect nodes so not sure.

WASasquatch avatar Apr 11 '25 20:04 WASasquatch

I just encountered this problem and solved it using the same technique I applied to my "insightface" issue. I'll try to explain clearly (English isn't my first language, and I'm not a programmer).

  1. Navigate to your ComfyUI root folder. In the address bar, type cmd and press Enter to open the command prompt. Then run:

pip install pilgram

  1. Locate your Windows Python installation folder and find the pilgram files folders (pilgram and pilgram-1.2.1.dist-info). They're typically in:

C:\Users<yourusername>\AppData\Local\Programs\Python\Python311\Lib\site-packages

  1. Copy these two folders and paste them into your ComfyUI installation's embedded Python folder:

~~\ComfyUI\python_embeded

  1. Restart ComfyUI - this should resolve the issue.

Reign-in-blood avatar May 01 '25 10:05 Reign-in-blood

I just encountered this problem and solved it using the same technique I applied to my "insightface" issue. I'll try to explain clearly (English isn't my first language, and I'm not a programmer).

  1. Navigate to your ComfyUI root folder. In the address bar, type cmd and press Enter to open the command prompt. Then run:

pip install pilgram

  1. Locate your Windows Python installation folder and find the pilgram files folders (pilgram and pilgram-1.2.1.dist-info). They're typically in:

C:\Users<yourusername>\AppData\Local\Programs\Python\Python311\Lib\site-packages

  1. Copy these two folders and paste them into your ComfyUI installation's embedded Python folder:

~~\ComfyUI\python_embeded

  1. Restart ComfyUI - this should resolve the issue.

You can also do like: C:\ComfyUI\python_embeded\python.exe -m pip install pilgram

The issue may be using newer Python versions that it can accept. Pilgram was written a long time ago, and now ComfyUI is compatible with Python 3.13

WASasquatch avatar May 03 '25 19:05 WASasquatch

You can also do like: C:\ComfyUI\python_embeded\python.exe -m pip install pilgram

The issue may be using newer Python versions that it can accept. Pilgram was written a long time ago, and now ComfyUI is compatible with Python 3.13

This doesn't work for most people who encounter this problem. You're right, the problem is related to the Python version, but for other modes, we sometimes need to run Python 3.13.

Reign-in-blood avatar May 13 '25 21:05 Reign-in-blood

Python 3.13 is not recommended for ComfyUI, as written on its readme. ComfyUI itself is compatible but 90% of custom nodes were written for 3.11 and 3.12. It's best you find alternatives to whatever reason you think you need python 3.13.

WASasquatch avatar May 14 '25 15:05 WASasquatch