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

Fails on WIndows #8

Open
SoftologyPro opened this issue Mar 22, 2025 · 1 comment
Open

Fails on WIndows #8

SoftologyPro opened this issue Mar 22, 2025 · 1 comment

Comments

@SoftologyPro
Copy link

Under Windows...

git clone https://github.com/hyz317/StdGEN
cd StdGEN
python -m pip install --upgrade pip
pip install -r requirements.txt

errors out with

Requirement already satisfied: pip in d:\tests\stdgen\stdgen\venv\lib\site-packages (23.0.1)
Collecting pip
  Downloading pip-25.0.1-py3-none-any.whl (1.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 8.4 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.0.1
    Uninstalling pip-23.0.1:
      Successfully uninstalled pip-23.0.1
Successfully installed pip-25.0.1
Collecting git+https://github.com/NVlabs/nvdiffrast (from -r requirements.txt (line 21))
  Cloning https://github.com/NVlabs/nvdiffrast to c:\users\jason\appdata\local\temp\pip-req-build-r5z86b03
  Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/nvdiffrast 'C:\Users\Jason\AppData\Local\Temp\pip-req-build-r5z86b03'
  Resolved https://github.com/NVlabs/nvdiffrast to commit 729261dc64c4241ea36efda84fbf532cc8b425b8
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting git+https://github.com/facebookresearch/pytorch3d.git (from -r requirements.txt (line 22))
  Cloning https://github.com/facebookresearch/pytorch3d.git to c:\users\jason\appdata\local\temp\pip-req-build-2vc45b50
  Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/pytorch3d.git 'C:\Users\Jason\AppData\Local\Temp\pip-req-build-2vc45b50'
  Resolved https://github.com/facebookresearch/pytorch3d.git to commit 3987612062f3db5dba609df3552768dcd97b410f
  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
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "D:\Tests\StdGEN\StdGEN\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
        File "D:\Tests\StdGEN\StdGEN\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
        File "D:\Tests\StdGEN\StdGEN\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\Jason\AppData\Local\Temp\pip-build-env-kdo8ikfu\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "C:\Users\Jason\AppData\Local\Temp\pip-build-env-kdo8ikfu\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "C:\Users\Jason\AppData\Local\Temp\pip-build-env-kdo8ikfu\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\Jason\AppData\Local\Temp\pip-build-env-kdo8ikfu\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 15, 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.

Even if I install torch before the requirments, ie

git clone https://github.com/hyz317/StdGEN
cd StdGEN
python -m pip install --upgrade pip
pip install torch
pip install -r requirements.txt

it gives the same error.

Any ideas? Anyone have this installing under Windows?

@able2608
Copy link

able2608 commented Mar 23, 2025

If you're stuck at building the wheel, perhaps you can try fetching prebuilt ones from here: https://github.com/MiroPsota/torch_packages_builder/releases/tag/pytorch3d-0.7.8. Find the version that matches your system (
pytorch3d-0.7.8+pt[your pytorch version]cu[your cuda version]-cp[your python version]-cp[your python version]-win_amd64.whl , replace things in brackets with your system specs) and install with pip.
This method worked on my side, getting me past infer_canonicalize, but other errors occurred during the next step. There might be some more issues that needed to be iron out before we can get a no-issue Windows setup.

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