SU-ECE-17-7 / hotspotter

Apache License 2.0
0 stars 1 forks source link

Error with libhesaff.dll in Windows #19

Open mattdioso opened 7 years ago

mattdioso commented 7 years ago

C:\Users\Matt\Desktop\code\hotspotter>python main.py [common] not profiling. [C!] Caught OSError: [Error 193] %1 is not a valid Win32 application [C!] cwd='C:\Users\Matt\Desktop\code\hotspotter' [C!] load_clib(libname='hesaff' root_dir='C:\Users\Matt\Desktop\code\hesaff\pyhesaff') [C!] lib_fpath = 'C:\Users\Matt\Desktop\code\hesaff\pyhesaff\libhesaff.dll' [C] Cannot LOAD 'hesaff' dynamic library. Is there a missing dependency? [extern_feat] looking for hesaff in C:\Users\Matt\Desktop\code\hesaff... [extern_feat] could not import hesaff: ImportError("[C] Cannot LOAD 'hesaff' dynamic library. Is there a missing dependency?",) [extern_feat] old hessaff is available Traceback (most recent call last): File "main.py", line 151, in hs = main(defaultdb=None, usedbcache=True) File "main.py", line 101, in main from hotspotter import HotSpotterAPI as api File "C:\Users\Matt\Desktop\code\hotspotter\hotspotter\HotSpotterAPI.py", line 24, in import feature_compute2 as fc2 File "C:\Users\Matt\Desktop\code\hotspotter\hotspotter\feature_compute2.py", line 14, in import extern_feat File "C:\Users\Matt\Desktop\code\hotspotter\hotspotter\extern_feat.py", line 103, in detect_kpts = detect_kpts_new NameError: name 'detect_kpts_new' is not defined

This is a launch problem in Windows. There's a couple things to note:

mattdioso commented 7 years ago

I re-installed all of the dependencies for 32-bit machines (i had trouble finding a 64-bit make.exe so I decided to go for 32-bit) and HS is still unable to load the .dll file. When it attempts to load, it crashes in the following line within the ctypes library:

`(Pdb) s

c:\users\matt\anaconda2\lib\ctypes__init.py(362)init__() -> self._handle = _dlopen(self._name, mode) (Pdb) s WindowsError: (126, 'The specified module could not be found') c:\users\matt\anaconda2\lib\ctypes__init.py(362)init__() -> self._handle = _dlopen(self._name, mode) (Pdb) s`

where self._name is the filepath to the library

AudreyBeard commented 7 years ago

Has Eddy seen this?

On Mon, May 1, 2017 at 1:51 PM, mattdioso notifications@github.com wrote:

I re-installed all of the dependencies for 32-bit machines (i had trouble finding a 64-bit make.exe so I decided to go for 32-bit) and HS is still unable to load the .dll file. When it attempts to load, it crashes in the following line within the ctypes library:

`(Pdb) s

c:\users\matt\anaconda2\lib\ctypesinit.py(362)init() -> self._handle = _dlopen(self.

name, mode) (Pdb) s WindowsError: (126, 'The specified module could not be found') c:\users\matt\anaconda2\lib\ctypes_init.py(362)init() -> self._handle = _dlopen(self._name, mode) (Pdb) s`

where self._name is the filepath to the library

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SU-ECE-17-7/hotspotter/issues/19#issuecomment-298429085, or mute the thread https://github.com/notifications/unsubscribe-auth/AQKVLfBH_PVSZW2jRd7aybvZzmNJlyK7ks5r1kW3gaJpZM4NI3Jp .

-- Joshua Beard

mattdioso commented 7 years ago

I have e-mailed him about it

mattdioso commented 7 years ago

I tried running the line where it crashes in the Python interpreter on its own with the absolute path the libhesaff.dll file and it returned this new error:

default dll error

Recreating: C:\Users\Matt>python Python 2.7.13 |Anaconda 4.3.1 (32-bit)| (default, Dec 19 2016, 13:36:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org

import ctypes python dll kernel32 kernel32 ctypes.cdll['C:\Users\Matt\Anaconda2\Lib\site-packages\pyhesaff\libhesaff.dll'] C:\Users\Matt\Anaconda2\Lib\site-packages\pyhesaff\libhesaff.dll C:\Users\Matt\Anaconda2\Lib\site-packages\pyhesaff\libhesaff.dll Traceback (most recent call last): File "", line 1, in File "C:\Users\Matt\Anaconda2\lib\ctypes__init.py", line 439, in getitem return getattr(self, name) File "C:\Users\Matt\Anaconda2\lib\ctypes__init.py", line 434, in getattr__ dll = self._dlltype(name) File "C:\Users\Matt\Anaconda2\lib\ctypes\init.py", line 364, in init__ self._handle = _dlopen(self._name, mode) WindowsError: [Error 127] The specified procedure could not be found