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 failure on missing google.auth inside container #122

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

sritchie
Copy link
Collaborator

This PR fixes a case identified by @georgematheos where caliban run fails when running in a project where google-auth is not installed. The solution is to use find_spec to check if google.auth is available on the classpath and use it only in that case.

@@ -5,6 +5,11 @@ addopts = --doctest-modules -v -s
[pycodestyle]
ignore = E111,E114

[yapf]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added these back so that my emacs autoformat wouldn't clobber the file. Time to switch fully to vs code for python...

Copy link

@littleredcomputer littleredcomputer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, this is why you were mentioning find_spec in the context of bayes3d initialization. Good idea.

@sritchie sritchie merged commit 205da6f into main Jan 25, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants