Guake: Problem with installation with pip install guake

Created on 17 May 2018  Β·  13Comments  Β·  Source: Guake/guake

I am trying install guake via pip on Debian 9:

martin at martin-work unicorn >>> sudo pip install guake
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting guake
  Downloading https://files.pythonhosted.org/packages/8b/f4/6c1ca572569b8aabad657daa5082aae0edf03ee7ecb9fe79635d7f43d8dc/Guake-3.2.1-py2.py3-none-any.whl (88kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 92kB 1.0MB/s
Collecting typing; python_version < "3.5" (from guake)
  Downloading https://files.pythonhosted.org/packages/0d/4d/4e5985d075d241d686a1663fa1f88b61d544658d08c1375c7c6aac32afc3/typing-3.6.4-py2-none-any.whl
Collecting pbr (from guake)
  Downloading https://files.pythonhosted.org/packages/2d/9d/7bfab757977067556c7ca5fe437f28e8b8843c95564fca504de79df63b25/pbr-4.0.3-py2.py3-none-any.whl (98kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 102kB 2.4MB/s
Installing collected packages: typing, pbr, guake
Successfully installed guake-3.2.1 pbr-4.0.3 typing-3.6.4
martin at martin-work unicorn >>> guake
Guake not running, starting it
Traceback (most recent call last):
  File "/usr/local/bin/guake", line 11, in <module>
    sys.exit(exec_main())
  File "/usr/local/lib/python2.7/dist-packages/guake/main.py", line 385, in exec_main
    if not main():
  File "/usr/local/lib/python2.7/dist-packages/guake/main.py", line 284, in main
    from guake.guake_app import Guake
  File "/usr/local/lib/python2.7/dist-packages/guake/guake_app.py", line 30, in <module>
    from pathlib import Path
ImportError: No module named pathlib

martin at martin-work unicorn >>> sudo pip install pathlib
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pathlib
  Downloading https://files.pythonhosted.org/packages/ac/aa/9b065a76b9af472437a0059f77e8f962fe350438b927cb80184c32f075eb/pathlib-1.0.1.tar.gz (49kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 51kB 549kB/s
Installing collected packages: pathlib
  Running setup.py install for pathlib ... done
Successfully installed pathlib-1.0.1
martin at martin-work unicorn >>> guake
Guake not running, starting it
Traceback (most recent call last):
  File "/usr/local/bin/guake", line 11, in <module>
    sys.exit(exec_main())
  File "/usr/local/lib/python2.7/dist-packages/guake/main.py", line 385, in exec_main
    if not main():
  File "/usr/local/lib/python2.7/dist-packages/guake/main.py", line 284, in main
    from guake.guake_app import Guake
  File "/usr/local/lib/python2.7/dist-packages/guake/guake_app.py", line 32, in <module>
    from urllib.parse import quote_plus
ImportError: No module named parse

martin at martin-work unicorn >>> sudo pip install parse
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting parse
  Downloading https://files.pythonhosted.org/packages/13/71/e0b5c968c552f75a938db18e88a4e64d97dc212907b4aca0ff71293b4c80/parse-1.8.2.tar.gz
Installing collected packages: parse
  Running setup.py install for parse ... done
Successfully installed parse-1.8.2

martin at martin-work unicorn >>> guake
Guake not running, starting it
Traceback (most recent call last):
  File "/usr/local/bin/guake", line 11, in <module>
    sys.exit(exec_main())
  File "/usr/local/lib/python2.7/dist-packages/guake/main.py", line 385, in exec_main
    if not main():
  File "/usr/local/lib/python2.7/dist-packages/guake/main.py", line 284, in main
    from guake.guake_app import Guake
  File "/usr/local/lib/python2.7/dist-packages/guake/guake_app.py", line 32, in <module>
    from urllib.parse import quote_plus
ImportError: No module named parse
martin at martin-work unicorn >>>

And when I am try install it by you manual in documentation I gain this:

martin at martin-work unicorn >>> sudo pip install --user guake
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting guake
  Downloading https://files.pythonhosted.org/packages/8b/f4/6c1ca572569b8aabad657daa5082aae0edf03ee7ecb9fe79635d7f43d8dc/Guake-3.2.1-py2.py3-none-any.whl (88kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 92kB 1.1MB/s
Requirement already satisfied: typing; python_version < "3.5" in /usr/local/lib/python2.7/dist-packages (from guake)
Requirement already satisfied: pbr in /usr/local/lib/python2.7/dist-packages (from guake)
Installing collected packages: guake
Successfully installed guake-3.2.1
martin at martin-work unicorn >>> guake
zsh: command not found: guake
martin at martin-work unicorn >>> sudo guake
sudo: guake: command not found
martin at martin-work unicorn >>> guake
zsh: command not found: guake
martin at martin-work unicorn >>> which guake
guake not found
martin at martin-work unicorn >>> where guake
guake not found
martin at martin-work unicorn >>>

How can I install and run guake via pip without this problems??

My operating system is:

martin at martin-work unicorn >>> lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.4 (stretch)
Release:        9.4
Codename:       stretch
High Build System; Packaging; Docs; Translations

Most helpful comment

Pip downloads the Guake wheel file, e.g. Guake-3.2.2-py2.py3-none-any.whl from https://pypi.org/project/Guake/#files and typically installs it to ~/.local/lib/<python_version>/site-packages/guake.
It seems the provided wheel file is not packaged correctly:

  1. The data directory from the repo is completely missing, but it contains the images, glade and schema.
  2. Furthermore, the wheel file contains only paths.py.in, which obviously needs some processing to become paths.py. That's why python raises the exception ModuleNotFoundError: No module named 'guake.paths'

I copied data to my machine, updated the *_DIR variables in paths.py.in accordingly and renamed it to paths.py. After these fixes I was able to start guake.
When copying data to ~/.local/lib/<python_version>/site-packages/guake, ~/.local/lib/<python_version>/site-packages/guake/paths.py shall look like this:

import os

LOCALE_DIR = "/usr/local/share/locale"
IMAGE_DIR = "/home/<user>/.local/lib/<python_version>/site-packages/guake/data/pixmaps"
GLADE_DIR = "/home/<user>/.local/lib/<python_version>/site-packages/guake/data"
SCHEMA_DIR = "/home/<user>/.local/lib/<python_version>/site-packages/guake/data"
GUAKE_THEME_DIR = ""
LOGIN_DESTOP_PATH = ""
AUTOSTART_FOLDER = ""

Please add data to the wheel file and let the setup mechanism process paths.py.in.

All 13 comments

Guake does not support python 2.7

Use pip3 install guake.

Ok I installed python3 with pip3 and now I have this problem:

martin at martin-work unicorn >>> sudo pip3 install guake
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting guake
  Downloading https://files.pythonhosted.org/packages/8b/f4/6c1ca572569b8aabad657daa5082aae0edf03ee7ecb9fe79635d7f43d8dc/Guake-3.2.1-py2.py3-none-any.whl (88kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 92kB 777kB/s
Collecting pbr (from guake)
  Downloading https://files.pythonhosted.org/packages/2d/9d/7bfab757977067556c7ca5fe437f28e8b8843c95564fca504de79df63b25/pbr-4.0.3-py2.py3-none-any.whl (98kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 102kB 1.5MB/s
Installing collected packages: pbr, guake
Successfully installed guake-3.2.1 pbr-4.0.3


martin at martin-work unicorn >>> guake
Guake not running, starting it
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.guake3.RemoteControl': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 270, in main
    remote_object = bus.get_object(DBUS_NAME, DBUS_PATH)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.guake3.RemoteControl was not provided by any .service files

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/guake", line 11, in <module>
    sys.exit(exec_main())
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 385, in exec_main
    if not main():
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 284, in main
    from guake.guake_app import Guake
  File "/usr/local/lib/python3.5/dist-packages/guake/guake_app.py", line 55, in <module>
    from guake.about import AboutDialog
  File "/usr/local/lib/python3.5/dist-packages/guake/about.py", line 28, in <module>
    from guake.common import gladefile
  File "/usr/local/lib/python3.5/dist-packages/guake/common.py", line 30, in <module>
    from guake.paths import GLADE_DIR
