Direct3D-S2: Can't install
~/Software/Direct3D-S2 main pyenv local 3.12.3 ✔
~/Software/Direct3D-S2 main ?1 pip install -r requirements.txt ✔ 3.12.3
Collecting git+https://github.com/mit-han-lab/torchsparse.git (from -r requirements.txt (line 17))
Cloning https://github.com/mit-han-lab/torchsparse.git to /tmp/pip-req-build-u3izwgfu
Running command git clone --filter=blob:none --quiet https://github.com/mit-han-lab/torchsparse.git /tmp/pip-req-build-u3izwgfu
Resolved https://github.com/mit-han-lab/torchsparse.git to commit 385f5ce8718fcae93540511b7f5832f4e71fd835
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "/home/y4my4m/.pyenv/versions/3.12.3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/y4my4m/.pyenv/versions/3.12.3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/y4my4m/.pyenv/versions/3.12.3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-7mbw3cu7/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-7mbw3cu7/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-7mbw3cu7/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-7mbw3cu7/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 4, in <module>
ModuleNotFoundError: No module named 'torch'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[notice] A new release of pip is available: 24.0 -> 25.1.1
[notice] To update, run: pip install --upgrade pip
Installing torch manually DOES NOT solve the issue…
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 28
https://github.com/Deathdadev/torchsparse My modified version. Please let others know to test this version to see if it works
@loktar00 No need to but I do have https://ko-fi.com/y4my4my4m 😃
I got it working!! If you have a donation link or something just to throw some money at you to buy you a coffee feel free to share, I seriously have gone round and round with this project off and on for 2 weeks and your help did the trick! Super appreciated, and I’m dead serious about the buying you a coffee or beer. Thanks again!
@loktar00 i’ve downloaded torchsparse https://github.com/mit-han-lab/torchsparse and put it directly in third_party
I removed it from the requirements.txt:
I put
dinov2_vitl14_reg4_pretrain.pthin the root folder (source )My final docker-compose.yml:
Dockerfile:
i run it using
docker compose up -d --build(to build it the first time), thendocker compose stopwhen im done,docker compose up -dnext time i need to run it.Good luck.
@y4my4my4m how did you fix
?
I’m getting this on a native ubuntu 24.04 build
Here’s a Dockerfile that works for me (albeit OOM during runtime)
flash-attn: https://huggingface.co/lldacing/flash-attention-windows-wheel/tree/main triton: https://pypi.org/project/triton-windows/ udf_ext: I resolved this issue in my pull request https://github.com/DreamTechAI/Direct3D-S2/pull/10
Please add
--no-build-isolationto the end of your command!For example: