Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

ImportError: DLL load failed: The specified procedure could not be found. #111

Open
Wissotsky opened this issue Jul 20, 2019 · 4 comments
Open

Comments

@Wissotsky
Copy link

C:\Users\Wissotsky\Desktop\butterflow-0.2.4.alpha2-win64>butterflow.exe
Traceback (most recent call last):
File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/initscripts/startup.py", line 14, in run
File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 26, in run
File "butterflow/main.py", line 5, in
File "butterflow/cli.py", line 10, in
ImportError: DLL load failed: The specified procedure could not be found.

@wagesj45
Copy link

I'm getting the same error. I am able to call -h and -prb and -d successfully.

Probing video info

PS F:\butterflow-0.2.4.alpha2-win64> .\butterflow.exe -prb F:\sky.mp4
Video information:
  Streams available     : video
  Resolution            : 1920x1080, SAR 1:1 DAR 16:9
  Rate                  : 23.976 fps
  Duration              : 00:00:13 (13.18s)
  Num of frames         : 316

Getting devices

PS F:\butterflow-0.2.4.alpha2-win64> .\butterflow.exe -d
OpenCL devices:
  Platform              : NVIDIA CUDA
  Platform Vendor       : NVIDIA Corporation
  Platform Version      : OpenCL 1.2 CUDA 10.1.120
*  Device 0             : GeForce GTX 1060 6GB
      Version           : OpenCL 1.2
      Version           : 431.36
      Work Sizes        : 1024, 1024x1024x64
      Compatible        : Yes

Processing file

PS F:\butterflow-0.2.4.alpha2-win64> .\butterflow.exe -o f:\skyslow.mp4 F:\sky.mp4
Traceback (most recent call last):
  File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/initscripts/__startup__.py", line 14, in run
  File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 26, in run
  File "butterflow/__main__.py", line 8, in <module>
  File "butterflow/cli.py", line 288, in main
RuntimeError: opencl call failed

@Wissotsky
Copy link
Author

I am actually unable to do anything

@dthpham
Copy link
Owner

dthpham commented Jul 20, 2019

So it's failing at import cv2 and again at if not args.sw and not ocl.compat_ocl_device_available():. Probably a packaging thing (a missing DLL in the package or PATHS weren't set right).

I didn't change much code so I figured I didn't have to test this latest version, but thanks for the report I'll try to get it fixed sometime today. Use the latest "stable" version (0.2.3) for now. If you're getting device detection errors look at #103 (comment) for a fix.

@dthpham
Copy link
Owner

dthpham commented Jul 22, 2019

Just pushed a fix (I hope it works). You can download 0.2.4a3 from the Latest Releases page and test it out. I don't have a second Windows machine to test on a clean environment so I mostly depend on user reports.

Update: Never mind, just got a report that it's not working. Hang tight while I try to get this working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants