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

Document Windows VC++ Redist pre-req #133

Open
jay0lee opened this issue Nov 8, 2024 · 0 comments
Open

Document Windows VC++ Redist pre-req #133

jay0lee opened this issue Nov 8, 2024 · 0 comments
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@jay0lee
Copy link

jay0lee commented Nov 8, 2024

When installed on MS Windows, enterprise-certificate-proxy requires the Windows VC++ Redist package to also be installed from:

https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

If it is not installed gcloud commands will generally die with an error like:

c:\gcloud>gcloud auth login
ERROR: gcloud crashed (FileNotFoundError): Could not find module 'C:\gcloud\google-cloud-sdk\platform\enterprise_cert\libtls_offload.dll' (or one of its dependencies). Try using the full path with constructor syntax.

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics

libtls_offload.dll DEFINITELY exists in my setup but Windows OS masks that the true failure was loading other DLLs which it depends on.

This can be reproduced on a clean Google Compute Engine Windows 2019 VM (I'm aware generally Google Compute Engine would use attached service account, not end user auth but this is a simple way for Googlers to repro the issue).

The error message above offers few clues to the issue. This is a Windows feature limitation as described at:

https://docs.python.org/3/library/ctypes.html#ctypes.CDLL

as such, I suggest gcloud should catch the exception and recommend the user install the free MS Redist package listed above.

@jay0lee jay0lee added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant