Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

rospy uses depracated warn() instead of warning() (important; with patch) #2106

@mikolajz

Description

@mikolajz

In Ubuntu 20.04 with ROS Noetic, running code using rospy results in a lot of warnings like:

/opt/ros/noetic/lib/python3/dist-packages/rospy/core.py:183: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
    logfunc(msg, *args, **kwargs)

The attached patch fixes it.

The surprising part is that this is important for us, as when we run our pytest in Ubuntu 20.04, we get more such warnings than the default scrolling buffer of the terminal, thus we don't see the other messages above.

rospy.diff.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions