You are not logged in.

#1 2013-07-02 13:53:06

defm03
Member
Registered: 2013-06-28
Posts: 5
Website

libtcodpy - problem with ctypes

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    import libtcodpy as libtcod
  File "/home/defm03/Repositories/baku-haku/libtcodpy.py", line 47, in <module>
    _lib = ctypes.cdll['./libtcod.so']
  File "/usr/lib/python2.7/ctypes/__init__.py", line 440, in __getitem__
    return getattr(self, name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 435, in __getattr__
    dll = self._dlltype(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: ./libtcod.so: wrong ELF class: ELFCLASS64

I was going to continue work on my small roguelike game with libtcod, but it suddenly stopped working. I didn't touch it for few months, so first thing I've done is updating this lib. It didn't work, so next, I tried importing libtcodpy from libtcod package which I've get from aur. Still nothing. Any ideas?

Last edited by defm03 (2013-07-02 13:53:51)

Offline

#2 2013-07-02 14:18:29

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: libtcodpy - problem with ctypes

It would appear that libtcod is installed for the wrong architecture (64-bit).

Offline

Board footer

Powered by FluxBB