ImportError: DLL load failed while importing win32file
See original GitHub issuei 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:
- Created 4 years ago
- Comments:5
Top GitHub Comments
With your advice, the error was eliminated and it was successfully implemented. Thank you. i had needed the below command “conda install pywin32”
What version of Python? https://github.com/mhammond/pywin32/issues/1431