-
Notifications
You must be signed in to change notification settings - Fork 250
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
Error with dbus type conversion on recent upgrade #477
Comments
Note that python-dbus was upgraded from 1.2.10-1 to 1.2.12-1 |
Adding (I tried to do the conversion in |
Thanks for the report and the fix. hamster/src/hamster/storage/db.py Lines 817 to 819 in 6792b06
Did python-dbus drop the __str__ overload for dbus.Int32 ?
Would be nice to report upstream, but where is the development page ? For anyone interested, the 1.2.12 version refers to dbus-python. |
Found the dbus-python repo at the bottom of the previous page: The python3 -c 'import dbus; print(dbus.Int32.__str__)' on your system ? And python3 -c 'import dbus; print(str(dbus.Int32(34)))' Here that prints And to rule out a python python3 -c 'import dbus; print(str(int(34)))' |
Here are the results:
So, there seems to have been a change in |
I tried to open a bug report in https://gitlab.freedesktop.org, but I was unable to open an account. i'll try again later in the day. |
Issue 31 opened upstream. |
Upstream issue is closed with a fix (tested locally with hamster). I guess we can close this issue. |
Hmm, other Hamster users may be hit with this. For example, debian testing has python3.8 and python3-dbus-1.2.12. It may be better to either leave this open or integrate the work-around into hamster. |
dbus-python-1.2.14 has been tagged. No strong objection to follow your advice and keep this issue open for a little while though, Thanks @matclab for the exemplary report, investigation and part of the quick upstream fix ! |
Thanks @ederag, both hamster and dbus-python community was very supportive. I'd like to take more time to help improve hamster has it is my daily driver, but time flies too fast ! |
This upgrades dbus-python to the 1.2.16 release. Reason for this version upgrade is a the failing hamster application (see. programs.hamster). With a 1.2.12 dbus-python version hamster can not start and fails with: Traceback (most recent call last): File "/nix/store/5ax21lyiprc9v5l3pl7dbfr2hqbrh970-hamster-3.0.2/bin/.hamster-wrapped", line 41, in <module> from hamster import client, reports File "/nix/store/5ax21lyiprc9v5l3pl7dbfr2hqbrh970-hamster-3.0.2/lib/python3.8/site-packages/hamster/client.py", line 46, in <module> assert not ( AssertionError: python3.8 changed str(<dbus integers>). That broke hamster (projecthamster/hamster#477). Please upgrade to dbus-python >= 1.2.14.
This upgrades dbus-python to the 1.2.16 release. Reason for this version upgrade is a the failing hamster application (see. programs.hamster). With a 1.2.12 dbus-python version hamster can not start and fails with: Traceback (most recent call last): File "/nix/store/5ax21lyiprc9v5l3pl7dbfr2hqbrh970-hamster-3.0.2/bin/.hamster-wrapped", line 41, in <module> from hamster import client, reports File "/nix/store/5ax21lyiprc9v5l3pl7dbfr2hqbrh970-hamster-3.0.2/lib/python3.8/site-packages/hamster/client.py", line 46, in <module> assert not ( AssertionError: python3.8 changed str(<dbus integers>). That broke hamster (projecthamster/hamster#477). Please upgrade to dbus-python >= 1.2.14.
I just upgraded Arch linux with
Running master I get the following errors:
The same problem occurs with release v2.2.2.
I guess a conversion from dbus data went wrong.
The text was updated successfully, but these errors were encountered: