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.34k stars 233 forks source link

Error installing ComfyUI-3D-Pack via Manager, Windows #260

Open pied-stuff opened 3 months ago

pied-stuff commented 3 months ago
3DpackErrors
sjcta commented 3 months ago

same issue

mnnbir commented 3 months ago

same issue

ammahmoudi commented 3 months ago

just run the following line from the 3d-pack folder and it will be installed: ../../../python_embeded/python.exe install.py

pied-stuff commented 3 months ago

../../../python_embeded/python.exe install.py

@ammahmoudi As mentioned in first post this is windows. I did try your suggestion with all the / changed to \ but still get this error:

Traceback (most recent call last): File "C:\Users\User\Downloads\ComfyUI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\install.py", line 19, in from build_utils import ( File "C:\Users\User\Downloads\ComfyUI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\UserPre_Builds/_Build_Scripts\build_utils.py", line 50, in CUDA_VERSION = get_cuda_version() ^^^^^^^^^^^^^^^^^^ File "C:\Users\User\Downloads\ComfyUI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\UserPre_Builds/_Build_Scripts\build_utils.py", line 40, in get_cuda_version result = subprocess.run(["nvcc", "--version"], text=True, capture_output=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "subprocess.py", line 548, in run File "subprocess.py", line 1024, in init File "subprocess.py", line 1509, in _execute_child FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\User\Downloads\ComfyUI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\install.py", line 83, in cstr("Comfy3D install failed: Dependency installation has failed. Please install manually: https://github.com/MrForExample/ComfyUI-3D-Pack/tree/main/_Pre_Builds/README.md.").error.print() ^^^^ NameError: name 'cstr' is not defined. Did you mean: 'str'?

ammahmoudi commented 3 months ago

@pied-stuff Oh I know. My command was also in windows. Don't Change anything. just run it and it will install without the error

pied-stuff commented 3 months ago

@pied-stuff Oh I know. My command was also in windows. Don't Change anything. just run it and it will install without the error

@ammahmoudi Wrong, get this error if I try ../../../python_embeded/python.exe install.py:

'..' is not recognized as an internal or external command, operable program or batch file.

ammahmoudi commented 3 months ago

@pied-stuff this is me running the command in powershell windows 11: image

pied-stuff commented 3 months ago

@pied-stuff this is me running the command in powershell windows 11: image

@ammahmoudi Does not work. Still get the same error I mentioned above, even in powershell

pied-stuff commented 2 months ago

@MrForExample Any ideas?

grAInited commented 2 months ago

@MrForExample Any ideas?

Hey. Currently wasted 6+hours so far to get a clean comfyui install with just 3D Pack running.

You probably like me, a complete terminal/python noob and struggle with getting the right things running. Here is a little trick i found: Just right-click inside a folder where you wanna run/pip something and select "Run Terminal". The Terminal pops up with the right dir path. Then use "python install.py". The Terminal will switch to python and runs the install.py inside the 3D-Pack Folder.

Then it should look like in the screenshot from @ammahmoudi

Maybe it will finish on your PC, but i got again a problem with: torch -> fbgemm.dll missing dependency and it tries to patch itself comfy says "(IMPORT FAILED) [ComfyUI-3D-Pack]" i click fix... Restart, error because of torch/audio/vision wrong version... again updating... libomp140.x8664.dll missing or so... or "torchaudio.pyd" blabla when you delete the "" from the file "__torchaudio.pyd" then it works again but something else doesn't work and updates... venv deleted, reinstall everything, path are set... INFINITE ERROR LOOP

CptJackieSparrow commented 1 month ago

I'm trying to run this with Pinokio on Windows. I get the same issue. Everything is updated. Trying to install.py as you've said. Lets see what happens. But it's downloading torch again for some reason. Maybe it's mixed the enviroments. Lets see what happens.

Edit: nope, same error

meta-meteo commented 1 month ago

@pied-stuff Oh I know. My command was also in windows. Don't Change anything. just run it and it will install without the error

@ammahmoudi Wrong, get this error if I try ../../../python_embeded/python.exe install.py:

'..' is not recognized as an internal or external command, operable program or batch file.

I get the same error.

In my case, I'm running comfyui on Docker according to DOCKER_INSTRUCTIONS.md, so the higher directory hierarchy is not shared within the container. The python_embeded folder doesn't exist, and the ../../../python_embeded/python.exe file doesn't exist, so this path can't be accessed.

That's why I get the error.