-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Fix python header resolution on Windows #26693
Conversation
The substring "\U" in the path to the Python binary was confused for a unicode escape sequence. This should be a raw string.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. TIL windows allow special chars like \
in filename.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks for the improvement!
In Windows, backslash is the path separator! I actually used forward-slashes in my project config, but something converted it into its platform-native representation before this code encountered it. |
@twon33 Right, my bad. I was reading from a wrong source: https://awp.autotask.net/help/Content/1_GENERAL/File_Name_Constraints.htm According to wiki, |
Known failure #26595 |
Could we get this into the next patch release? It looks like 1.39.0 and 1.39.1 were both released after this PR but didn't include this commit, and this is currently blocking our gRPC upgrade since our Windows build fails on any gRPC versions on or after 1.27.0 (which is the first release that included the header detection changes). |
@clarkzinzow The v1.40.0 release is on the way and includes this change. It should be happen soon. CC @nicolasnoble for a more accurate release date. |
@lidizheng Perfect, thank you! 😄 We're applying a manual patch via a Bazel HTTP archive target for now, but we'll be sure to upgrade to v1.40.0 once it's out and remove the patch. |
The substring "\U" in the path to the Python binary was confused for a unicode escape sequence. This should be a raw string.
The substring "\U" in the path to the Python binary was confused for a unicode escape sequence. This should be a raw string.
@markdroth