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

ImportError: cannot import name 'aio' from 'grpc.experimental' #44

Closed
s22chan opened this issue Jun 12, 2020 · 2 comments
Closed

ImportError: cannot import name 'aio' from 'grpc.experimental' #44

s22chan opened this issue Jun 12, 2020 · 2 comments

Comments

@s22chan
Copy link

s22chan commented Jun 12, 2020

Issue:

google-api-core-grpc >= 1.18.0 requires some AIO features (see https://googleapis.dev/python/google-api-core/latest/changelog.html#id5), but the conda-forge package for grpcio has been stuck on 1.23.0 for a while (see conda-forge/grpcio-feedstock#16)

When importing, you end up with the import error as above.

The newer packages need to set the grpc minimum version requirement to avoid being included in the solver.

Environment (conda list):

$ conda list
...
google-api-core           1.20.0                   pypi_0    pypi
google-api-core-grpc      1.20.0               hc8dfbb8_0    conda-forge
google-auth               1.16.1                   pypi_0    pypi
google-auth-oauthlib      0.4.1                      py_2    conda-forge
google-cloud-core         1.3.0                      py_0    conda-forge
google-cloud-logging      1.15.0             pyh9f0ad1d_0    conda-forge
google-cloud-storage      1.28.1             pyh9f0ad1d_0    conda-forge
google-resumable-media    0.5.1              pyh9f0ad1d_0    conda-forge
grpcio                    1.23.0           py37hb0870dc_1    conda-forge

Details about conda and system ( conda info ):
$ conda info

     active environment : base
    active env location : /opt/conda/envs/base
            shell level : 1
       user config file : /home/anaconda/.condarc
 populated config files :
          conda version : 4.8.2
    conda-build version : not installed
         python version : 3.7.6.final.0
       virtual packages : __glibc=2.28
       base environment : /opt/conda  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /opt/conda/pkgs
                          /home/anaconda/.conda/pkgs
       envs directories : /opt/conda/envs
                          /home/anaconda/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Linux/4.19.76-linuxkit alpine/3.9.5 glibc/2.28
                UID:GID : 10151:101
             netrc file : None
           offline mode : False
@s22chan
Copy link
Author

s22chan commented Jun 12, 2020

see googleapis/python-api-core#41

@parthea
Copy link
Contributor

parthea commented Jun 16, 2021

I'm going to close this as obsolete but please feel free to re-open this issue.

@parthea parthea closed this as completed Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants