MrForExample / ComfyUI-3D-Pack

An extensive node suite that enables ComfyUI to process 3D inputs (Mesh & UV Texture, etc) using cutting edge algorithms (3DGS, NeRF, etc.)
MIT License
2.18k stars 218 forks source link

Installation Issues with ComfyUI manager (imported fail) #314

Open 0mil opened 22 hours ago

0mil commented 22 hours ago

Hello,

This custom_node is surprisingly awesome! However, it's extremely difficult to install successfully.

I have tried to install this custom_node using various configurations, including Ubuntu LTS, and Windows 10 with CUDA version 11.8 and 12.1. Currently, I am following the guide from this video, but I have also encountered the same failure with the installation of PyTorch3D.

Therefore, I sincerely request assistance: what is the best way to install this custom node using ComfyUI Manager or any other installation steps? Please provide the exact and specific requirements, including the supported OS, CUDA version, and Torch library version. I would like to try installing it again with the correct specifications. Thank you. πŸ˜‚πŸ˜‚πŸ˜‚

C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
[START] Security scan
DEPRECATION: Loading egg at c:\users\jh.park\downloads\comfyui_3d\comfyui_windows_portable\python_embeded\lib\site-packages\nvdiffrast-0.3.1-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330
[DONE] Security scan
[ComfyUI-Manager] Logging failed: [WinError 32] λ‹€λ₯Έ ν”„λ‘œμ„ΈμŠ€κ°€ νŒŒμΌμ„ μ‚¬μš© 쀑이기 λ•Œλ¬Έμ— ν”„λ‘œμ„ΈμŠ€κ°€ μ•‘μ„ΈμŠ€ ν•  수 μ—†μŠ΅λ‹ˆλ‹€: 'comfyui.log' -> 'comfyui.prev.log'
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2024-09-23 14:55:03.687033
** Platform: Windows
** Python version: 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
** Python executable: C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\python_embeded\python.exe
** ComfyUI Path: C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI
** Log path: C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\comfyui.log

Prestartup times for custom nodes:
   1.7 seconds: C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 10239 MB, total RAM 16326 MB
pytorch version: 2.3.0+cu121
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3080 : cudaMallocAsync
Using pytorch cross attention
Traceback (most recent call last):
  File "C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1931, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\__init__.py", line 53, in <module>
    module = importlib.import_module(f".{nodes_filename}", package=__name__)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 57, in <module>
    from TriplaneGaussian.triplane_gaussian_transformers import TGS
  File "C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\TriplaneGaussian\triplane_gaussian_transformers.py", line 6, in <module>
    from TriplaneGaussian.models.image_feature import ImageFeature
  File "C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\TriplaneGaussian\models\image_feature.py", line 7, in <module>
    from ..utils.ops import compute_distance_transform
  File "C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\TriplaneGaussian\utils\ops.py", line 8, in <module>
    from pytorch3d import io
ImportError: cannot import name 'io' from 'pytorch3d' (unknown location)

Cannot import C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack module for custom nodes: cannot import name 'io' from 'pytorch3d' (unknown location)
### Loading: ComfyUI-Manager (V2.51)
### ComfyUI Revision: 2360 [4ca9b9cc] *DETACHED | Released on '2024-07-12'

Import times for custom nodes:
   0.0 seconds: C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
   0.5 seconds: C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
   2.3 seconds (IMPORT FAILED): C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack

Traceback (most recent call last):
  File "C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\main.py", line 258, in <module>
    loop.run_until_complete(run(server, address=args.listen, port=args.port, verbose=not args.dont_print_server, call_on_start=call_on_start))
  File "asyncio\base_events.py", line 654, in run_until_complete
  File "C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\main.py", line 153, in run
    await asyncio.gather(server.start(address, port, verbose, call_on_start), server.publish_loop())
  File "C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\ComfyUI\server.py", line 669, in start
    await site.start()
  File "C:\Users\jh.park\Downloads\ComfyUI_3D\ComfyUI_windows_portable\python_embeded\Lib\site-packages\aiohttp\web_runner.py", line 119, in start
    self._server = await loop.create_server(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "asyncio\base_events.py", line 1536, in create_server
OSError: [Errno 10048] error while attempting to bind on address ('127.0.0.1', 8188): 각 μ†ŒμΌ“ μ£Όμ†Œ(ν”„λ‘œν† μ½œ/λ„€νŠΈμ›Œν¬ μ£Όμ†Œ/포트)λŠ” ν•˜λ‚˜λ§Œ μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€
[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/github-stats.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
jakechai commented 18 hours ago

It looks like your pytorch3d is not installed properly. Here is the torch2.3.0 pytorch3d wheel in ...\ComfyUI\custom_nodes\ComfyUI-3D-Pack\_Pre_Builds\_Build_Wheels\_Wheels_win_py311_cu121

Try reinstall pytorch3d: ...\python.exe -m pip install --force-reinstall "...\ComfyUI\custom_nodes\ComfyUI-3D-Pack\_Pre_Builds\_Build_Wheels\_Wheels_win_py311_cu121\pytorch3d-0.7.7-cp311-cp311-win_amd64.whl"

I will update the video's description for the new update of torch2.4.0.

AN3Orik commented 14 hours ago

New ComfyUI has torch2.4.1 installed by default and it's just impossible to install 3D-Pack to portable.

jakechai commented 14 hours ago

New ComfyUI has torch2.4.1 installed by default and it's just impossible to install 3D-Pack to portable.

Install torch2.4.0 first

MrForExample commented 7 hours ago

@AN3Orik If you run the: "Your comfyUI python.exe" install.py it should automatically download everything in the correct version, so is reinstall from ComfyUI-Manager

MrForExample commented 7 hours ago

@0mil ComfyUI-Manager should work for most cases, both torch2.3 and torch2.4 should work But in your case, you can try those two steps separately under ComfyUI-3D-Pack folder and see what other errors you got:

  1. "Your comfyUI python.exe" -s -m pip -r requirements.txt
  2. "Your comfyUI python.exe" install.py