GeezerVison is showing github.com — Remove pubsub and logging as namespace packages · Issue #2258 · googleapis/google-cloud-python
Remove pubsub and logging as namespace packages #2258DescriptionThis should be assigned to @bjwatson but I can't assign to him in this repo.
Blocking on having the GAX generated Pub / Sub and Logging clients no longer use google.cloud.logging and google.cloud.pubsub as namespace packages. Activitybjwatson commented on Sep 7, 2016 If the admin for GoogleCloudPlatform adds me, then you can assign away. :) (FYI, @omaray and @jgeewax)
I'm just resolving the email thread that you're copied on for correct package naming. After that, it's pretty easy to re-generate these surfaces, since they've already been thoroughly tested (a simple diff will tell me they still look good). theacodes commented on Sep 7, 2016 I can add you to this repo, @elibixby can add you to the veneer team. theacodes commented on Sep 7, 2016 bjwatson commented on Sep 7, 2016 dhermes commented on Sep 7, 2016 ContributorAuthor More actions
I'm just resolving the email thread that you're copied on for correct package naming. After that, it's pretty easy to re-generate these surfaces, since they've already been thoroughly tested
Yup. Just wanted to have this as a placeholder bjwatson commented on Sep 7, 2016 bjwatson commented on Sep 13, 2016 @dhermes I published 0.9.0 to https://testpypi.python.org/pypi/ for Pub/Sub, Logging, Vision, and Language (both gRPC and GAX).
I did a little testing with Vision, and ran into the same AttributeError: 'grpc._cython.cygrpc.Channel' object has no attribute 'unary_unary' that I did for Speech v1beta1 a couple weeks ago. I'll keep testing and refining more tomorrow.
BTW, the gRPC path changes for Vision required a small hand-edit to the image_annotator_pb2.py file (fixing an import statement for geometry_pb2.py). We're going to have to figure out if we can automate this or fix it upstream in the Python proto generator, or it will be non-maintainable as auto-gen code. dhermes commented on Sep 13, 2016 ContributorAuthor More actions bjwatson commented on Sep 15, 2016 @dhermes As it turns out, the AttributeError: 'grpc._cython.cygrpc.Channel' object has no attribute 'unary_unary' error is due to googleapis/gax-python#127. When I use google-gax 0.12.5 (which does not have this change), the error goes away and Cloud Vision works perfectly.
I discussed with @geigerj, and there's more work we need to do to fully remove grpc.beta. The problem is that google-gax is fixed, but our GAPIC generated code still references the grpc.beta code. The error above is because grpc and grpc.beta use different default channels.
We have two options to move forward:
- I'll generate the GAPIC code for
google-gax 0.12.5, which will still use grpc.beta. I think I can get this done tonight, but it means you won't have Remove beta from gRPC imports gax-python#126 in your next release.
- We remove
grpc.beta from our autogen code. Jacob estimates that this will take most of tomorrow to finish, so we'll be delayed by at least a day with this option.
What's your preference? dhermes commented on Sep 16, 2016 ContributorAuthor More actions @bjwatson I didn't realize language was generated yet. I can do that ASAP. Pointer to PyPI links? daspecster commented on Sep 16, 2016 bjwatson commented on Sep 16, 2016 dhermes commented on Sep 16, 2016 ContributorAuthor More actions Still need to remove the namespace package bits. On it now. bjwatson commented on Sep 16, 2016 Reacted by Thomas Schultz added 2 commits that reference this issue on Sep 16, 2016This issue will close once commit f109b0e is merged into the 'master' branch.f109b0e This issue will close once commit 2fbf722 is merged into the 'master' branch.2fbf722
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|