ComfyUI-3D-Pack icon indicating copy to clipboard operation
ComfyUI-3D-Pack copied to clipboard

import error in linux

Open vicentecarro opened this issue 1 year ago • 2 comments

Got this error while trying to import in linux (ubuntu 23.10). I installed the suggested wheel files with pip install and follow most of the installation guide (but not using miniconda). Everything seemed to install fine but the import fails. I get this error:


  File "/media/vicente/Samsung870VQO1TB/comfyui/ComfyUI/custom_nodes/ComfyUI-3D-Pack/__init__.py", line 18, in <module>
    module = importlib.import_module(f".{nodes_filename}", package=__name__)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  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 "/media/vicente/Samsung870VQO1TB/comfyui/ComfyUI/custom_nodes/ComfyUI-3D-Pack/nodes.py", line 29, in <module>
    from .algorithms.dmtet import DMTetMesh
  File "/media/vicente/Samsung870VQO1TB/comfyui/ComfyUI/custom_nodes/ComfyUI-3D-Pack/algorithms/dmtet.py", line 6, in <module>
    from pytorch3d.loss import chamfer_distance, mesh_laplacian_smoothing
  File "/media/vicente/Samsung870VQO1TB/comfyui/ComfyUI/venv/lib/python3.11/site-packages/pytorch3d/loss/__init__.py", line 8, in <module>
    from .chamfer import chamfer_distance
  File "/media/vicente/Samsung870VQO1TB/comfyui/ComfyUI/venv/lib/python3.11/site-packages/pytorch3d/loss/chamfer.py", line 11, in <module>
    from pytorch3d.ops.knn import knn_gather, knn_points
  File "/media/vicente/Samsung870VQO1TB/comfyui/ComfyUI/venv/lib/python3.11/site-packages/pytorch3d/ops/__init__.py", line 7, in <module>
    from .ball_query import ball_query
  File "/media/vicente/Samsung870VQO1TB/comfyui/ComfyUI/venv/lib/python3.11/site-packages/pytorch3d/ops/ball_query.py", line 10, in <module>
    from pytorch3d import _C
ImportError: /media/vicente/Samsung870VQO1TB/comfyui/ComfyUI/venv/lib/python3.11/site-packages/pytorch3d/_C.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN2at4_ops10zeros_like4callERKNS_6TensorEN3c108optionalINS5_10ScalarTypeEEENS6_INS5_6LayoutEEENS6_INS5_6DeviceEEENS6_IbEENS6_INS5_12MemoryFormatEEE

vicentecarro avatar Feb 21 '24 16:02 vicentecarro

I installed all the packages from here In the same environment: https://github.com/remsky/ComfyUI3D-Assorted-Wheels

vicentecarro avatar Feb 21 '24 16:02 vicentecarro

You need to recompile it

Y-ujl avatar Aug 21 '24 09:08 Y-ujl