The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TabError: inconsistent use of tabs and spaces in indentation

Discussion in 'General Discussion' started by vlee, Nov 1, 2011.

  1. vlee

    vlee Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    272
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Las Vegas, Nevada, United Stat
    cPanel Access Level:
    Root Administrator
    I have tried everything from the following thread

    http://forums.cpanel.net/f5/yum-updatesd-issue-115905.html


    I am still getting this error.

    Code:
    
    root@ns3 [~]# Traceback (most recent call last):
      File "/usr/sbin/yum-updatesd", line 35, in ?
        import dbus
      File "/usr/lib/python2.4/site-packages/dbus/__init__.py", line 1, in ?
        from _dbus import *
      File "/usr/lib/python2.4/site-packages/dbus/_dbus.py", line 48, in ?
        from proxies import *
      File "/usr/lib/python2.4/site-packages/dbus/proxies.py", line 2, in ?
        import introspect_parser
      File "/usr/lib/python2.4/site-packages/dbus/introspect_parser.py", line 1, in ?
        import libxml2
      File "/usr/lib/python2.4/site-packages/libxml2.py", line 215
        pass
           ^
    TabError: inconsistent use of tabs and spaces in indentation
    
    
    
    Code:
    
    root@ns3 [~]# rpm -q python python-devel
    python-2.4.3-44.el5_7.1
    python-devel-2.4.3-44.el5_7.1
    
    
    Has anyone have ideas on how to fix this.
     
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    Have you tried rpm -V against these rpms and libxml2-python?

    Thanks!
     
  3. vlee

    vlee Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    272
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Las Vegas, Nevada, United Stat
    cPanel Access Level:
    Root Administrator
    I did that and it reinstalled them on the next cPanel update so I just live with the errors
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The errors are related to the yum package manager notification system (basically yum-updatesd provides notification of updates which are available to be applied on your system). The errors usually occur if there is an issue with these two packages specifically:

    dbus-python
    libxml2-python

    You'd normally only see it when you issue this command (or the server reboots):

    Code:
    /etc/init.d/yum-updatesd restart
    When you say you tried everything from the prior forum thread, what does everything mean specifically? Normally, doing an rpm forced reinstall of the two packages would correct the error such as this on CentOS 5 for a 64-bit system:

    Code:
    rpm --force -hUv http://mirror.centos.org/centos/5/os/x86_64/CentOS/dbus-python-0.70-9.el5_4.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.12.el5_7.1.x86_64.rpm
    You would need to find the exact rpms for your version of CentOS and architecture type (32-bit or 64-bit). Again, the command above is for the most recent dbus-python and libxml2-python rpms for CentOS 5.7 on a 64-bit system.
     
  5. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    Same issue here

    how to find/update the exact rpms ?

    thanks
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    What architecture and OS version are you running?

    Code:
    cat /etc/redhat-release
    uname -a
     

Share This Page