Code Monkey home page Code Monkey logo

Comments (11)

michaelyyq avatar michaelyyq commented on July 20, 2024 2

Ninja is required to load C++ extensions
sudo apt-get install ninja-build
This solved my problem.

from self-correction-human-parsing.

JieLiu-UvA avatar JieLiu-UvA commented on July 20, 2024

have you solved this problem? I met same error too.

from self-correction-human-parsing.

aeoleader avatar aeoleader commented on July 20, 2024

you need to install ninja before running the script

from self-correction-human-parsing.

kaniskgautam avatar kaniskgautam commented on July 20, 2024

ninja is already installed

from self-correction-human-parsing.

Karenou avatar Karenou commented on July 20, 2024

I also have the same problem. I have installed pytorch1.10, ninja 1.8.2, cuda 11.3. But still cannot run the program.

Traceback (most recent call last):
  File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1717, in _run_ninja_build
    subprocess.run(
  File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "Self-Correction-Human-Parsing/simple_extractor.py", line 24, in <module>
    import networks
  File "/home/juneshi/Desktop/Ecommerce_consumer_behavior/bmi_prediction/Self-Correction-Human-Parsing/networks/__init__.py", line 3, in <module>
    from networks.AugmentCE2P import resnet101
  File "/home/juneshi/Desktop/Ecommerce_consumer_behavior/bmi_prediction/Self-Correction-Human-Parsing/networks/AugmentCE2P.py", line 21, in <module>
    from modules import InPlaceABNSync
  File "/home/juneshi/Desktop/Ecommerce_consumer_behavior/bmi_prediction/Self-Correction-Human-Parsing/modules/__init__.py", line 1, in <module>
    from .bn import ABN, InPlaceABN, InPlaceABNSync
  File "/home/juneshi/Desktop/Ecommerce_consumer_behavior/bmi_prediction/Self-Correction-Human-Parsing/modules/bn.py", line 10, in <module>
    from .functions import *
  File "/home/juneshi/Desktop/Ecommerce_consumer_behavior/bmi_prediction/Self-Correction-Human-Parsing/modules/functions.py", line 10, in <module>
    _backend = load(name="inplace_abn",
  File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1124, in load
    return _jit_compile(
  File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1337, in _jit_compile
    _write_ninja_file_and_build_library(
  File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1449, in _write_ninja_file_and_build_library
    _run_ninja_build(
  File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1733, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error building extension 'inplace_abn': ninja: warning: bad deps log signature or version; starting over

from self-correction-human-parsing.

aeoleader avatar aeoleader commented on July 20, 2024

What is the ninja version? Please run the following command and check.

ninja --version

from self-correction-human-parsing.

Karenou avatar Karenou commented on July 20, 2024

from self-correction-human-parsing.

dandanAD avatar dandanAD commented on July 20, 2024

我也遇到了相似问题,ninja: build stopped: subcommand failed.请问怎么解决呀

from self-correction-human-parsing.

aeoleader avatar aeoleader commented on July 20, 2024

mapillary/inplace_abn#104 Pls check this thread.

My ninja version is 1.10.2. aeoleader @.>于2022年1月24日 周一上午10:46写道:

What is the ninja version? Please run the following command and check. ninja --version — Reply to this email directly, view it on GitHub <#56 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKTNYE2MO66PETLUSO5IN2TUXS4QLANCNFSM42XVWWUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.
>

from self-correction-human-parsing.

zyy26-zyy avatar zyy26-zyy commented on July 20, 2024

我也遇到了相似问题,ninja: build stopped: subcommand failed.请问怎么解决呀
请问解决了吗,我也遇到这个问题了

from self-correction-human-parsing.

robinsonmhj avatar robinsonmhj commented on July 20, 2024

you can also use conda to isntall ninja-build. Here is the command
conda install ninja-build -c refractor

from self-correction-human-parsing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.