This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
Import Error (Vision API) 'ImportError: cannot import name 'types' from 'google.cloud.vision' #57
Labels
api: vision
Issues related to the googleapis/python-vision API.
type: question
Request for information or clarification. Not an issue.
I'm trying to run the Vision API on my Mac (Text Editor VSCode) but I always get the same Error: ImportError: cannot import name 'types' from 'google.cloud.vision' (Full Screenshot attached)
I tried the following fixes:
mkdir test cd test python3 -m venv venv source venv/bin/activate pip install google-cloud-vision python3 -c "from google.cloud import vision; print(vision.__name__)" google.cloud.vision_
I will also post my installed packages
aiohttp==3.6.2 async-timeout==3.0.1 attrs==20.2.0 cachetools==4.1.1 certifi==2020.6.20 chardet==3.0.4 google-api-core==1.22.2 google-auth==1.22.0 google-cloud-vision==2.0.0 googleapis-common-protos==1.52.0 grpcio==1.32.0 idna==2.10 libcst==0.3.12 multidict==4.7.6 mypy-extensions==0.4.3 proto-plus==1.10.0 protobuf==3.13.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pytz==2020.1 PyYAML==5.3.1 requests==2.24.0 rsa==4.6 six==1.15.0 typing-extensions==3.7.4.3 typing-inspect==0.6.0 urllib3==1.25.10 yarl==1.6.0
I will appreciate any help.
The text was updated successfully, but these errors were encountered: