Re: can't import ctype in python2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Dec 2, 2010 at 6:45 PM, Ionuț Bîru <ibiru@xxxxxxxxxxxxx> wrote:

> On 12/02/2010 07:45 AM, 李永 wrote:
>
>> On Thu, Dec 2, 2010 at 1:32 PM, Allan McRae<allan@xxxxxxxxxxxxx>  wrote:
>>
>>  On 02/12/10 15:22, 李永 wrote:
>>>
>>>  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 .
>>>>
>>>>
>>>>  Update to python-2.7.1-2
>>>
>>> Allan
>>>
>>>
>>>  thaks, after I revert to a old verion python,  the problem  was fixed.
>>
>>
>>
> who said something about reverting? 2.7.1-2 is a new update that fixes that
> problem
>
> --
> Ionuț
>

I installed the old version python from my local pacman package repository
cache.

-- 
---------------------------------------------------------------
Regards!
Li Yong
Email:   yorklee@xxxxxxxxx
Cell Phone: 13064787950
MSN Messenger: sanyork@xxxxxxxxxxx
Skype: sanyork


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux