[liblouis-liblouisxml] Problems with Python bindings on Win32

  • From: "Leo" <fhaxbox66@xxxxxxxxxxxxxx>
  • To: <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Sat, 22 Aug 2009 12:10:40 +0200

Hi,

I cannot install the new bindings. I am not even sure if the .zip file does
contain the right .dll. Apart from liblouis-xml, it contains liblouis-0.dll.
I don't know what the "-0" is good for and I don't know if it contains the
liblouis code.

To install the Python bindings to upgrade to v1.7, I have done the
following:
- copy the liblouis-0.dll to the windows/system32 dir and rename it to
liblouis.dll, as the previous version was also named liblouis.dll.
- run "python setup.py install" from the Python bindings subdir of the
tarball.

First, the setup script did not find __init__.py as this file has a strange
suffix .in which might be removed when running make. Windows users usually
do not have make. So I renamed __init__.py.in to __init__.py and tried
again. Yet, the .dll could not be imported. See the traceback below for
details. Forgive me for reiterating my earlier call for a well-maintained
Python package that installs out of the box on all platforms.

Leo


Traceback (most recent call last):
  File "setup.py", line 6, in <module>
    import louis
  File "C:\Dokumente und Einstellungen\stefan\Eigene
Dateien\dev\liblouis\python
\louis\__init__.py", line 38, in <module>
    liblouis = _loader["###LIBLOUIS_SONAME###"]
  File "C:\Python26\lib\ctypes\__init__.py", line 428, in __getitem__
    return getattr(self, name)
  File "C:\Python26\lib\ctypes\__init__.py", line 423, in __getattr__
    dll = self._dlltype(name)
  File "C:\Python26\lib\ctypes\__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] Das angegebene Modul wurde nicht gefunden

For a description of the software and to download it go to
http://www.jjb-software.com

Other related posts: