This repository was archived by the owner on Dec 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
Install fails with poetry/python 3.10 #216
Copy link
Copy link
Closed
Labels
api: computeIssues related to the googleapis/python-compute API.Issues related to the googleapis/python-compute API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
Setting up a clean virtual environment with Poetry, Python 3.10 and google-cloud-compute fails with an error about google.api_core.
This error goes away if I use Python 3.8.1 instead.
I realize that poetry might not be an officially supported package manager, but I wanted to report anyway for other users who might encounter such an issue:
❯ poetry --version
Poetry (version 1.2.0a2)
Environment details
-
OS type and version: Ubuntu 21.04
-
Python version:
python --versionPython 3.10.1 -
pip version:
pip --versionpip 21.0.1 from /home/venky/dev/gcloud-test/.venv/lib/python3.10/site-packages/pip (python 3.10) -
google-cloud-computeversion:pip show google-cloud-compute
Name: google-cloud-compute
Version: 1.0.0
Summary: UNKNOWN
Home-page: https://github.com/googleapis/python-compute
Author: Google LLC
Author-email: googleapis-packages@google.com
License: Apache 2.0
Location: /home/venky/dev/gcloud-test/.venv/lib/python3.10/site-packages
Requires: proto-plus, google-api-core
Required-by:
Steps to reproduce
❯ cat pyproject.toml
[tool.poetry]
name = "gcloud-test"
version = "0.0.0"
description = ""
authors = ["Venky Iyer <indigoviolet@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.10"
google-cloud-compute = "^1.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
❯ poetry show --tree
google-cloud-compute 1.0.0
├── google-api-core >=2.2.0,<3.0.0dev
│ ├── google-auth >=1.25.0,<3.0dev
│ │ ├── cachetools >=2.0.0,<6.0
│ │ ├── pyasn1-modules >=0.2.1
│ │ │ └── pyasn1 >=0.4.6,<0.5.0
│ │ ├── rsa >=3.1.4,<5
│ │ │ └── pyasn1 >=0.1.3 (circular dependency aborted here)
│ │ └── six >=1.9.0
│ ├── googleapis-common-protos >=1.52.0,<2.0dev
│ │ └── protobuf >=3.12.0
│ ├── grpcio >=1.33.2,<2.0dev
│ │ └── six >=1.5.2 (circular dependency aborted here)
│ ├── grpcio-status >=1.33.2,<2.0dev
│ │ ├── googleapis-common-protos >=1.5.5 (circular dependency aborted here)
│ │ ├── grpcio >=1.43.0 (circular dependency aborted here)
│ │ └── protobuf >=3.6.0 (circular dependency aborted here)
│ ├── protobuf >=3.12.0 (circular dependency aborted here)
│ └── requests >=2.18.0,<3.0.0dev
│ ├── certifi >=2017.4.17
│ ├── charset-normalizer >=2.0.0,<2.1.0
│ ├── idna >=2.5,<4
│ └── urllib3 >=1.21.1,<1.27
└── proto-plus >=1.19.7
└── protobuf >=3.19.0
❯ python
Python 3.10.1 (main, Jan 13 2022, 12:25:55) [GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.cloud import compute_v1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/venky/dev/gcloud-test/.venv/lib/python3.10/site-packages/google/cloud/compute_v1/__init__.py", line 17, in <module>
from .services.accelerator_types import AcceleratorTypesClient
File "/home/venky/dev/gcloud-test/.venv/lib/python3.10/site-packages/google/cloud/compute_v1/services/accelerator_types/__init__.py", line 16, in <module>
from .client import AcceleratorTypesClient
File "/home/venky/dev/gcloud-test/.venv/lib/python3.10/site-packages/google/cloud/compute_v1/services/accelerator_types/client.py", line 22, in <module>
from google.api_core import client_options as client_options_lib
ModuleNotFoundError: No module named 'google.api_core'
>>>
I'm happy to collect other debugging info if it is helpful.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: computeIssues related to the googleapis/python-compute API.Issues related to the googleapis/python-compute API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.