Писал скрипт для себя с использованием модуля pexpect
Решил в хэлпе про него почитать:
user@last:~/script/test$ python
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help()
Input string: //ввел Enter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site.py", line 468, in __call__
import pydoc
File "/usr/lib/python2.7/pydoc.py", line 57, in <module>
from string import expandtabs, find, join, lower, split, strip, rfind, rstrip
ImportError: cannot import name expandtabs
>>>
Снес модуль, проблема не исчезла.