You are not logged in.

#1 2016-12-26 18:35:36

redy123
Member
Registered: 2016-12-26
Posts: 13

[SOLVED] Can't launch Guake or terminator, some python error

So i installed both of these terminals to try them out and they are not launching. Starting them from gnome-terminal gives this output:

[redy@RedyPC ~]$ guake
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/site-packages/guake/main.py", line 28, in <module>
    import gtk
  File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: No module named cairo
[redy@RedyPC ~]$

When i try to run terminator i have this output

[redy@RedyPC ~]$ terminator
Traceback (most recent call last):
  File "/usr/bin/terminator", line 23, in <module>
    import psutil
ImportError: No module named psutil

I tried using "pip install psutil", but it didn't help. It still ends with the same error.

Last edited by redy123 (2016-12-26 23:18:05)

Offline

#2 2016-12-26 19:07:16

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [SOLVED] Can't launch Guake or terminator, some python error

guake: seems python2-cairo is not installed
terminator: seems python2-psutil is not installed

How did you install the programs? If you install them with pacman the packges should be installed as dependencies. automatically

Offline

#3 2016-12-26 19:07:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] Can't launch Guake or terminator, some python error

On Arch, it is better to not use pip.  Use pacman

ewaller@turing ~ 1001 %pacman -Ss psutil
extra/psutils 1.17-5 [installed]
    A set of postscript utilities
community/python-psutil 5.0.1-1
    A cross-platform process and system utilities module for Python
community/python2-psutil 5.0.1-1
    A cross-platform process and system utilities module for Python2
ewaller@turing ~ 1002 %

Note that the package you need is available in the repositories.  Also, note that the default Python on Arch Linux is version 3.x.  You need to install the Python2 version of the package.

Oh, And Welcome to Arch Linux smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2016-12-26 19:12:08

loqs
Member
Registered: 2014-03-06
Posts: 19,183

Re: [SOLVED] Can't launch Guake or terminator, some python error

Welcome to the arch linux forums redy123.
guake has a dependency on python2-gconf which has a dependency on pygtk which has a dependency on python2-cairo.
terminator has a dependency on python2-psutil.
So how did you install guake and terminator?

$ pip -V
pip 9.0.1 from /usr/lib/python3.5/site-packages (python 3.5)

On arch pip and python refer to the python 3 versions so would not resolve a python 2 issue.

pip install psutil

As you did not specify the --user option I assume you ran this command as root so the files are installed system wide but not tracked by pacman,  this is not recommended.
edit:
grammar by not as

Last edited by loqs (2016-12-26 19:22:33)

Offline

#5 2016-12-26 22:06:00

redy123
Member
Registered: 2016-12-26
Posts: 13

Re: [SOLVED] Can't launch Guake or terminator, some python error

I installed terminator and guake using "sudo pacman -S terminator/guake". Now i get this:

[redy@RedyPC ~]$ terminator
ConfigBase::load: Unable to open /home/redy/.config/terminator/config ([Errno 2] Nie ma takiego pliku ani katalogu: '/home/redy/.config/terminator/config')
Warning: python-keybinder is not installed. This means the hide_window shortcut will be unavailable
Unable to bind hide_window key, another instance/window has it.

second line says there is no file or directory '/home/redy/.config/terminator/config
And this:

[redy@RedyPC ~]$ guake
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/site-packages/guake/main.py", line 45, in <module>
    from guake.guake_app import Guake
  File "/usr/lib/python2.7/site-packages/guake/guake_app.py", line 29, in <module>
    import keybinder
ImportError: No module named keybinder

I have no ide why pacman didn't (or not correctly) installed dependencies.

Offline

#6 2016-12-26 22:15:02

loqs
Member
Registered: 2014-03-06
Posts: 19,183

Re: [SOLVED] Can't launch Guake or terminator, some python error

What is the output of

$ pacman -Qkk python2-cairo python2-psutil

Offline

#7 2016-12-26 22:21:36

redy123
Member
Registered: 2016-12-26
Posts: 13

Re: [SOLVED] Can't launch Guake or terminator, some python error

[redy@RedyPC ~]$ pacman -Qkk python2-cairo python2-psutil
python2-cairo: w sumie 14 plików, 0 zmienionych plików
python2-psutil: w sumie 80 plików, 0 zmienionych plików

14 files in total, 0 changed files
80 files in total, 0 changed files

Offline

#8 2016-12-26 22:33:45

loqs
Member
Registered: 2014-03-06
Posts: 19,183

Re: [SOLVED] Can't launch Guake or terminator, some python error

Between posts #1 and #5 did you reinstall any packages?

Offline

#9 2016-12-26 22:36:51

redy123
Member
Registered: 2016-12-26
Posts: 13

Re: [SOLVED] Can't launch Guake or terminator, some python error

I tried pacman -S python2-cairo and pacman -S python2-psutil

Offline

#10 2016-12-26 22:40:57

loqs
Member
Registered: 2014-03-06
Posts: 19,183

Re: [SOLVED] Can't launch Guake or terminator, some python error

What is the output of

$ LC_ALL=C pacman -Qkk

Please use code tags for command output not quote tags it makes a difference to longer outputs such as the one this command should generate.

Offline

#11 2016-12-26 23:01:33

redy123
Member
Registered: 2016-12-26
Posts: 13

Re: [SOLVED] Can't launch Guake or terminator, some python error

I just got bilion of warnings in this output, most of them from android studio for some reason. I couldn't put it here (over the limi), i couldn't paste it to pastebin, so i upload it to some server, hope it works:
http://s000.tinyupload.com/index.php?fi … 9443545279

Last edited by redy123 (2016-12-26 23:01:54)

Offline

#12 2016-12-26 23:08:00

loqs
Member
Registered: 2014-03-06
Posts: 19,183

Re: [SOLVED] Can't launch Guake or terminator, some python error

aside from android-studio your output indicates the following packages are all missing files

libglade libkeybinder2 pygobject2-devel python2-keybinder2 python2-notify media-player-info

Would do a full system update then reinstall all the above packages.

Offline

#13 2016-12-26 23:17:48

redy123
Member
Registered: 2016-12-26
Posts: 13

Re: [SOLVED] Can't launch Guake or terminator, some python error

Well okey, Thank you big_smile after reinstalling those packages terminator and guake works correctly. As for android studio i think i had some hardware issues while installing. After reinstall everything should be fine.  Much thanks for help. I think i lerned some basic troubleshooting on arch. Changing to solved.

Offline

Board footer

Powered by FluxBB