mimms problem on Hardy

kaer kaerbuhez at gmail.com
Fri Sep 5 22:53:21 CEST 2008


On 5 sep, 22:15, kaer <kaerbu... at gmail.com> wrote:
> Hello,
>
> I installed (manually) the last version of mimms -which is a python
> program- on an Ubuntu (8.04-server) box.
> I get that:
>
> kaer at subfighter:~/mimms-3.2$ mimms
> Traceback (most recent call last):
>   File "/usr/bin/mimms", line 21, in <module>
>     from libmimms.core import run
>   File "/usr/lib/python2.5/site-packages/libmimms/core.py", line 31,
> in <module>
>     from . import libmms
>   File "/usr/lib/python2.5/site-packages/libmimms/libmms.py", line 29,
> in <module>
>     libmms.mmsx_connect.argtypes = [c_void_p, c_void_p, c_char_p,
> c_int]
>   File "/usr/lib/python2.5/ctypes/__init__.py", line 361, in
> __getattr__
>     func = self.__getitem__(name)
>   File "/usr/lib/python2.5/ctypes/__init__.py", line 366, in
> __getitem__
>     func = self._FuncPtr((name_or_ordinal, self))
> AttributeError: /usr/lib/libmms.so.0: undefined symbol
>
> If it helps:
> kaer at subfighter:~/mimms-3.2$ ls -l /usr/lib/libmms.so.0
> lrwxrwxrwx 1 root root 15 2008-08-20 01:41 /usr/lib/libmms.so.0 ->
> libmms.so.0.0.2: mmsx_connect
>
> If have no idea where the problem is. Thanks for your ideas,
> suggestions, comments ...

I should have posted the some code of core.py:

"""
This module uses ctypes to interface to libmms. Currently, it just
exposes the mmsx interface, since this one is the most flexible.
"""

from ctypes import *

libmms = cdll.LoadLibrary("libmms.so.0")

# opening and closing the stream
libmms.mmsx_connect.argtypes = [c_void_p, c_void_p, c_char_p, c_int]
libmms.mmsx_connect.restype = c_void_p

libmms.mmsx_close.argtypes = [c_void_p]
libmms.mmsx_close.restype = None


And so on ...

If I comment the mmsx_connect lines, I have the same problem with the
mmsx_close ones ...
If somebody has an idea on how debug a ctypes problem, it would be
very helpful.



More information about the Python-list mailing list