ERROR:colcon.colcon_notification.desktop_notification [closed]
Hi guys,
I am building the ros2-eloquent from source code using
colcon build --symlink-install
while it seems DBus cannot receive any reply.
I am using Ubuntu 18.04 x86_64 with kernel 4.15.0.
env | grep ROS ROS_VERSION=2 ROS_LOCALHOST_ONLY=0 ROS_PYTHON_VERSION=3 ROS_DISTRO=eloquent
By the way, I have ignored rviz package when building the code, since it always went wrong.
I really appreciate it if anyone could help! Thank you!
terminal shows like that:
Finished <<< ros2lifecycle [2.33s]
Finished <<< ros2component [1.92s]Summary: 290 packages finished [1min18s] [78.247s]
ERROR:colcon.colcon_notification.desktop_notification:Exception in desktop notification extension 'notify2':org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/colcon_notification/desktop_notification/__init__.py", line 107, in notify title=title, message=message, icon_path=icon_path)
File "/usr/lib/python3/dist-packages/colcon_notification/desktop_notification/notify2.py", line 50, in notify self._last_notification.show()
File "/usr/lib/python3/dist-packages/notify2.py", line 188, in show self.timeout, # expire_timeout
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__ return self._proxy_method(args, *keywords)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__ **keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking message, timeout) dbus.exceptions.
DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
For some reason dbus fails for you when
colcon
tries to show a desktop notification about the successful build. Do notifications from other applications work you? You can disable desktop notifications incolcon
by setting an environment variableCOLCON_EXTENSION_BLACKLIST=colcon_core.event_handler.desktop_notification
(see https://github.com/colcon/colcon-noti...). Obviously that would not show any desktop notifications anymore which I consider quite useful. I suggest to investigate further why it fails on your system.Thanks for the reply, I tried it, but it doesn't work.
Still throughs out the above error. While, anyway, this error does't bother me to run or make ros2. BTW, It is bizarre that I can receive other desktop notifications.
You can also try
COLCON_EXTENSION_BLACKLIST=colcon_notification.desktop_notification
- both work for me to disable the desktop notification extension. You might want to try to use thenotify2
API in an interactive Python interpreter to see if it works (mimicking the calls from https://github.com/colcon/colcon-noti...).Unfortunately, COLCON_EXTENSION_BLACKLIST=colcon_notification.desktop_notification doesn't work for me. But colcon code may work. While, recently, I accept that error. Thanks again.
Just out of curiosity: are you using the latest versions of
colcon
(colcon version-check
)?