Python: ImportError
Posted: Sat Dec 25, 2010 10:18 pm
Hello...
I'm getting a rare problem and I'm out of ideas... My LMDE was working perfectly until yesterday after I installed Glade:
it said it had a lot of files to remove (I didn't found anything I could need so I said Y), then after a reboot everything is gone to hell....
Now AWN modules, alacarte, mint-anything, guake, etc,etc don't work. In terminal they ALL give
amog other things, of course, I've tried:
and nothing works... funny thing is that running "python" and "python3" brings me a fully functional interpreter without problems...
But when I type "import gtk" I get:
So now, what should I do ?
Thanks in advace
I'm getting a rare problem and I'm out of ideas... My LMDE was working perfectly until yesterday after I installed Glade:
Code: Select all
sudo apt-get -t experimental install glade
Now AWN modules, alacarte, mint-anything, guake, etc,etc don't work. In terminal they ALL give
Code: Select all
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
from gtk import _gtk
ImportError: could not import gio
ImportError: could not import gio
cannot import name xxx from gtk
Code: Select all
sudo apt-get update
sudo apt-get purge glade
sudo apt-get install --reinstall python
sudo apt-get install --reinstall python3
But when I type "import gtk" I get:
Code: Select all
import gtk
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
from gtk import _gtk
ImportError: could not import gio
ImportError: could not import gio
Thanks in advace