Ticket #63 (closed defect: fixed)
Python ctypes module is broken
| Reported by: | davea | Owned by: | saurik |
|---|---|---|---|
| Priority: | major | Component: | General |
| Keywords: | Cc: | dave@… |
Description
The ctypes module is broken in the latest version of Python. It seems that the _ctypes module that does all the heavy lifting has been missed out of the package. However a file with a similar filename (/usr/lib/python2.5/lib-dynload/_ctypes_test.dylib) does exist but doesn't seem to provide equivalent functionality.
Steps to reproduce:
- Open the python interpreter on your iPhone using MobileTerminal or an ssh session
- Try to import the ctypes module by typing 'import ctypes'
- Observe failure to import module
Expected results:
The ctypes module is imported and available to use.
Actual results:
The ctypes module is not imported, and the following error is displayed:
>>> import ctypes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/ctypes/__init__.py", line 10, in <module>
from _ctypes import Union, Structure, Array
ImportError: No module named _ctypes
I'm pretty sure this used to work with previous versions of Python.
Change History
Note: See
TracTickets for help on using
tickets.
