Guake: Error: python2 No module named guake

Asked by Siddhesh Ambhire

I was installing mycroft from https://github.com/MycroftAI/mycroft-core.git. I installed its requirements, but later I switched to its apt repository. After doing all this I also upgraded system using sudo apt-get update && sudo apt-get upgrade.

After restarting the system I couldn't open guake. It was showing error: python2: No module named guake. I looked for versions of python installed I found that I have two.

~ $ which python
/usr/local/bin/python
~ $ python
Python 2.7.11+ (default, Apr 17 2016, 14:00:29)

and other in /usr/bin/python.
~ $ /usr/bin/python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)

Second python was able to import guake successfully while the first failed. I don't know how this problem has arisen. Can anyone point me in right direction?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu guake Edit question
Assignee:
No assignee Edit question
Solved by:
Siddhesh Ambhire
Solved:
Last query:
Last reply:
Revision history for this message
Siddhesh Ambhire (sid-ambi-deactivatedaccount) said :
#1

Should I fix this by shuffling the folders in PATH variable or is it dangerous? I'm a newbie so just asking...

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#3

What is the output of these Terminal commands?

apt-cache policy python

apt-cache policy python2.7

cat /etc/lsb-release

Revision history for this message
Siddhesh Ambhire (sid-ambi-deactivatedaccount) said :
#4

~ $ apt-cache policy python
python:
  Installed: 2.7.11-1
  Candidate: 2.7.11-1
  Version table:
 *** 2.7.11-1 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status

~ $ apt-cache policy python2.7
python2.7:
  Installed: 2.7.12-1ubuntu0~16.04.1
  Candidate: 2.7.12-1ubuntu0~16.04.1
  Version table:
 *** 2.7.12-1ubuntu0~16.04.1 500
        500 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.7.11-7ubuntu1 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

~ $ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"

Revision history for this message
Siddhesh Ambhire (sid-ambi-deactivatedaccount) said :
#5

I'm reinstalling OS. I have screwed up audio on my system because of some unrelated reason :(. Problem solved!