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

install inplace_abn error: [WinError 2] The system cannot find the file specified #244

Open
melanie0901 opened this issue Sep 2, 2024 · 0 comments

Comments

@melanie0901
Copy link

I got Torch 2.1.2 + Cuda 11.8
ninja set on the path

E:\C\custom_nodes\human-parser-comfyui-node\schp\modules\src\inplace_abn>pip install git+https://github.com/mapillary/inplace_abn.git#egg=inplace_abn
Looking in indexes: https://pypi.doubanio.com/simple, https://pypi.oystermercury.top/ms
Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html
Collecting inplace_abn
Cloning https://github.com/mapillary/inplace_abn.git to c:\users\dell\appdata\local\temp\pip-install-5y1jti0w\inplace-abn_098950b3028e448997122c0ddcf3e5b2
Running command git clone --filter=blob:none --quiet https://github.com/mapillary/inplace_abn.git 'C:\Users\Dell\AppData\Local\Temp\pip-install-5y1jti0w\inplace-abn_098950b3028e448997122c0ddcf3e5b2'
Resolved https://github.com/mapillary/inplace_abn.git to commit c496fa6
Preparing metadata (setup.py) ... done
Building wheels for collected packages: inplace_abn
Building wheel for inplace_abn (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
C:\Users\Dell\AppData\Local\Temp\pip-install-5y1jti0w\inplace-abn_098950b3028e448997122c0ddcf3e5b2\setup.py:28: UserWarning: 'has_cuda' is deprecated, please use 'torch.backends.cuda.is_built()'
if torch.has_cuda or getenv("IABN_FORCE_CUDA") == "1":
E:\C.ext\Lib\site-packages\setuptools_init_.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.
          ********************************************************************************

  !!
    dist.fetch_build_eggs(dist.setup_requires)
  [09/02/24 14:20:33] WARNING  toml section missing       pyproject_reading.py:42
                               'pyproject.toml does not
                               contain a
                               tool.setuptools_scm
                               section'
                               Traceback (most recent
                               call last):
                                 File
                               "E:\C\.ext\Lib\site-packag
                               es\setuptools_scm\_integra
                               tion\pyproject_reading.py"
                               , line 36, in
                               read_pyproject
                                   section =
                               defn.get("tool",
                               {})[tool_name]
                                             ~~~~~~~~~~~~
                               ~~~~~~~~^^^^^^^^^^^
                               KeyError: 'setuptools_scm'
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-cpython-311
  creating build\lib.win-amd64-cpython-311\inplace_abn
  copying inplace_abn\abn.py -> build\lib.win-amd64-cpython-311\inplace_abn
  copying inplace_abn\functions.py -> build\lib.win-amd64-cpython-311\inplace_abn
  copying inplace_abn\group.py -> build\lib.win-amd64-cpython-311\inplace_abn
  copying inplace_abn\_version.py -> build\lib.win-amd64-cpython-311\inplace_abn
  copying inplace_abn\__init__.py -> build\lib.win-amd64-cpython-311\inplace_abn
  copying inplace_abn\_backend.pyi -> build\lib.win-amd64-cpython-311\inplace_abn
  running build_ext
  error: [WinError 2] The system cannot find the file specified
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for inplace_abn
Running setup.py clean for inplace_abn
Failed to build inplace_abn
ERROR: Could not build wheels for inplace_abn, which is required to install pyproject.toml-based projects

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

1 participant