ImportError: No module named 'guake.paths'

Have you installed a guake using your system manager before? If yes, did
you uninstall it?
If not, you may have conflicting guake versions installed.

2018-05-17 17:32 GMT+02:00 Martin Jablečník notifications@github.com:

Ok I installed python3 with pip3 and now I have this problem:

martin at martin-work unicorn >>> sudo pip3 install guake
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting guake
Downloading https://files.pythonhosted.org/packages/8b/f4/6c1ca572569b8aabad657daa5082aae0edf03ee7ecb9fe79635d7f43d8dc/Guake-3.2.1-py2.py3-none-any.whl (88kB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 92kB 777kB/s
Collecting pbr (from guake)
Downloading https://files.pythonhosted.org/packages/2d/9d/7bfab757977067556c7ca5fe437f28e8b8843c95564fca504de79df63b25/pbr-4.0.3-py2.py3-none-any.whl (98kB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 102kB 1.5MB/s
Installing collected packages: pbr, guake
Successfully installed guake-3.2.1 pbr-4.0.3

martin at martin-work unicorn >>> guake
Guake not running, starting it
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
return self.get_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
's', (bus_name,), **keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.guake3.RemoteControl': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 270, in main
remote_object = bus.get_object(DBUS_NAME, DBUS_PATH)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.guake3.RemoteControl was not provided by any .service files

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/guake", line 11, in
sys.exit(exec_main())
File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 385, in exec_main
if not main():
File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 284, in main
from guake.guake_app import Guake
File "/usr/local/lib/python3.5/dist-packages/guake/guake_app.py", line 55, in
from guake.about import AboutDialog
File "/usr/local/lib/python3.5/dist-packages/guake/about.py", line 28, in
from guake.common import gladefile
File "/usr/local/lib/python3.5/dist-packages/guake/common.py", line 30, in
from guake.paths import GLADE_DIR
ImportError: No module named 'guake.paths'

β€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Guake/guake/issues/1328#issuecomment-389908909, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFkAxl55d5hl4KINRfxA_FfUTd4PSTm9ks5tzZgGgaJpZM4UCpja
.

--
Best regards,
MichaΕ‚ Krassowski

@krassowski I installed it via apt-get, but I also uninstalled it..
Still I have the same problem..:

martin at martin-work unicorn >>> sudo apt-get remove guake
[sudo] password for martin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'guake' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libkeybinder0 libvte-common libvte9 python-glade2 python-keybinder python-vte
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

martin at martin-work unicorn >>> sudo apt-get purge guake
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'guake' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libkeybinder0 libvte-common libvte9 python-glade2 python-keybinder python-vte
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

martin at martin-work unicorn >>> sudo pip uninstall guake
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Uninstalling Guake-3.2.1:
  /root/.local/bin/guake
  /root/.local/lib/python2.7/site-packages/Guake-3.2.1.dist-info/INSTALLER
  /root/.local/lib/python2.7/site-packages/Guake-3.2.1.dist-info/LICENSE.txt
  /root/.local/lib/python2.7/site-packages/Guake-3.2.1.dist-info/METADATA
  /root/.local/lib/python2.7/site-packages/Guake-3.2.1.dist-info/RECORD
  /root/.local/lib/python2.7/site-packages/Guake-3.2.1.dist-info/WHEEL
  /root/.local/lib/python2.7/site-packages/Guake-3.2.1.dist-info/entry_points.txt
  /root/.local/lib/python2.7/site-packages/Guake-3.2.1.dist-info/pbr.json
  /root/.local/lib/python2.7/site-packages/Guake-3.2.1.dist-info/top_level.txt
  /root/.local/lib/python2.7/site-packages/guake/__init__.py
  /root/.local/lib/python2.7/site-packages/guake/__init__.pyc
  /root/.local/lib/python2.7/site-packages/guake/about.py
  /root/.local/lib/python2.7/site-packages/guake/about.pyc
  /root/.local/lib/python2.7/site-packages/guake/common.py
  /root/.local/lib/python2.7/site-packages/guake/common.pyc
  /root/.local/lib/python2.7/site-packages/guake/dbusiface.py
  /root/.local/lib/python2.7/site-packages/guake/dbusiface.pyc
  /root/.local/lib/python2.7/site-packages/guake/globals.py
  /root/.local/lib/python2.7/site-packages/guake/globals.pyc
  /root/.local/lib/python2.7/site-packages/guake/gsettings.py
  /root/.local/lib/python2.7/site-packages/guake/gsettings.pyc
  /root/.local/lib/python2.7/site-packages/guake/guake_app.py
  /root/.local/lib/python2.7/site-packages/guake/guake_app.pyc
  /root/.local/lib/python2.7/site-packages/guake/guake_logging.py
  /root/.local/lib/python2.7/site-packages/guake/guake_logging.pyc
  /root/.local/lib/python2.7/site-packages/guake/guake_notebook.py
  /root/.local/lib/python2.7/site-packages/guake/guake_notebook.pyc
  /root/.local/lib/python2.7/site-packages/guake/keybindings.py
  /root/.local/lib/python2.7/site-packages/guake/keybindings.pyc
  /root/.local/lib/python2.7/site-packages/guake/main.py
  /root/.local/lib/python2.7/site-packages/guake/main.pyc
  /root/.local/lib/python2.7/site-packages/guake/notifier.py
  /root/.local/lib/python2.7/site-packages/guake/notifier.pyc
  /root/.local/lib/python2.7/site-packages/guake/palettes.py
  /root/.local/lib/python2.7/site-packages/guake/palettes.pyc
  /root/.local/lib/python2.7/site-packages/guake/paths.py.in
  /root/.local/lib/python2.7/site-packages/guake/prefs.py
  /root/.local/lib/python2.7/site-packages/guake/prefs.pyc
  /root/.local/lib/python2.7/site-packages/guake/settings.py
  /root/.local/lib/python2.7/site-packages/guake/settings.pyc
  /root/.local/lib/python2.7/site-packages/guake/simplegladeapp.py
  /root/.local/lib/python2.7/site-packages/guake/simplegladeapp.pyc
  /root/.local/lib/python2.7/site-packages/guake/terminal.py
  /root/.local/lib/python2.7/site-packages/guake/tests/__init__.py
  /root/.local/lib/python2.7/site-packages/guake/tests/__init__.pyc
  /root/.local/lib/python2.7/site-packages/guake/tests/test_guake.py
  /root/.local/lib/python2.7/site-packages/guake/tests/test_guake.pyc
  /root/.local/lib/python2.7/site-packages/guake/tests/test_quick_open.py
  /root/.local/lib/python2.7/site-packages/guake/tests/test_quick_open.pyc
  /root/.local/lib/python2.7/site-packages/guake/theme.py
  /root/.local/lib/python2.7/site-packages/guake/theme.pyc
  /root/.local/lib/python2.7/site-packages/guake/utils.py
  /root/.local/lib/python2.7/site-packages/guake/utils.pyc
Proceed (y/n)? y
  Successfully uninstalled Guake-3.2.1

martin at martin-work unicorn >>> sudo pip3 install guake
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: guake in /usr/local/lib/python3.5/dist-packages
Requirement already satisfied: pbr in /usr/local/lib/python3.5/dist-packages (from guake)

martin at martin-work unicorn >>> guake
Guake not running, starting it
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.guake3.RemoteControl': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 270, in main
    remote_object = bus.get_object(DBUS_NAME, DBUS_PATH)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.guake3.RemoteControl was not provided by any .service files

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/guake", line 11, in <module>
    sys.exit(exec_main())
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 385, in exec_main
    if not main():
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 284, in main
    from guake.guake_app import Guake
  File "/usr/local/lib/python3.5/dist-packages/guake/guake_app.py", line 55, in <module>
    from guake.about import AboutDialog
  File "/usr/local/lib/python3.5/dist-packages/guake/about.py", line 28, in <module>
    from guake.common import gladefile
  File "/usr/local/lib/python3.5/dist-packages/guake/common.py", line 30, in <module>
    from guake.paths import GLADE_DIR
ImportError: No module named 'guake.paths'

martin at martin-work unicorn >>> sudo pip3 uninstall guake
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Uninstalling Guake-3.2.1:
  /usr/local/bin/guake
  /usr/local/lib/python3.5/dist-packages/Guake-3.2.1.dist-info/INSTALLER
  /usr/local/lib/python3.5/dist-packages/Guake-3.2.1.dist-info/LICENSE.txt
  /usr/local/lib/python3.5/dist-packages/Guake-3.2.1.dist-info/METADATA
  /usr/local/lib/python3.5/dist-packages/Guake-3.2.1.dist-info/RECORD
  /usr/local/lib/python3.5/dist-packages/Guake-3.2.1.dist-info/WHEEL
  /usr/local/lib/python3.5/dist-packages/Guake-3.2.1.dist-info/entry_points.txt
  /usr/local/lib/python3.5/dist-packages/Guake-3.2.1.dist-info/pbr.json
  /usr/local/lib/python3.5/dist-packages/Guake-3.2.1.dist-info/top_level.txt
  /usr/local/lib/python3.5/dist-packages/guake/__init__.py
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/__init__.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/about.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/common.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/dbusiface.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/globals.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/gsettings.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/guake_app.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/guake_logging.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/guake_notebook.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/keybindings.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/main.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/notifier.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/palettes.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/prefs.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/settings.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/simplegladeapp.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/terminal.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/theme.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/__pycache__/utils.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/about.py
  /usr/local/lib/python3.5/dist-packages/guake/common.py
  /usr/local/lib/python3.5/dist-packages/guake/dbusiface.py
  /usr/local/lib/python3.5/dist-packages/guake/globals.py
  /usr/local/lib/python3.5/dist-packages/guake/gsettings.py
  /usr/local/lib/python3.5/dist-packages/guake/guake_app.py
  /usr/local/lib/python3.5/dist-packages/guake/guake_logging.py
  /usr/local/lib/python3.5/dist-packages/guake/guake_notebook.py
  /usr/local/lib/python3.5/dist-packages/guake/keybindings.py
  /usr/local/lib/python3.5/dist-packages/guake/main.py
  /usr/local/lib/python3.5/dist-packages/guake/notifier.py
  /usr/local/lib/python3.5/dist-packages/guake/palettes.py
  /usr/local/lib/python3.5/dist-packages/guake/paths.py.in
  /usr/local/lib/python3.5/dist-packages/guake/prefs.py
  /usr/local/lib/python3.5/dist-packages/guake/settings.py
  /usr/local/lib/python3.5/dist-packages/guake/simplegladeapp.py
  /usr/local/lib/python3.5/dist-packages/guake/terminal.py
  /usr/local/lib/python3.5/dist-packages/guake/tests/__init__.py
  /usr/local/lib/python3.5/dist-packages/guake/tests/__pycache__/__init__.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/tests/__pycache__/test_guake.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/tests/__pycache__/test_quick_open.cpython-35.pyc
  /usr/local/lib/python3.5/dist-packages/guake/tests/test_guake.py
  /usr/local/lib/python3.5/dist-packages/guake/tests/test_quick_open.py
  /usr/local/lib/python3.5/dist-packages/guake/theme.py
  /usr/local/lib/python3.5/dist-packages/guake/utils.py
Proceed (y/n)? y
  Successfully uninstalled Guake-3.2.1

martin at martin-work unicorn >>> guake
zsh: command not found: guake

martin at martin-work unicorn >>> where guake
guake not found

martin at martin-work unicorn >>> sudo pip3 install guake
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting guake
  Downloading https://files.pythonhosted.org/packages/8b/f4/6c1ca572569b8aabad657daa5082aae0edf03ee7ecb9fe79635d7f43d8dc/Guake-3.2.1-py2.py3-none-any.whl (88kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 92kB 699kB/s
Requirement already satisfied: pbr in /usr/local/lib/python3.5/dist-packages (from guake)
Installing collected packages: guake
Successfully installed guake-3.2.1
martin at martin-work unicorn >>> guake
Guake not running, starting it
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.guake3.RemoteControl': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 270, in main
    remote_object = bus.get_object(DBUS_NAME, DBUS_PATH)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.guake3.RemoteControl was not provided by any .service files

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/guake", line 11, in <module>
    sys.exit(exec_main())
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 385, in exec_main
    if not main():
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 284, in main
    from guake.guake_app import Guake
  File "/usr/local/lib/python3.5/dist-packages/guake/guake_app.py", line 55, in <module>
    from guake.about import AboutDialog
  File "/usr/local/lib/python3.5/dist-packages/guake/about.py", line 28, in <module>
    from guake.common import gladefile
  File "/usr/local/lib/python3.5/dist-packages/guake/common.py", line 30, in <module>
    from guake.paths import GLADE_DIR
ImportError: No module named 'guake.paths'

Now I also tried install it on Ubuntu 16.04 where I didn't install before and I gave this error:

martin at martin-pc Downloads >>> sudo pip3 install guake
The directory '/home/martin/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/martin/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting guake
  Downloading https://files.pythonhosted.org/packages/8b/f4/6c1ca572569b8aabad657daa5082aae0edf03ee7ecb9fe79635d7f43d8dc/Guake-3.2.1-py2.py3-none-any.whl (88kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 92kB 505kB/s
