0
$\begingroup$

Rosanswers logo

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


Originally posted by ccpjBoss on ROS Answers with karma: 46 on 2021-08-16

Post score: 0

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

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.


Originally posted by ijnek with karma: 460 on 2021-08-16

This answer was NOT ACCEPTED on the original site

Post score: 1


Original comments

Comment by ccpjBoss on 2021-08-17:
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!

Comment by ijnek on 2021-08-19:
would you be able to post your comment as an answer, so that it can be marked as the answer? :)

$\endgroup$
0
$\begingroup$

Rosanswers logo

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!


Originally posted by ccpjBoss with karma: 46 on 2021-08-20

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by gvdhoorn on 2021-08-22:
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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.