Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.opensuse.Snapper was not provided by any .service files #66

Open
Marietto2008 opened this issue Aug 30, 2024 · 0 comments

Comments

@Marietto2008
Copy link

On Ubuntu 24.04 :


root@Z390-AORUS-PRO-DEST:/home/ziomario/Scaricati/snapper-gui#  python3 setup.py install

running install
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running build
running build_py
creating build
creating build/lib
creating build/lib/snappergui
copying snappergui/createSnapshot.py -> build/lib/snappergui
copying snappergui/application.py -> build/lib/snappergui
copying snappergui/mainWindow.py -> build/lib/snappergui
copying snappergui/changesWindow.py -> build/lib/snappergui
copying snappergui/snapshotsView.py -> build/lib/snappergui
copying snappergui/deleteDialog.py -> build/lib/snappergui
copying snappergui/createConfig.py -> build/lib/snappergui
copying snappergui/__init__.py -> build/lib/snappergui
copying snappergui/propertiesDialog.py -> build/lib/snappergui
creating build/lib/snappergui/glade
copying snappergui/glade/changesWindow.glade -> build/lib/snappergui/glade
copying snappergui/glade/mainWindow.glade -> build/lib/snappergui/glade
copying snappergui/glade/createSnapshot.glade -> build/lib/snappergui/glade
copying snappergui/glade/propertiesDialog.glade -> build/lib/snappergui/glade
copying snappergui/glade/deleteSnapshot.glade -> build/lib/snappergui/glade
copying snappergui/glade/createConfig.glade -> build/lib/snappergui/glade
copying snappergui/glade/snapshotsView.glade -> build/lib/snappergui/glade
creating build/lib/snappergui/ui
copying snappergui/ui/app-menu.ui -> build/lib/snappergui/ui
running install_lib
creating /usr/local/lib/python3.12/dist-packages/snappergui
copying build/lib/snappergui/createSnapshot.py -> /usr/local/lib/python3.12/dist-packages/snappergui
creating /usr/local/lib/python3.12/dist-packages/snappergui/glade
copying build/lib/snappergui/glade/changesWindow.glade -> /usr/local/lib/python3.12/dist-packages/snappergui/glade
copying build/lib/snappergui/glade/mainWindow.glade -> /usr/local/lib/python3.12/dist-packages/snappergui/glade
copying build/lib/snappergui/glade/createSnapshot.glade -> /usr/local/lib/python3.12/dist-packages/snappergui/glade
copying build/lib/snappergui/glade/propertiesDialog.glade -> /usr/local/lib/python3.12/dist-packages/snappergui/glade
copying build/lib/snappergui/glade/deleteSnapshot.glade -> /usr/local/lib/python3.12/dist-packages/snappergui/glade
copying build/lib/snappergui/glade/createConfig.glade -> /usr/local/lib/python3.12/dist-packages/snappergui/glade
copying build/lib/snappergui/glade/snapshotsView.glade -> /usr/local/lib/python3.12/dist-packages/snappergui/glade
copying build/lib/snappergui/application.py -> /usr/local/lib/python3.12/dist-packages/snappergui
copying build/lib/snappergui/mainWindow.py -> /usr/local/lib/python3.12/dist-packages/snappergui
creating /usr/local/lib/python3.12/dist-packages/snappergui/ui
copying build/lib/snappergui/ui/app-menu.ui -> /usr/local/lib/python3.12/dist-packages/snappergui/ui
copying build/lib/snappergui/changesWindow.py -> /usr/local/lib/python3.12/dist-packages/snappergui
copying build/lib/snappergui/snapshotsView.py -> /usr/local/lib/python3.12/dist-packages/snappergui
copying build/lib/snappergui/deleteDialog.py -> /usr/local/lib/python3.12/dist-packages/snappergui
copying build/lib/snappergui/createConfig.py -> /usr/local/lib/python3.12/dist-packages/snappergui
copying build/lib/snappergui/__init__.py -> /usr/local/lib/python3.12/dist-packages/snappergui
copying build/lib/snappergui/propertiesDialog.py -> /usr/local/lib/python3.12/dist-packages/snappergui
byte-compiling /usr/local/lib/python3.12/dist-packages/snappergui/createSnapshot.py to createSnapshot.cpython-312.pyc
byte-compiling /usr/local/lib/python3.12/dist-packages/snappergui/application.py to application.cpython-312.pyc
byte-compiling /usr/local/lib/python3.12/dist-packages/snappergui/mainWindow.py to mainWindow.cpython-312.pyc
byte-compiling /usr/local/lib/python3.12/dist-packages/snappergui/changesWindow.py to changesWindow.cpython-312.pyc
byte-compiling /usr/local/lib/python3.12/dist-packages/snappergui/snapshotsView.py to snapshotsView.cpython-312.pyc
byte-compiling /usr/local/lib/python3.12/dist-packages/snappergui/deleteDialog.py to deleteDialog.cpython-312.pyc
byte-compiling /usr/local/lib/python3.12/dist-packages/snappergui/createConfig.py to createConfig.cpython-312.pyc
byte-compiling /usr/local/lib/python3.12/dist-packages/snappergui/__init__.py to __init__.cpython-312.pyc
byte-compiling /usr/local/lib/python3.12/dist-packages/snappergui/propertiesDialog.py to propertiesDialog.cpython-312.pyc
running install_data
copying snapper-gui.desktop -> /usr/local/share/applications
running install_egg_info
running egg_info
creating snappergui.egg-info
writing snappergui.egg-info/PKG-INFO
writing dependency_links to snappergui.egg-info/dependency_links.txt
writing entry points to snappergui.egg-info/entry_points.txt
writing top-level names to snappergui.egg-info/top_level.txt
writing manifest file 'snappergui.egg-info/SOURCES.txt'
reading manifest file 'snappergui.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'snappergui.egg-info/SOURCES.txt'
Copying snappergui.egg-info to /usr/local/lib/python3.12/dist-packages/snappergui-0.1.egg-info
running install_scripts
Installing snapper-gui script to /usr/local/bin
writing list of installed files to 'RECORD'
root@Z390-AORUS-PRO-DEST:/home/ziomario/Scaricati/snapper-gui# snapper-gui
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 173, in activate_name_owner
    return self.get_name_owner(bus_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 348, in get_name_owner
    return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 634, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.opensuse.Snapper': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/snapper-gui", line 33, in <module>
    sys.exit(load_entry_point('snappergui==0.1', 'gui_scripts', 'snapper-gui')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/snapper-gui", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/local/lib/python3.12/dist-packages/snappergui/__init__.py", line 8, in <module>
    snapper = dbus.Interface(bus.get_object('org.opensuse.Snapper',
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 237, in get_object
    return self.ProxyObjectClass(self, bus_name, object_path,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 178, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 273, in start_service_by_name
    return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 634, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.opensuse.Snapper was not provided by any .service files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant