Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging error on Melodic #5

Open
mje-nz opened this issue May 28, 2019 · 1 comment
Open

Logging error on Melodic #5

mje-nz opened this issue May 28, 2019 · 1 comment

Comments

@mje-nz
Copy link
Owner

mje-nz commented May 28, 2019

To reproduce:

$ docker run --rm -it -v $(pwd):/work/src/natnet_ros -w /work ros:melodic-perception bash
# catkin_make
# . devel/setup.bash
# roscore &
# rosrun natnet_ros client
Traceback (most recent call last):
  File "/work/src/natnet_ros/natnet_ros/scripts/client", line 278, in <module>
    node.run()
  File "/work/src/natnet_ros/natnet_ros/scripts/client", line 268, in run
    client = natnet.Client.connect(server, logger=self.log)
  File "/work/src/natnet_ros/python_natnet/python_natnet/src/natnet/comms.py", line 435, in connect
    return cls._discover_and_connect(logger, timeout)
  File "/work/src/natnet_ros/python_natnet/python_natnet/src/natnet/comms.py", line 371, in _discover_and_connect
    logger.info('Discovering servers')
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/core.py", line 194, in loginfo
    _base_logger(msg, *args, logger_level='info', **kwargs)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/core.py", line 187, in _base_logger
    logfunc(msg, *args)
  File "/usr/lib/python2.7/logging/__init__.py", line 1174, in info
    self._log(INFO, msg, args, **kwargs)
  File "/usr/lib/python2.7/logging/__init__.py", line 1293, in _log
    self.handle(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 1303, in handle
    self.callHandlers(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 1343, in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 766, in handle
    self.emit(record)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rosgraph/roslogging.py", line 239, in emit
    record_message = _defaultFormatter.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 465, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 329, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
@mje-nz
Copy link
Owner Author

mje-nz commented Jul 31, 2019

(fixed in dev)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant