Skip to content

dbus-call-method: D-Bus error: "The name com.sfs.SearchService was not provided by any .service files" #1

@novoid

Description

@novoid

Hi,
I wanted to test-run your cool project.
I've set up recoll which I'm able to use within the recoll GUI.

I installed the dependencies: sudo pip3 install dbus-python PyGObject

Then I cloned your repo and evaluated everything in sfs-recoll.el. I had to hard-code the path of service.py since load-file-name was empty when using my method of manually evaluating everything. With this workaround, the server started without an error.

Then I did M-x sfs-recoll and I got: dbus-call-method: D-Bus error: "The name com.sfs.SearchService was not provided by any .service files" just like the person who wrote this comment: https://www.reddit.com/r/emacs/comments/hf6bdr/prototype_sfs_search_file_system/fvw0i8m/

The buffer *recoll-server* contains following error:

Traceback (most recent call last):
  File "/home/vk/fromweb/src/sfs/service.py", line 1, in <module>
    from gi.repository import GLib
ImportError: No module named gi.repository

Process recoll-server exited abnormally with code 1

According to https://stackoverflow.com/questions/31151785/error-importing-glib the line seems correct. However, I can confirm that within an interactive python session, I can't import it as well. Is this a missing dependency?

pip3 search GLib returns potential candidates:

asyncio-glib (0.1)                    - GLib event loop integration for asyncio
avocado-framework-plugin-glib (80.0)  - Avocado Plugin for Execution of GLib Test Framework tests
apyref-json-glib (0.1.1)              - Reserve names for currrent development items until release.
gwebsockets (0.7)                     - GLib based websockets server
gshell.py (0.0.4)                     - A straight port of glib/gshell.c to Python
gpotato (0.1)                         - GLib event loop for tulip (PEP 3156)
gbulb (0.6.1)                         - GLib event loop for tulip (PEP 3156)
python-appstream (0.8)                - Parse AppStream files when you don't have libappstream-glib
pypoppler (0.12.2)                    - Python bindings for poppler-glib, unofficial branch including bug fixes, and removal of gtk dependencies
pygel (0.6.5)                         - An implementation of some functionalities of gobject/glib/gio in pure python, but adding a lot of new features.

Thanks for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions