ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Colcon build fail - notify2

asked 2021-08-16 11:06:08 -0500

ccpjBoss gravatar image

OS: Pop OS 20.04

I was running the command colcon build and receive the following output:


Starting >>> turtlesim
Finished <<< turtlesim [0.64s]                     

Summary: 1 package finished [0.75s]
[1.016s] ERROR:dbus.connection:Unable to set arguments ('colcon', 0, '/usr/lib/python3/dist-packages/colcon_notification/desktop_notification/image/colcon-success.ico', '`colcon build` successful', '/home/joaocastilho/dev_ws', [], {'transient': True}, -1) according to signature 'susssasa{ss}i': <class 'TypeError'>: Expected a string or unicode object
[1.017s] ERROR:colcon.colcon_notification.desktop_notification:Exception in desktop notification extension 'notify2': Expected a string or unicode object
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/colcon_notification/desktop_notification/__init__.py", line 106, in notify
    retval = extension.notify(
  File "/usr/lib/python3/dist-packages/colcon_notification/desktop_notification/notify2.py", line 51, in notify
    self._last_notification.show()
  File "/usr/lib/python3/dist-packages/notify2.py", line 181, in show
    nid = dbus_iface.Notify(appname,       # app_name       (spec names)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 72, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 643, in call_blocking
    message.append(signature=signature, *args)
TypeError: Expected a string or unicode object

I am using ROS2 Foxy version and following this tutorial: https://docs.ros.org/en/foxy/Tutorials/Workspace/Creating-A-Workspace.html

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2021-08-20 04:48:08 -0500

ccpjBoss gravatar image

I “solved” the problem. I was using Pop OS + Regolith and the problem was that regolith wasn’t letting colcon send the notification that the build was successful. I changed back to default Pop OS and it is working now!

edit flag offensive delete link more

Comments

Have you reported this to the appropriate Colcon issue tracker? It would be good to let the developer(s)/maintainer(s) know this is a problem.

There might be some changes required to the detection logic which determines whether dbus is available and can be used.

gvdhoorn gravatar image gvdhoorn  ( 2021-08-22 02:05:52 -0500 )edit
1

answered 2021-08-16 18:07:16 -0500

ijnek gravatar image

This seems to be a duplicate, and according to the comments on that question there was a supposed fix which didn't fix the problem.

Also note that PopOS is also the OS in the duplicate, so sounds like something specific to PopOS which still requires a fix.

edit flag offensive delete link more

Comments

Thank you for your answer! I “solved” the problem. I was using Pop OS + Reholith and the problem was that regolith wasn’t letting colcon send the notification that the build was successful. I changed back to Gnome and it is working now!

ccpjBoss gravatar image ccpjBoss  ( 2021-08-17 04:54:25 -0500 )edit

would you be able to post your comment as an answer, so that it can be marked as the answer? :)

ijnek gravatar image ijnek  ( 2021-08-19 19:22:53 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-08-16 11:03:16 -0500

Seen: 424 times

Last updated: Aug 20 '21