Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

WHL file for Windows?

Aperta
#168 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, pytorch

Direzione di ricerca

Start with the repository's pyproject.toml and the dependency installation output, especially the pinned pipeline dependency from GitHub. Reproduce the editable install on Windows and determine whether the failure is specific to the dependency build or the package configuration. Done means a documented Windows installation path or a package configuration that allows pip to complete successfully.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I am trying to get MoGe installed as part of the Pixal3D install.

pip install git+https://github.com/microsoft/MoGe.git

gives this

Collecting git+https://github.com/microsoft/MoGe.git
  Cloning https://github.com/microsoft/MoGe.git to C:\Users\Jason\AppData\Local\Temp\pip-req-build-90tep_8c
  Running command git clone --filter=blob:none --quiet https://github.com/microsoft/MoGe.git 'C:\Users\Jason\AppData\Local\Temp\pip-req-build-90tep_8c'
  Resolved https://github.com/microsoft/MoGe.git to commit 74fbce054ebed49800de42d0ad0e83495065719a
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × installing build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      Traceback (most recent call last):
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\__pip-runner__.py", line 50, in <module>
          runpy.run_module("pip", run_name="__main__", alter_sys=True)
        File "D:\Python\lib\runpy.py", line 224, in run_module
          return _run_module_code(code, init_globals, run_name, mod_spec)
        File "D:\Python\lib\runpy.py", line 96, in _run_module_code
          _run_code(code, mod_globals, init_globals,
        File "D:\Python\lib\runpy.py", line 86, in _run_code
          exec(code, run_globals)
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\__main__.py", line 24, in <module>
          sys.exit(_main())
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\_internal\cli\main.py", line 47, in main
          from pip._internal.cli.autocompletion import autocomplete
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\_internal\cli\autocompletion.py", line 12, in <module>
          from pip._internal.cli.main_parser import create_main_parser
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\_internal\cli\main_parser.py", line 11, in <module>
          from pip._internal.cli import cmdoptions
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\_internal\cli\cmdoptions.py", line 28, in <module>
          from pip._internal.cli.parser import ConfigOptionParser
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\_internal\cli\parser.py", line 20, in <module>
          from pip._internal.configuration import Configuration, ConfigurationError
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\_internal\configuration.py", line 22, in <module>
          from pip._internal.exceptions import (
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\_internal\exceptions.py", line 23, in <module>
          from pip._vendor.packaging.requirements import InvalidRequirement
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\_vendor\packaging\requirements.py", line 8, in <module>
          from ._parser import parse_requirement as _parse_requirement
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\_vendor\packaging\_parser.py", line 12, in <module>
          from ._tokenizer import DEFAULT_RULES, Tokenizer
        File "D:\Tests\Pixal3D\Pixal3D\venv\Lib\site-packages\pip\_vendor\packaging\_tokenizer.py", line 77, in <module>
          "SPECIFIER": re.compile(
        File "D:\Python\lib\re.py", line 251, in compile
          return _compile(pattern, flags)
        File "D:\Python\lib\re.py", line 303, in _compile
          p = sre_compile.compile(pattern, flags)
        File "D:\Python\lib\sre_compile.py", line 788, in compile
          p = sre_parse.parse(p, flags)
        File "D:\Python\lib\sre_parse.py", line 955, in parse
          p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
        File "D:\Python\lib\sre_parse.py", line 444, in _parse_sub
          itemsappend(_parse(source, state, verbose, nested + 1,
        File "D:\Python\lib\sre_parse.py", line 841, in _parse
          p = _parse_sub(source, state, sub_verbose, nested + 1)
        File "D:\Python\lib\sre_parse.py", line 444, in _parse_sub
          itemsappend(_parse(source, state, verbose, nested + 1,
        File "D:\Python\lib\sre_parse.py", line 841, in _parse
          p = _parse_sub(source, state, sub_verbose, nested + 1)
        File "D:\Python\lib\sre_parse.py", line 444, in _parse_sub
          itemsappend(_parse(source, state, verbose, nested + 1,
        File "D:\Python\lib\sre_parse.py", line 671, in _parse
          if item[0][0] in _REPEATCODES:
        File "D:\Python\lib\sre_parse.py", line 168, in __getitem__
          return self.data[index]
      TypeError: 'type' object is not subscriptable
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'git+https://github.com/microsoft/MoGe.git' when installing build dependencies

then trying

git clone https://github.com/microsoft/MoGe.git
cd MoGe
pip install -e .

gives this

Obtaining file:///D:/Tests/Pixal3D/Pixal3D/MoGe
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting click>=8.3.1 (from moge==3.0.0)
  Using cached click-8.5.0-py3-none-any.whl.metadata (2.6 kB)
Collecting numpy>=2 (from moge==3.0.0)
  Using cached numpy-2.2.6-cp310-cp310-win_amd64.whl.metadata (60 kB)
Collecting opencv-python-headless (from moge==3.0.0)
  Using cached opencv_python_headless-5.0.0.93-cp37-abi3-win_amd64.whl.metadata (20 kB)
Collecting scipy>=1.8 (from moge==3.0.0)
  Using cached scipy-1.15.3-cp310-cp310-win_amd64.whl.metadata (60 kB)
Collecting pillow (from moge==3.0.0)
  Using cached pillow-12.3.0-cp310-cp310-win_amd64.whl.metadata (9.3 kB)
Collecting matplotlib (from moge==3.0.0)
  Using cached matplotlib-3.10.9-cp310-cp310-win_amd64.whl.metadata (52 kB)
Collecting trimesh>=4.11 (from moge==3.0.0)
  Downloading trimesh-5.1.0-py3-none-any.whl.metadata (13 kB)
Collecting huggingface-hub (from moge==3.0.0)
  Downloading huggingface_hub-2.0.0-py3-none-any.whl.metadata (16 kB)
Collecting requests (from moge==3.0.0)
  Using cached requests-2.34.2-py3-none-any.whl.metadata (4.8 kB)
Collecting tqdm (from moge==3.0.0)
  Using cached tqdm-4.70.1-py3-none-any.whl.metadata (57 kB)
Collecting torch>=2.4 (from moge==3.0.0)
  Downloading torch-2.14.1-cp310-cp310-win_amd64.whl.metadata (38 kB)
Collecting torchvision>=0.19 (from moge==3.0.0)
  Downloading torchvision-0.29.1-cp310-cp310-win_amd64.whl.metadata (5.7 kB)
Collecting utils3d_moge @ git+https://github.com/EasternJournalist/utils3d-moge.git@62f09d58509485564e24d5d9f6aac9ee9ebc0c37 (from moge==3.0.0)
  Cloning https://github.com/EasternJournalist/utils3d-moge.git (to revision 62f09d58509485564e24d5d9f6aac9ee9ebc0c37) to C:\Users\Jason\AppData\Local\Temp\pip-install-e6o1gg7l\utils3d-moge_8e0a73ee1df648a5ab29117ee9dca5ad
  Running command git clone --filter=blob:none --quiet https://github.com/EasternJournalist/utils3d-moge.git 'C:\Users\Jason\AppData\Local\Temp\pip-install-e6o1gg7l\utils3d-moge_8e0a73ee1df648a5ab29117ee9dca5ad'
  Running command git rev-parse -q --verify '62f09d58509485564e24d5d9f6aac9ee9ebc0c37^{commit}'
  62f09d58509485564e24d5d9f6aac9ee9ebc0c37
  Resolved https://github.com/EasternJournalist/utils3d-moge.git to commit 62f09d58509485564e24d5d9f6aac9ee9ebc0c37
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pipeline @ git+https://github.com/EasternJournalist/pipeline.git@1c511390d90226c00c101f34b84df26a0f8789b4 (from moge==3.0.0)
  Cloning https://github.com/EasternJournalist/pipeline.git (to revision 1c511390d90226c00c101f34b84df26a0f8789b4) to C:\Users\Jason\AppData\Local\Temp\pip-install-e6o1gg7l\pipeline_b8da12a390e64a76ba44ddd28eb2404e
  Running command git clone --filter=blob:none --quiet https://github.com/EasternJournalist/pipeline.git 'C:\Users\Jason\AppData\Local\Temp\pip-install-e6o1gg7l\pipeline_b8da12a390e64a76ba44ddd28eb2404e'
  Running command git rev-parse -q --verify '1c511390d90226c00c101f34b84df26a0f8789b4^{commit}'
  1c511390d90226c00c101f34b84df26a0f8789b4
  Resolved https://github.com/EasternJournalist/pipeline.git to commit 1c511390d90226c00c101f34b84df26a0f8789b4
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × installing build dependencies for pipeline did not run successfully.
  │ exit code: 3221225477
  ╰─> [0 lines of output]
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'pipeline' when installing build dependencies for pipeline

Is there a WHL prebuilt for Windows I can use? Or any way to fix the above?

Lingua principale
JavaScript
Stelle
3.1k
Fork
245
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/MoGe

Tutte le issue di microsoft/MoGe

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.