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

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

Closed
mikolajz opened this issue Dec 16, 2020 · 5 comments
Closed
Labels

Comments

@mikolajz
Copy link
Contributor

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

@jacobperron
Copy link
Contributor

@mikolajz Thanks for the report and patch file! Would you be willing to open a pull request directly?

@mikolajz
Copy link
Contributor Author

Sorry for the delay, this got lost in the e-mails around Christmas, but now I've created the PR #2120 .

@jacobperron
Copy link
Contributor

Resolved by #2120

@mikolajz
Copy link
Contributor Author

mikolajz commented Feb 2, 2021

Thanks.

What is the release schedule for ROS? Can we expect this patch to be released in DEB packages for ROS Noetic, or will it be part of some ROS Oxxx?

I'm asking since we have a patch in our local Docker image and wonder when we should prepare for it not to apply cleanly.

@jacobperron
Copy link
Contributor

@mikolajz You can expect this patch in an update to Noetic.

It's hard to give a timeline for the next release, but I can try and at least make a source release and get it into testing sometime next week.

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

No branches or pull requests

2 participants