-
Notifications
You must be signed in to change notification settings - Fork 207
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
Auto generated code get_distribution method through DistributionNotFound
error
#200
Comments
@cguardia This might be another one to get started, feel free to assign yourself if you have capacity. |
Is this an issue with the code generator or something that should be fixed in the handwritten layers? cc: @anguillanneuf |
The file structure looks a bit off. Why do we have This is what we have currently.
This is what we should have?
I referenced https://github.com/googleapis/python-vision/tree/master/google. |
@anguillanneuf I don't remember exactly why this is the case, it might have been the most straightforward way to avoid any conflicts between the generated code and the hand-written code during the transition to the microgenerator. We might want to refactor this at some point, though, and configure thegenerator to generate the code under |
Looking at the ClientInfo docstring, We can modify these pieces of generated code and provide the client library version, I'm sure the server-side analytics would benefit from it. If there's no setting in the generator itself, we can still do it through |
Thanks Peter for the link to ClientInfo docstring! Sounds like we should go with |
Try statement never executed because of
get_distribution(google-pubsub)
, it should be get_distribution("google-cloud-pubsub",)python-pubsub/google/pubsub_v1/services/publisher/transports/base.py
Lines 34 to 37 in 6b9eec8
also found same thing at various places:
python-pubsub/google/pubsub_v1/services/subscriber/transports/base.py
Line 36 in 6b9eec8
python-pubsub/google/pubsub_v1/services/publisher/async_client.py
Line 1093 in 6b9eec8
python-pubsub/google/pubsub_v1/services/publisher/client.py
Line 1199 in 6b9eec8
python-pubsub/google/pubsub_v1/services/subscriber/client.py
Line 1904 in 6b9eec8
The text was updated successfully, but these errors were encountered: