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

install error with filterpy #6

Open
curlysasha opened this issue May 8, 2024 · 3 comments
Open

install error with filterpy #6

curlysasha opened this issue May 8, 2024 · 3 comments

Comments

@curlysasha
Copy link

`#######################################################################
[ComfyUI-Manager] Starting dependency installation/(de)activation for the extension

ComfyUI-Manager: EXECUTE => ['C:\ComfyUI_windows_portable\python_embeded\python.exe', '-m', 'pip', 'install', 'facexlib']

Execute install/(de)activation script for 'C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-ZHO'

Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting facexlib
Downloading facexlib-0.3.0-py3-none-any.whl.metadata (4.6 kB)
Collecting filterpy (from facexlib)
Downloading filterpy-1.4.5.zip (177 kB)
-------------------------------------- 178.0/178.0 kB 1.8 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
[!] error: subprocess-exited-with-error
[!]
[!] python setup.py egg_info did not run successfully.
[!] exit code: 1
[!]
[!] [6 lines of output]
[!] Traceback (most recent call last):
[!] File "", line 2, in
[!] File "", line 34, in
[!] File "C:\Users\user\AppData\Local\Temp\pip-install-e96p1554\filterpy_46a606a26f114bfe8a0c7a8554227df5\setup.py", line 4, in
[!] import filterpy
[!] ModuleNotFoundError: No module named 'filterpy'
[!] [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.
install/(de)activation script failed: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-ZHO

[ComfyUI-Manager] Startup script completed.
#######################################################################`

and then startup error

`Total VRAM 24563 MB, total RAM 65440 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
VAE dtype: torch.bfloat16

Loading: ComfyUI-Manager (V2.27.2)

ComfyUI Revision: 2128 [258dbc06] | Released on '2024-04-14'

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
Traceback (most recent call last):
File "C:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1864, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-ZHO_init
.py", line 1, in
from . import PuLID
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-ZHO\PuLID.py", line 9, in
from pulid.pipeline import PuLIDPipeline
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-ZHO\pulid\pipeline.py", line 13, in
from facexlib.parsing import init_parsing_model
ModuleNotFoundError: No module named 'facexlib'

Cannot import C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-ZHO module for custom nodes: No module named 'facexlib'`

@curlysasha
Copy link
Author

Problem with filterpy

C:\ComfyUI_windows_portable\python_embeded>python.exe -m pip install facexlib
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting facexlib
Downloading facexlib-0.3.0-py3-none-any.whl.metadata (4.6 kB)
Collecting filterpy (from facexlib)
Downloading filterpy-1.4.5.zip (177 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.0/178.0 kB 2.2 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\user\AppData\Local\Temp\pip-install-l53obyky\filterpy_f6bf5a731cbb47bca876cdda8d833291\setup.py", line 4, in
import filterpy
ModuleNotFoundError: No module named 'filterpy'
[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.

@curlysasha curlysasha changed the title install error install error with filterpy May 8, 2024
@ChrisAtJAM
Copy link

ChrisAtJAM commented May 9, 2024

You need filterpy to install filterpy 🤷🏽‍♂️

See here:
cubiq/PuLID_ComfyUI#1 (comment)

If that doesn't work Go here:
https://www.piwheels.org/project/filterpy/

Download filterpy-1.4.5-py3-none-any.whl:
image

Then wherever you downloaded that file do:
C:\WhereverYouInstalledCOMFYUI\ComfyUI_windows_portable_nightly_pytorch\python_embeded\python.exe -m pip install .\filterpy-1.4.5-py3-none-any.whl

Then you can install packages that use filterpy like facexlib:

C:\WhereverYouInstalledCOMFYUI\ComfyUI_windows_portable_nightly_pytorch\python_embeded\python.exe -m pip install facexlib

@curlysasha
Copy link
Author

You need filterpy to install filterpy 🤷🏽‍♂️

See here: cubiq/PuLID_ComfyUI#1 (comment)

If that doesn't work Go here: https://www.piwheels.org/project/filterpy/

Download filterpy-1.4.5-py3-none-any.whl: image

Then wherever you downloaded that file do: C:\WhereverYouInstalledCOMFYUI\ComfyUI_windows_portable_nightly_pytorch\python_embeded\python.exe -m pip install .\filterpy-1.4.5-py3-none-any.whl

Then you can install packages that use filterpy like facexlib:

C:\WhereverYouInstalledCOMFYUI\ComfyUI_windows_portable_nightly_pytorch\python_embeded\python.exe -m pip install facexlib

Traceback (most recent call last):
File "C:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1864, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-ZHO_init
.py", line 1, in
from . import PuLID
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-ZHO\PuLID.py", line 9, in
from pulid.pipeline import PuLIDPipeline
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-ZHO\pulid\pipeline.py", line 7, in
from basicsr.utils import img2tensor, tensor2img
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\basicsr_init_.py", line 4, in
from .data import *
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\basicsr\data_init_.py", line 22, in
dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\basicsr\data_init
.py", line 22, in
dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init
.py", line 126, in import_module
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\basicsr\data\realesrgan_dataset.py", line 11, in
from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\basicsr\data\degradations.py", line 8, in
from torchvision.transforms.functional_tensor import rgb_to_grayscale
ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

Cannot import C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-ZHO module for custom nodes: No module named 'torchvision.transforms.functional_tensor'

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