question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError on from maskrcnn_benchmark import _C

See original GitHub issue

❓ Questions and Help

ImportError: DLL load failed: The specified module could not be found.

I’ve build the project successfully on Winodws 10 with pytorch 1.0, python 3.6, VS 2017, CUDA 9.2, using Conda environment. but I get the above error when calling [nms.py] from maskrcnn_benchmark import _C I ran python setup.py build develop and I have a file REPO_FOLDER/maskrcnn_benchmark/_C.cp36-win_amd64.pyd and _C.py file in CONDA_ENV_FOLDER\pytorch10\Lib\site-packages\maskrcnn_benchmark-0.1-py3.6-win-amd64.egg\maskrcnn_benchmark

Also, the demo notebook works correctly #1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
adizholcommented, Jan 22, 2019

Solved. The PyCharm environment was correct. After restarting windows, the training script works from PyCharm too. Thanks 😃

0reactions
fmassacommented, Jan 22, 2019

You might need to update the settings in PyCharm to take into account your new environment maybe?

Read more comments on GitHub >

github_iconTop Results From Across the Web

from maskrcnn_benchmark import _C ImportError ... - GitHub
I met an ImporError when I ran WebCam demo. from maskrcnn_benchmark import _C ImportError: /home/user/github/maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython- ...
Read more >
cannot import name '_C' from 'maskrcnn_benchmark ...
修改处:nms.pyfrom maskrcnn_benchmark import _C修改为:from ._utils import _C. ... ImportError: cannot import name 'XXX' 问题解决方案.
Read more >
MaskTextSpotterV3报错- 宋岳庭- 博客园
... maskrcnn_benchmark import _C ImportError: /home/xuehp/git/MaskTextSpotterV3/tools/maskrcnn_benchmark/_C.cpython-36m-x86_64-linux-gnu.so: ...
Read more >
module 'torch.cuda' has no attribute 'amp' - You.com | The search ...
... line 15, in from maskrcnnbenchmark.data import makedataloader File ... ImportError: cannot import name 'amp' from 'torch.cuda' (C:\Users\.
Read more >
maskrcnn_benchmark/utils/model_zoo.py · Cyril666/ContourNet at ...
All Rights Reserved. import os import sys try: from torch.utils.model_zoo import _download_url_to_file, urlparse, HASH_REGEX except ImportError: # support ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found