Re: Loading a dll file on a Unix computer
"Diez B. Roggisch" <[email protected]> Tue, 19 Jul 2016 00:13:41 +0200
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/ctypes-users ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/ctypes-users
signature.asc
(application/pgp-signature, 496 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJXjVSVAAoJEMgWrvcLlYXnU+oH/A/B092Fq7AfFa3mq/LdQSY5 tTzzV8fH0fK4pgj78lw/+Dz9jxyOSAXUZ3hTBN1WLbOwHLxfUCCsMcYZeUY5VXtR Me+eG/Z5kI+ODGbO0j1LpCmxadNs04bn1USC4Tq1lgMahA/oneTypObfo7KvnzWn Pltot/EEgEuTq2jZTDvh52rMCmS9O2FxERFwX6MLAi2WC+Tcs2GHT4sxP9R8+8WF Z4z9shWuF6EB1B/M4CpcNExCp3yiOoyKpr91fw9WaGrgU8Hp9Io4R8i0iSWHSn5L JYHftZA1VHL2DyQhsGfY+jH8iT5Aa8ACA5GrCHeAKQIbkf/wIyBz9kstRuleei8= =1lNc -----END PGP SIGNATURE-----