r9y9/pylibfreenect2

Fail to import due to a "DLL load failed error"

jgv115 opened this issue · 9 comments

I'm running Windows 10. Protonect works fine and I have Microsoft Visual C++ 2015 Redistributable (x64) and (x86) installed.

When I try to import pylibfreenect2, it comes up with the error:

from .libfreenect2 import *
ImportError: DLL load failed: The specified module could not be found.
r9y9 commented

Looks like there are missing DLLs not in PATH and it's not specific problem to pylibfreenect2. While googling I found there are many similar reports. e.g., opencv/opencv-python#36.

I also meet this error, I want to know that how to deal with it at last, thanks

from pylibfreenect2 import Freenect2, SyncMultiFrameListener

ImportError: cannot import name 'Freenect2'

i have the same problem
@jgv115, @hjw1007 did you solve it?

Hi all, I ran into the same problem and was able to fix it through copying all of dlls generated in the libfreenect2 build (in build/install/bin by default in the libfreenect2 source directory),

freenect2.dll
glfw3.dll
libusb-1.0.dll
turbojpeg.dll

to my miniconda3 path,

C:\Users\<username>\AppData\Local\Continuum\miniconda3

Alternatively I believe you could append the path to the dlls to your path variable,

set path=%PATH%;C:\libfreenect2\build\install\bin
r9y9 commented

Alternatively I believe you could append the path to the dlls to your path variable,

Yes. See also:

- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
- set LIBFREENECT2_BIN=https://github.com/OpenKinect/libfreenect2/releases/download/%LIBFREENECT2_VERSION%/%LIBFREENECT2_ARCHIVE_NAME%.zip
- curl -sLO %LIBFREENECT2_BIN%
- 7z x %LIBFREENECT2_ARCHIVE_NAME%.zip
- set LIBFREENECT2_INSTALL_PREFIX=C:\\projects\\pylibfreenect2\\%LIBFREENECT2_ARCHIVE_NAME%
- set PATH=%LIBFREENECT2_INSTALL_PREFIX%\\bin;%PATH%
.

https://github.com/jmarkow
i just append the path to the dlls to your path variable,but it dose not work ,so what should i do? and i do not know where to copy all of dlls generated in the libfreenect2 build in my computer? Thank you!

C:\Users<username>\AppData\Local\Continuum\miniconda3

I cannot do "from pylibfreenect2 import Freenect2", where is miniconda3 path"C:\Users<username>\AppData\Local\Continuum\miniconda3"?I cannot find it.@jmarkow

Hi all, I ran into the same problem and was able to fix it through copying all of dlls generated in the libfreenect2 build (in build/install/bin by default in the libfreenect2 source directory),

freenect2.dll
glfw3.dll
libusb-1.0.dll
turbojpeg.dll

to my miniconda3 path,

C:\Users\<username>\AppData\Local\Continuum\miniconda3

Alternatively I believe you could append the path to the dlls to your path variable,

set path=%PATH%;C:\libfreenect2\build\install\bin

thanks a lot

** jmarkow**

It worked!!!!!!

I found the "F:\vcpkg\installed\x64-windows\bin" and added it to my PATH.