[ros_introspection] Use str instead of unicode in replace_contents#91
Open
[ros_introspection] Use str instead of unicode in replace_contents#91
Conversation
Owner
|
Would you mind sending the source file (or a placeholder source file with the nonASCII characters)? |
Author
|
Here is a repo on which I tried to use |
Owner
|
Did some diggiging, and this looks like it was fixed in #83 here: https://github.com/DLu/roscompile/pull/83/files#diff-c3801915f37d209e220776e077539bf711bb6d734402af8ca2a4f57bf96ee4f1 Were you running from the binary? |
Author
|
No, I didn't run the binary, if there was any. I ran the tool from source, in a catkin workspace As for the fix, it looks like the following line is not catching |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ROS Distro :
melodic,noeticI had the following error when running
magical_ros2_conversion_tool:Part of it was maybe caused by the fact that the package I am trying to convert has comments with characters that are not part of ASCII. This error is combined with a message from
pylint:My solution is to replace
unicodewithstr. Once replaced, the package ws then able to run without any problems.