mimms problem on Hardy

K

kaer

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_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@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 ...
 
K

kaer

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_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@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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top