mimms problem on Hardy

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kaer

    mimms problem on Hardy

    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@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_con nect.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@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 ...
  • kaer

    #2
    Re: mimms problem on Hardy

    On 5 sep, 22:15, kaer <kaerbu...@gmai l.comwrote:
    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@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_con nect.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@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.LoadLibrar y("libmms.so.0" )

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

    libmms.mmsx_clo se.argtypes = [c_void_p]
    libmms.mmsx_clo se.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.

    Comment

    Working...