Requirement already satisfied: pbr in /usr/lib/python3/dist-packages (from guake)
Installing collected packages: guake
Successfully installed guake-3.2.1
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
martin at martin-pc Downloads >>> guake
Guake not running, starting it
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.guake3.RemoteControl': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 270, in main
    remote_object = bus.get_object(DBUS_NAME, DBUS_PATH)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.guake3.RemoteControl was not provided by any .service files

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/guake", line 11, in <module>
    sys.exit(exec_main())
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 385, in exec_main
    if not main():
  File "/usr/local/lib/python3.5/dist-packages/guake/main.py", line 284, in main
    from guake.guake_app import Guake
  File "/usr/local/lib/python3.5/dist-packages/guake/guake_app.py", line 39, in <module>
    gi.require_version('Keybinder', '3.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 102, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Keybinder not available

I never fully validated the install from pip. I tested it to update an already installed Guake but pip install guake actually does NOT:

  • check system dependencies (keybinder, gtk, vte)
  • install GSettings schema (+ compilation)
  • install language

This needs to be done to finish the install by pip. I see lot of distribution that does not package recent Guake version (most of them have Guake 3.0.x, even some like fedora on 0.8!), so this needs to be properly handled

I have the same problem,can you tell me how to solve it? I've installed guake-3.0 from 'sudo apt install guake' before,and i have removed it,'whereis guake' --result is:guake not found. the log is the same as the brother above from pip.
my OS :ubuntu 18.04
python version:3.6.5
pip version:pip 10.0.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
thank you very much

I installed on Ubuntu 18.4 through pip3 and when attempting to run I get this:
`Guake not running, starting it
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
return self.get_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
's', (bus_name,), **keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.guake3.RemoteControl': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/tryfon/.local/lib/python3.6/site-packages/guake/main.py", line 270, in main
remote_object = bus.get_object(DBUS_NAME, DBUS_PATH)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.guake3.RemoteControl was not provided by any .service files

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/tryfon/.local/bin/guake", line 11, in
sys.exit(exec_main())
File "/home/tryfon/.local/lib/python3.6/site-packages/guake/main.py", line 385, in exec_main
if not main():
File "/home/tryfon/.local/lib/python3.6/site-packages/guake/main.py", line 284, in main
from guake.guake_app import Guake
File "/home/tryfon/.local/lib/python3.6/site-packages/guake/guake_app.py", line 55, in
from guake.about import AboutDialog
File "/home/tryfon/.local/lib/python3.6/site-packages/guake/about.py", line 28, in
from guake.common import gladefile
File "/home/tryfon/.local/lib/python3.6/site-packages/guake/common.py", line 30, in
from guake.paths import GLADE_DIR
ModuleNotFoundError: No module named 'guake.paths'`

Are there any deb packages available somewhere? Snap perhaps?

Pip downloads the Guake wheel file, e.g. Guake-3.2.2-py2.py3-none-any.whl from https://pypi.org/project/Guake/#files and typically installs it to ~/.local/lib/<python_version>/site-packages/guake.
It seems the provided wheel file is not packaged correctly:

  1. The data directory from the repo is completely missing, but it contains the images, glade and schema.
  2. Furthermore, the wheel file contains only paths.py.in, which obviously needs some processing to become paths.py. That's why python raises the exception ModuleNotFoundError: No module named 'guake.paths'

I copied data to my machine, updated the *_DIR variables in paths.py.in accordingly and renamed it to paths.py. After these fixes I was able to start guake.
When copying data to ~/.local/lib/<python_version>/site-packages/guake, ~/.local/lib/<python_version>/site-packages/guake/paths.py shall look like this:

import os

LOCALE_DIR = "/usr/local/share/locale"
IMAGE_DIR = "/home/<user>/.local/lib/<python_version>/site-packages/guake/data/pixmaps"
GLADE_DIR = "/home/<user>/.local/lib/<python_version>/site-packages/guake/data"
SCHEMA_DIR = "/home/<user>/.local/lib/<python_version>/site-packages/guake/data"
GUAKE_THEME_DIR = ""
LOGIN_DESTOP_PATH = ""
AUTOSTART_FOLDER = ""

Please add data to the wheel file and let the setup mechanism process paths.py.in.

Indeed I have a dev branch not yet ready

Using the fix by @cklaucke gets me a little farther. I then get the message:

Traceback (most recent call last):
  File "/home/rick/.local/bin/guake", line 11, in <module>
    sys.exit(exec_main())
  File "/home/rick/.local/lib/python3.6/site-packages/guake/main.py", line 385, in exec_main
    if not main():
  File "/home/rick/.local/lib/python3.6/site-packages/guake/main.py", line 285, in main
    instance = Guake()
  File "/home/rick/.local/lib/python3.6/site-packages/guake/guake_app.py", line 159, in __init__
    SCHEMA_DIR, Gio.SettingsSchemaSource.get_default(), False
GLib.Error: g-file-error-quark: Failed to open file β€œ/home/rick/.local/lib/python3.6/site-packages/guake/data/gschemas.compiled”: open() failed: No such file or directory (4)

That's because I forget to mention that I checked out the git repository and called make and used the resulting data directory.
When calling make *.desktop files are generated (probably not needed), locales (not needed if English suffices), paths.py file is generated (already done in my workaround) and finally the schema gets compiled.

So in addition to the steps mentioned above you may try: Change to SCHEMA_DIR, e.g. /home/<user>/.local/lib/<python_version>/site-packages/guake/data (where org.guake.gschema.xml resides) and run glib-compile-schemas --strict . This should result in a gschemas.compiled file and hopefully that's sufficient to get guake running.

I've recently encountered this same issue while installing guake 3.3.0, where I understand that this should be fixed. Should I raise a new issue for this ? I'm getting the exact same error as the first comment and initially installed with apt-get and then uninstalled, try to install from pip.

Was this page helpful?
0 / 5 - 0 ratings