-
Notifications
You must be signed in to change notification settings - Fork 239
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
run error: No module named 'ninja' #56
Comments
have you solved this problem? I met same error too. |
you need to install ninja before running the script |
ninja is already installed |
I also have the same problem. I have installed pytorch1.10, ninja 1.8.2, cuda 11.3. But still cannot run the program.
|
What is the ninja version? Please run the following command and check. ninja --version |
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:
***@***.***>
|
我也遇到了相似问题,ninja: build stopped: subcommand failed.请问怎么解决呀 |
mapillary/inplace_abn#104 Pls check this thread.
|
Ninja is required to load C++ extensions |
|
you can also use conda to isntall ninja-build. Here is the command |
I have installed ninja. I have also tried several pytorch versions, e.g., 0.4.0 / 1.0.1 / 1.2.0 / 1.6.0 / 1.7.1. It always report the below errors. I do not know how to run this code.
Traceback (most recent call last):
File "/usr/local/bin/ninja", line 6, in
from ninja import ninja
ModuleNotFoundError: No module named 'ninja'
Traceback (most recent call last):
File "/home/shuxj/tool/pycharm/helpers/pydev/pydevd.py", line 1664, in
main()
File "/home/shuxj/tool/pycharm/helpers/pydev/pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/home/shuxj/tool/pycharm/helpers/pydev/pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/shuxj/tool/pycharm/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/shuxj/work/code/human_parsing/SCHP/SCHP/simple_extractor_ltcc_color.py", line 24, in
import networks
File "/home/shuxj/work/code/human_parsing/SCHP/SCHP/networks/init.py", line 3, in
from networks.AugmentCE2P import resnet101
File "/home/shuxj/work/code/human_parsing/SCHP/SCHP/networks/AugmentCE2P.py", line 21, in
from modules import InPlaceABNSync
File "/home/shuxj/work/code/human_parsing/SCHP/SCHP/modules/init.py", line 1, in
from .bn import ABN, InPlaceABN, InPlaceABNSync
File "/home/shuxj/work/code/human_parsing/SCHP/SCHP/modules/bn.py", line 10, in
from .functions import *
File "/home/shuxj/work/code/human_parsing/SCHP/SCHP/modules/functions.py", line 18, in
extra_cuda_cflags=["--expt-extended-lambda"])
File "/home/shuxj/.conda/envs/schp/lib/python3.5/site-packages/torch/utils/cpp_extension.py", line 658, in load
is_python_module)
File "/home/shuxj/.conda/envs/schp/lib/python3.5/site-packages/torch/utils/cpp_extension.py", line 827, in _jit_compile
with_cuda=with_cuda)
File "/home/shuxj/.conda/envs/schp/lib/python3.5/site-packages/torch/utils/cpp_extension.py", line 850, in _write_ninja_file_and_build
verify_ninja_availability()
File "/home/shuxj/.conda/envs/schp/lib/python3.5/site-packages/torch/utils/cpp_extension.py", line 890, in verify_ninja_availability
subprocess.check_call('ninja --version'.split(), stdout=devnull)
File "/home/shuxj/.conda/envs/schp/lib/python3.5/subprocess.py", line 271, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '--version']' returned non-zero exit status 1
The text was updated successfully, but these errors were encountered: