_ctypes not found in ActivePython-2.5.2.2-solaris8-sparc

Posted by mueller on 2008-09-10 05:30

Hello,

when I try to use ctypes I get the following error:

> /aspy25/bin/python test_ctypes.py

Traceback (most recent call last):
  File "test_ctypes.py", line 4, in <module>
    import ctypes.test

  File "/aspy25/lib/python2.5/ctypes/__init__.py", line 10, in <module>
    from _ctypes import Union, Structure, Array
ImportError: No module named _ctypes

seems that a ctypes .so is not included ActivePython-2.5.2.2-solaris8-sparc
distribution or am I missing something?

Kind regards,
Mueller

P.S.: on python bug tracker there is an open issue that ctypes cannot be compiled/installed on Solaris when compiled with the Sun C compiler.
Was aspython compiled with the Sun C compiler?

mueller | Thu, 2008-09-11 06:13

I should have known before asking

I just found the link where it is all documented:

http://aspn.activestate.com/ASPN/docs/ActivePython/2.5/whatsincluded.html
describes that ctypes is not included on Solaris!

That's a pity.

Kind regards,
Mueller