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

cannot import prroi_pool2d? #18

Open
Neo-Zhangjiajie opened this issue May 10, 2020 · 1 comment
Open

cannot import prroi_pool2d? #18

Neo-Zhangjiajie opened this issue May 10, 2020 · 1 comment

Comments

@Neo-Zhangjiajie
Copy link

Windows10
cudatoolkit 9.0
python 3.6
pytorch 1.1.0
torchvision 0.3.0

C:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: Command 'cl' returned non-zero exit status 1.
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
Traceback (most recent call last):
File "C:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\utils\cpp_extension.py", line 949, in _build_extension_module
check=True)
File "C:\Users\86189\Anaconda3\envs\py36\lib\subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\86189\Anaconda3\envs\py36\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\86189\Anaconda3\envs\py36\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\86189\Desktop\GANDissection\netdissect_main
.py", line 410, in
main()
File "C:\Users\86189\Desktop\GANDissection\netdissect_main
.py", line 220, in main
segrunner = GeneratorSegRunner(autoimport_eval(args.segmenter))
File "C:\Users\86189\Desktop\GANDissection\netdissect\autoeval.py", line 36, in autoimport_eval
return eval(term, {}, AutoImportDict())
File "", line 1, in
File "C:\Users\86189\Desktop\GANDissection\netdissect\segmenter.py", line 68, in init
segarch, segvocab, epoch)
File "C:\Users\86189\Desktop\GANDissection\netdissect\segmenter.py", line 502, in load_unified_parsing_segmentation_model
weights=os.path.join(segmodel_dir, 'decoder_epoch_%d.pth' % epoch))
File "C:\Users\86189\Desktop\GANDissection\netdissect\upsegmodel\models.py", line 215, in build_decoder
fpn_dim=512)
File "C:\Users\86189\Desktop\GANDissection\netdissect\upsegmodel\models.py", line 271, in init
from .prroi_pool import PrRoIPool2D
File "C:\Users\86189\Desktop\GANDissection\netdissect\upsegmodel\prroi_pool_init_.py", line 12, in
from .prroi_pool import *
File "C:\Users\86189\Desktop\GANDissection\netdissect\upsegmodel\prroi_pool\prroi_pool.py", line 14, in
from .functional import prroi_pool2d
File "C:\Users\86189\Desktop\GANDissection\netdissect\upsegmodel\prroi_pool\functional.py", line 22, in
verbose=False
File "C:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\utils\cpp_extension.py", line 644, in load
is_python_module)
File "C:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\utils\cpp_extension.py", line 813, in jit_compile
with_cuda=with_cuda)
File "C:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\utils\cpp_extension.py", line 866, in write_ninja_file_and_build
build_extension_module(name, build_directory, verbose)
File "C:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\utils\cpp_extension.py", line 962, in build_extension_module
raise RuntimeError(message)
RuntimeError: Error building extension 'prroi_pooling': b'[1/3] cl /showIncludes -DTORCH_EXTENSION_NAME=prroi_pooling -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\TH
-IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\Users\86189\Anaconda3\envs\py36\Include -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 -c C:\Users\86189\Desktop\GANDissection\netdissect\upsegmodel\prroi_pool\src\prroi_pooling_gpu.c /Foprroi_pooling_gpu.o\r\nFAILED: prroi_pooling_gpu.o \r\ncl /showIncludes -DTORCH_EXTENSION_NAME=prroi_pooling -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\TH -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\Users\86189\Anaconda3\envs\py36\Include -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 -c C:\Users\86189\Desktop\GANDissection\netdissect\upsegmodel\prroi_pool\src\prroi_pooling_gpu.c /Foprroi_pooling_gpu.o\r\nTraceback (most recent call last):\n File "c:\users\86189\anaconda3\envs\pytorch\lib\runpy.py", line 193, in run_module_as_main\n "main", mod_spec)\n File "c:\users\86189\anaconda3\envs\pytorch\lib\runpy.py", line
85, in run_code\n exec(code, run_globals)\n File "C:\Users\86189\Anaconda3\envs\pytorch\Scripts\cl.exe\main.py", line 4, in \n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\cl\bin\cl.py", line 5, in \n from kombu import Connection\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\kombu\init.py", line 81, in getattr\n
module = import(object_origins[name], None, None, [name])\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\kombu\connection.py", line 23, in \n from kombu import exceptions\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\kombu\exceptions.py", line 6, in \n from amqp import ChannelError, ConnectionError, ResourceError\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\amqp\init.py", line 33, in \n from .connection import Connection # noqa\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\amqp\connection.py", line 21, in \n from .transport
import Transport\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\amqp\transport.py", line 8, in \n import ssl\n File "c:\users\86189\anaconda3\envs\pytorch\lib\ssl.py", line 98, in \n import ssl # if we can't import it, let the error propagate\nImportError: DLL load failed: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\n[2/3] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc -DTORCH_EXTENSION_NAME=prroi_pooling -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\TH -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\Users\86189\Anaconda3\envs\py36\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
-c C:\Users\86189\Desktop\GANDissection\netdissect\upsegmodel\prroi_pool\src\prroi_pooling_gpu_impl.cu -o prroi_pooling_gpu_impl.cuda.o\r\nFAILED: prroi_pooling_gpu_impl.cuda.o \r\nC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc -DTORCH_EXTENSION_NAME=prroi_pooling -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\TH -IC:\Users\86189\Anaconda3\envs\py36\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\Users\86189\Anaconda3\envs\py36\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
-c C:\Users\86189\Desktop\GANDissection\netdissect\upsegmodel\prroi_pool\src\prroi_pooling_gpu_impl.cu -o prroi_pooling_gpu_impl.cuda.o\r\nTraceback (most recent call last):\r\n File "c:\users\86189\anaconda3\envs\pytorch\lib\runpy.py", line 193, in _run_module_as_main\r\n "main", mod_spec)\r\n File "c:\users\86189\anaconda3\envs\pytorch\lib\runpy.py", line 85, in _run_code\r\n exec(code, run_globals)\r\n File "C:\Users\86189\Anaconda3\envs\pytorch\Scripts\cl.exe\main.py", line 4, in \r\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\cl\bin\cl.py", line 5, in \r\n from kombu import Connection\r\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\kombu\init.py", line 81, in getattr\r\n module = import(object_origins[name], None, None, [name])\r\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\kombu\connection.py", line 23, in \r\n from kombu import exceptions\r\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\kombu\exceptions.py", line 6, in \r\n from amqp import ChannelError, ConnectionError, ResourceError\r\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\amqp\init.py", line 33, in \r\n from .connection import Connection # noqa\r\n
File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\amqp\connection.py", line 21, in \r\n from .transport import Transport\r\n File "c:\users\86189\anaconda3\envs\pytorch\lib\site-packages\amqp\transport.py", line 8, in \r\n import ssl\r\n File "c:\users\86189\anaconda3\envs\pytorch\lib\ssl.py", line 98, in \r\n import _ssl # if we can't import it, let the error propagate\r\nImportError: DLL load failed: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\nninja: build stopped: subcommand failed.\r\n'

@davidbau
Copy link
Contributor

davidbau commented May 11, 2020 via email

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