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

Error in log? - Maybe caused by rospy.logerr #46

Closed
marioney opened this issue May 23, 2020 · 1 comment
Closed

Error in log? - Maybe caused by rospy.logerr #46

marioney opened this issue May 23, 2020 · 1 comment
Assignees

Comments

@marioney
Copy link
Contributor

It seems to be an error in printing the log

File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/home/mario/ros/rospy3_melodic/src/ros_comm/rospy/src/rospy/timer.py", line 234, in run
    self._callback(TimerEvent(last_expected, last_real, current_expected, current_real, last_duration))
  File "/home/mario/ros/reasoner_metacontrol_ws/src/mros1_reasoner/mros1_reasoner/scripts/mros1_reasoner.py", line 264, in timer_cb
    fd = selectFD(objectives_internal_error[0])
  File "/home/mario/ros/reasoner_metacontrol_ws/src/mros1_reasoner/mros1_reasoner/scripts/mros1_reasoner.py", line 126, in selectFD
    fd = obtainBestFunctionDesign(o)
  File "/home/mario/ros/reasoner_metacontrol_ws/src/mros1_reasoner/mros1_reasoner/scripts/mros1_reasoner.py", line 60, in obtainBestFunctionDesign
    rospy.loginfo("== FunctionDesigns available for obj: ", [fd.name for fd in fds])
  File "/home/mario/ros/rospy3_melodic/src/ros_comm/rospy/src/rospy/core.py", line 190, in loginfo
    _base_logger(msg, args, kwargs, level='info')
  File "/home/mario/ros/rospy3_melodic/src/ros_comm/rospy/src/rospy/core.py", line 183, in _base_logger
    logfunc(msg, *args, **kwargs)
  File "/usr/lib/python3.6/logging/__init__.py", line 1308, in info
    self._log(INFO, msg, args, **kwargs)
  File "/usr/lib/python3.6/logging/__init__.py", line 1444, in _log
    self.handle(record)
  File "/usr/lib/python3.6/logging/__init__.py", line 1454, in handle
    self.callHandlers(record)
  File "/usr/lib/python3.6/logging/__init__.py", line 1516, in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle
    self.emit(record)
  File "/home/mario/ros/rospy3_melodic/src/ros_comm/rosgraph/src/rosgraph/roslogging.py", line 245, in emit
    record_message = _defaultFormatter.format(record)
  File "/usr/lib/python3.6/logging/__init__.py", line 577, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.6/logging/__init__.py", line 338, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting

After this the reasoner basically stops working

@marioney marioney self-assigned this May 23, 2020
@marioney
Copy link
Contributor Author

I've fix those in #47

@chcorbato can you check it and merge them to mvp

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

No branches or pull requests

1 participant