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

Fix python header resolution on Windows #26693

Merged
merged 1 commit into from
Jul 16, 2021
Merged

Conversation

twon33
Copy link
Contributor

@twon33 twon33 commented Jul 14, 2021

The substring "\U" in the path to the Python binary was confused for a unicode escape sequence. This should be a raw string.

@markdroth

The substring "\U" in the path to the Python binary was confused for a unicode escape sequence. This should be a raw string.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 14, 2021

CLA Signed

The committers are authorized under a signed CLA.

@lidizheng lidizheng added lang/Python release notes: no Indicates if PR should not be in release notes kokoro:run labels Jul 16, 2021
Copy link
Contributor

@lidizheng lidizheng left a 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.

Copy link
Contributor

@gnossen gnossen left a 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!

@twon33
Copy link
Contributor Author

twon33 commented Jul 16, 2021

Looks good. TIL windows allow special chars like \ in filename.

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.

@lidizheng
Copy link
Contributor

@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, \ is prohibited as filenames on Windows https://en.wikipedia.org/wiki/Filename.

@lidizheng
Copy link
Contributor

Known failure #26595

@lidizheng lidizheng merged commit 3545d8e into grpc:master Jul 16, 2021
@clarkzinzow
Copy link

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).

@lidizheng
Copy link
Contributor

@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.

@clarkzinzow
Copy link

@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.

lidizheng pushed a commit to lidizheng/grpc that referenced this pull request Sep 23, 2021
The substring "\U" in the path to the Python binary was confused for a unicode escape sequence. This should be a raw string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build kokoro:run lang/Python release notes: no Indicates if PR should not be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants