This repository was archived by the owner on May 31, 2025. It is now read-only.
Make RospyLogger.findCaller compatible with Python3 (also, unbreak ROS on Python3)#1121
Merged
dirk-thomas merged 1 commit intoros:lunar-develfrom Aug 11, 2017
kartikmohta:fix/roslogging-python3
Merged
Make RospyLogger.findCaller compatible with Python3 (also, unbreak ROS on Python3)#1121dirk-thomas merged 1 commit intoros:lunar-develfrom kartikmohta:fix/roslogging-python3
dirk-thomas merged 1 commit intoros:lunar-develfrom
kartikmohta:fix/roslogging-python3
Conversation
The findCaller function in Python3 logging module takes 2 arguments (including self) compared to only self in Python2.
Member
|
@kartikmohta Thank you for the fix. @asmodehn FYI |
Contributor
|
FYI this is currently breaking ros1_bridge message generation, would kindly request a tagged release. |
Member
|
A new release will be made as soon as the pending logging regression has been fixed: see #1141. |
Member
|
The "broken" version should only be in the testing repo. You should be ok if you use the version available from the main repo. |
Contributor
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Due to the change in #1043, ROS was broken on Python3. The findCaller function in Python3 logging module takes 2 arguments (including self) compared to only 1 (self) in Python2 and returns 4 values instead of 3 in Python2.
Without this patch, roscore doesn't even start: