[Pkg-utopia-maintainers] Bug#816156: Python dbus Attribute error

Daniel Peterson dpeterson309 at gmail.com
Sun Feb 28 05:55:02 UTC 2016


Package: python-dbus
Version: 1.2.2-1

When I try to use the onscreen keyboard onboard, I get an error message
from python-dbus init file. Below is a transcript of the error.

daniel at x230t:~$ onboard
/usr/lib/python3/dist-packages/Onboard/utils.py:16: PyGIWarning: Gtk was
imported without specifying a version first. Use gi.require_version('Gtk',
'3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GLib, Gtk
/usr/lib/python3/dist-packages/Onboard/KbdWindow.py:6: PyGIWarning: GdkX11
was imported without specifying a version first. Use
gi.require_version('GdkX11', '3.0') before import to ensure that the right
version gets loaded.
  from gi.repository import GObject, GLib, GdkX11, Gdk, Gtk
Traceback (most recent call last):
  File "/usr/bin/onboard", line 15, in <module>
    from Onboard.OnboardGtk import OnboardGtk as Onboard
  File "/usr/lib/python3/dist-packages/Onboard/OnboardGtk.py", line 26, in
<module>
    from Onboard.KbdWindow       import KbdWindow, KbdPlugWindow
  File "/usr/lib/python3/dist-packages/Onboard/KbdWindow.py", line 10, in
<module>
    from Onboard.WindowUtils import Orientation, WindowRectPersist, \
  File "/usr/lib/python3/dist-packages/Onboard/WindowUtils.py", line 21, in
<module>
    from Onboard.Config import Config
  File "/usr/lib/python3/dist-packages/Onboard/Config.py", line 26, in
<module>
    from Onboard.ClickSimulator import CSMousetweaks0, CSMousetweaks1
  File "/usr/lib/python3/dist-packages/Onboard/ClickSimulator.py", line 9,
in <module>
    import dbus
  File "/usr/lib/python3/dist-packages/dbus/__init__.py", line 81, in
<module>
    import dbus.exceptions as exceptions
AttributeError: 'module' object has no attribute 'exceptions'


I am not sure what is causing this. It appears on two computers both
running sid. I tried moving to the version of python-dbus in experimental
and this did not fix the problem. Interestingly, I am able to run the
following

daniel at x230t:~$ python3
Python 3.5.1+ (default, Feb 24 2016, 11:28:57)
[GCC 5.3.1 20160220] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus.exceptions as exceptions
>>>

with no error. I am not sure why it does not work in a script but does work
if I import the module manually.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20160227/ab3c2de8/attachment.html>


More information about the Pkg-utopia-maintainers mailing list