Python example needs to be up to date
What problem did you encounter?
- example application
The Python example doesn't work. It makes reviews harder. Despite a C example being present (or so I'm told), there are a some factors making Python less hassle for reviewing:
- Python doesn't need a C compiler
- Python can be modified very quickly to check behaviours of the patch
What is the actual behaviour?
example.py fails:
purism@pureos:~$ python3 ./example.py
(example.py:1751): Gtk-WARNING **: 13:23:20.802: Locale not supported by C library.
Using the fallback 'C' locale.
(example.py:1751): dbind-WARNING **: 13:23:20.810: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Traceback (most recent call last):
File "./example.py", line 21, in <module>
dialer = Handy.Dialer()
File "/usr/lib/python3/dist-packages/gi/module.py", line 132, in __getattr__
self.__name__, name))
AttributeError: 'gi.repository.Handy' object has no attribute 'Dialer'
What is the expected behaviour?
Not crashing
How to reproduce?
- Install .deb from CI, including gir
python3 ./example.py
Which version did you encounter the bug in?
I used the precompiled Debian package from !363 (merged)
What hardware are you running libhandy on?
Either the emulator or the L5
Edited by Alexander Mikhaylenko