-
Notifications
You must be signed in to change notification settings - Fork 42
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
No output when generating some googleapis libs #767
Comments
If you aren't getting an error message, I'm not sure what the problem would be. I will have to attempt it myself at some point. Invoking it via Can I ask why you are generating the libs on your own and not using the ones in https://pkg.go.dev/cloud.google.com/go? It is totally fine, just curious :) |
I absolutely want to try it, so that help would be much appreciated!
Sure. We want to maintain a fork of the clients for internal users that enforce some policies by modifying requests, but otherwise working mostly the same as the regular clients. We need to do this for both python and go, and in order to maintain feature parity with the regular clients, we thought it'd be easier to just for the gapic-generator repos so that we can regenerate our clients when needed. |
Assuming you have
Grab the generator binary from releases or install via Go. Make sure wherever you put the binary or if you install via Go, that it is on your Alternatively, install Bazel and from
Then open the archive from the Bazel output that it reports, and you will see the GAPIC and the Go protobuf/grpc bindings. |
Interestingly, the bazel build succeeded, while the protoc call did not due to a ruby-related issue:
I didn't notice that error when running the original |
That's odd, the |
Ah yep, I was using an old protoc; upgrading fixed that issue. I'm having some trouble with the python libs though, possibly due to googleapis/rules_gapic#46. The biggest issue here is that I don't grok bazel, so I don't understand how it sets up the build environment and can't debug this weird import error:
|
Ok great!
Hm I'm not as familiar with the Python generator set up. I do know that there is a weird local dependency on the system's python installation (with bazel you'd expect everything to be hermetic, but this is one leak). Make sure you have python3 installed and possibly |
Oh derp, I forgot what repo I opened this issue against. Let's close this one as resolved, thanks!
…--
Scott Kruger
***@***.***
On Wed, Sep 8, 2021, at 12:14 PM, Noah Dietz wrote:
> Ah yep, I was using an old protoc; upgrading fixed that issue.
>
Ok great!
> I'm having some trouble with the python libs though
>
Hm I'm not as familiar with the Python generator set up. I do know that there is a weird local dependency on the system's python installation (with bazel you'd expect everything to be hermetic, but this is one leak). Make sure you have python3 installed and possibly `python-is-python3` as well (convenience package that directs all python calls to python3). I'm not sure we should attempt to debug that here though. Could you open an issue in gapic-generator-python <https://github.com/googleapis/gapic-generator-python/issues>?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#767 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAGMYLGXWWPFFMYIP5DBZZDUA6KYTANCNFSM5DJHKF4Q>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
FWIW @noahdietz you were right; it was an environment issue. Building against a debian bullseye docker image fixed things. Thanks for your help! |
I'm attempting to generate some libraries from the googleapis repo (sha f47c38882a165e0c79c70e52082e801fa2bb72d8) using the latest docker image, but I'm getting inconsistent behavior between different libraries; that is, some libraries (e.g. vision/v1) generate an output, while others (e.g. aiplatform/v1) generate nothing.
This generates output in
dest
(from thegoogleapis
repo root):However, this does not:
I do get a bunch of warning about
Import google/api/annotations.proto is unused
, but I'm not sure if that's relevant.Am I missing some step or doing something wrong? Are some libraries just unable to be generated?
The text was updated successfully, but these errors were encountered: