Re: [ctypes-users] Loading a dll file on a Unix computer
Brought to you by:
theller
From: Diez B. R. <de...@we...> - 2016-07-18 22:13:56
|
Hi, while the error-message looks like it could be a path-problem for now, eventually this is bound to fail - you can’t use DLLs built for windows under Unix. At least not just like this. If you can’t use windows, you could try WINE & a Windows-Python. No idea how easy/good that works though. Diez > On 18 Jul 2016, at 21:26, kristine l <per...@gm...> wrote: > > Hi guys! > > I am trying to load the '__CLDevIFace.dll' library found on this page: > > https://github.com/charlie1kimo/Zygo/tree/master/wave_meter_wrapper <https://github.com/charlie1kimo/Zygo/tree/master/wave_meter_wrapper> > > to communicate with a Bristol 621 wavemeter. I would be doing this on a Unix computer, and each time I try to run: > > """ > from ctypes import * > dll = cdll.LoadLibrary('__CLDevIFace.dll') > """ > > It gives me the error: > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary > return self._dlltype(name) > File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__ > self._handle = _dlopen(self._name, mode) > OSError: __CLDevIFace.dll: cannot open shared object file: No such file or directory > > > > I have no idea where to go from here, and the tutorial on the ctypes package is not helping me. > > Thanks for any help! > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports.http://sdm.link/zohodev2dev_______________________________________________ > ctypes-users mailing list > cty...@li... > https://lists.sourceforge.net/lists/listinfo/ctypes-users |