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: DLL load failed while importing win32file

See original GitHub issue

i had proceed according to the install instruction When I ran the demonstration, I got the following error.

importError: DLL load failed while importing win32file

I’d appreciate it if someone would help me

command list

conda install pytorch torchvision -c pytorch conda install opencv pip install git+https://github.com/facebookresearch/fvcore pip install cython; pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI #two file modify argument_spec.h , cast.h “C:\Program Files (x86)\Microsoft Visual Studio\2019\community\VC\Auxiliary\Build\vcvars64.bat” cd detectron2 python setup.py build develop

there was no error until the command above

execute demo

python demo/demo.py --config-file configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml --input input1.jpg --opts MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl`

… … File “C:\Users\CSNAM\Anaconda3\envs\detectron_env\lib\site-packages\portalocker_init_.py”, line 4, in <module> from . import portalocker File “C:\Users\CSNAM\Anaconda3\envs\detectron_env\lib\site-packages\portalocker\portalocker.py”, line 9, in <module> import win32file ImportError: DLL load failed while importing win32file

Did i miss something ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

23reactions
csnamcommented, Feb 11, 2020

With your advice, the error was eliminated and it was successfully implemented. Thank you. i had needed the below command “conda install pywin32”

1reaction
jefflomaxcommented, Feb 10, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

DLL load failed" while importing win32api - Stack Overflow
Solved. If you are working in a miniconda on conda environment. You could just install pywin32 using conda instead of pip.
Read more >
DLL load failed while importing win32file: The specified ...
Describe the bug. DLL load failed while importing win32file: The specified module could not be found. To Reproduce. Any az command,
Read more >
Azure-ML>>ImportError: DLL load failed while importing ...
"ImportError: DLL load failed while importing win32file: The specified procedure could not be found." when I tried to access my workspace.
Read more >
How to Fix Python ImportError: Dll Load Failed Error
Fix 1. Reinstall Library. In most cases, the error occurs when you import a library. The cause of the error may be incorrect/incomplete ......
Read more >
How To Fix Python - “ImportError: DLL load failed" - Gankrin
Sometimes it happens if there are multiple versions of Python installed. Uninstall the not required version or use Python Virtual Environment (virtualenv) to ......
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