-
Notifications
You must be signed in to change notification settings - Fork 90
'grpc.experimental.aio' has no attribute 'StreamUnaryCall' due to PR#29 #40
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
Comments
These are the version numbers of the relevant libraries that we pin down:
|
I am getting the same error. As a workaround using an older version. |
we too have been bitten by this in a cloud function. It was painful to track down. |
I just had a similar issue in our Google Cloud Composer environment. Requirements:
Everything was working fine until today when I added the last row and it triggered some versions bumps (last one was weeks/months ago). The error manifested to me as:
The fix was to add Google Cloud Composer |
Sorry for the trouble this is causing folks! Please continue to use I suspect we need to increase the minimum required @lidizheng Could you help identify the minimum required version? |
@busunkim96 The minimum version of Sorry that I didn't add this constraint earlier. Here is a PR to bump up the minimum version: #41 |
@lidizheng No worries, It slipped my mind as well. Thank you for the PR! |
solve the problem |
Hi, but even if I upgraded to
|
@ZhengxunWu Hi, can you try to upgrade all packages to the latest version and try again? Also, what Python interpretor version did you use? We tried hard to make sure there isn't any regression when we move gRPC AsyncIO API to stable a year ago. There might be something changed in Python's import mechanism. |
I am facing the same issue. To summarise from the above workaround suggestions:
Please find attached terminal report |
@pramodh941 According to GitHub, the Can I ask if it is possible to use the latest |
@lidizheng yeah, I tried initially with the latest version 1.31.1, but it's not working. If you take a look at the attached pdf file with the terminal report, you will find the detailed error message while using with the old and latest versions |
Sorry about that. I saw the import namespace error, as well as the asyncio helper import error. |
@pramodh941 Could you try installing in a brand new virtual environment?
In the first bit of the log it looks like an older version of
To be extra sure, you can also check the import grpc
print(grpc.__version__) I'm not sure why pip wouldn't upgrade |
We observe a stack trace on one of our clusters due to a package upgrade, possibly introduced by the new release of python-api-core, which we don't pin to a specific version.
Due to PR#29, we now see the following error:
'grpc.experimental.aio' has no attribute 'StreamUnaryCall'
We will pin our version to the previous one, but documenting this here as it can affect other customers. Probably we should be pinning a more recent version of google.cloud libraries that are compatible, we're still researching this.
Environment details
pip --version
google-api-core
version: 1.19.0Steps to reproduce
Stack trace
The text was updated successfully, but these errors were encountered: