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

python messages about dbus.py and udisks2.py #272

Closed
13di31 opened this issue Sep 23, 2023 · 6 comments
Closed

python messages about dbus.py and udisks2.py #272

13di31 opened this issue Sep 23, 2023 · 6 comments

Comments

@13di31
Copy link

13di31 commented Sep 23, 2023

When I issue the comand "udiskie-umount -d mountpoint" it gives me:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/udiskie/dbus.py", line 225, in callback
    return handler(object_path, *unpack_variant(parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/udiskie/udisks2.py", line 865, in _properties_changed
    del self._objects[object_path][interface_name][property_name]
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'Size'
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/udiskie/dbus.py", line 225, in callback
    return handler(object_path, *unpack_variant(parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/udiskie/udisks2.py", line 865, in _properties_changed
    del self._objects[object_path][interface_name][property_name]
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'Size'
unmounted /org/freedesktop/UDisks2/block_devices/sdc1
detached /org/freedesktop/UDisks2/block_devices/sdc1

and it does the job (ie. the device is unmounted and powered off).

I'm with udiskie version 2.4.2 on Arch (updated yesterday). Udiskie is lauched when i log in with "udiskie -aNT &" by i3-wm.

@brett
Copy link

brett commented Sep 23, 2023

+1 same here

@emilyyyylime
Copy link

I am also facing this, seemingly with mounting rather than unmounting however. My instance is also launched automatically in my sway config, with --tray

@coldfix
Copy link
Owner

coldfix commented Sep 30, 2023

Thanks for reporting. Should be easy to fix.

@coldfix coldfix closed this as completed in 461fd3a Oct 3, 2023
coldfix added a commit that referenced this issue Oct 3, 2023
- add bash completions for CLI options (thanks @oersen)
- updates for translations
- added German translation
- add bright outlines for wayland icons in dark themes
- ignore snap loop devices by default
- maintenance on CI workflows
- fix KeyError when properties are invalidated multiple times (#272)
coldfix added a commit that referenced this issue Oct 3, 2023
- add bash completions for CLI options (thanks @oersen)
- updates for translations
- added German translation
- add bright outlines for wayland icons in dark themes
- ignore snap loop devices by default
- maintenance on CI workflows
- fix KeyError when properties are invalidated multiple times (#272)
@JostBrand
Copy link

Reopening since this error is not actually fixed. Running version 2.5.1.1. Mounting and unmounting works flawless but still this message persists.

Running udiskie & without any configuration.

Traceback (most recent call last):         ✘ IOT  46m 34s  12:58:33 PM
  File "/home/jost/.local/lib/python3.11/site-packages/udiskie/dbus.py", line 225, in callback
    return handler(object_path, *unpack_variant(parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jost/.local/lib/python3.11/site-packages/udiskie/udisks2.py", line
865, in _properties_changed
    del self._objects[object_path][interface_name][property_name]
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'Size'
Traceback (most recent call last):
  File "/home/jost/.local/lib/python3.11/site-packages/udiskie/dbus.py", line 225, in callback
    return handler(object_path, *unpack_variant(parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jost/.local/lib/python3.11/site-packages/udiskie/udisks2.py", line
865, in _properties_changed
    del self._objects[object_path][interface_name][property_name]
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'Size'
mounted /org/freedesktop/UDisks2/block_devices/sde1 on /run/media/jost/9970ace7-367e-42bc-b65c-f8000967f295

@coldfix
Copy link
Owner

coldfix commented Jan 23, 2024

Hi @JostBrand. Is it possible that you are still somehow running an old version (local user pip install or something)? Did you do udiskie --version?

@JostBrand
Copy link

you are right ! I think I played with the dangerous break system packages and my shell preferred the pip install over the pacman version.

Sorry!

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

5 participants