[arch-general] can't import ctype in python2

李永 yorklee at gmail.com
Thu Dec 2 00:22:35 EST 2010


Hi, all

I can't run ibus-setup and can't see the ibus imput method pannel, after I
investgation, I find it is a python problem, when I run ibus-setup, I got
the following error:

$ ibus-setup
Traceback (most recent call last):
  File "/usr/share/ibus/setup/main.py", line 31, in <module>
    import ibus
  File "/usr/lib/python2.7/site-packages/ibus/__init__.py", line 26, in
<module>
    from common import *
  File "/usr/lib/python2.7/site-packages/ibus/common.py", line 55, in
<module>
    import ctypes
  File "/usr/lib/python2.7/ctypes/__init__.py", line 10, in <module>
    from _ctypes import Union, Structure, Array
ImportError: No module named _ctypes


and I can't import ctype in python2 too,

$ python2
Python 2.7.1 (r271:86832, Dec  1 2010, 13:45:43)
[GCC 4.5.1 20101125 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/ctypes/__init__.py", line 10, in <module>
    from _ctypes import Union, Structure, Array
ImportError: No module named _ctypes

do you meet the same probem, do I miss some package to install? any hint?
thanks .

-- 
---------------------------------------------------------------
Regards!
Li Yong
Email:   yorklee at gmail.com
Cell Phone: 13064787950
MSN Messenger: sanyork at hotmail.com
Skype: sanyork


More information about the arch-general mailing list