Title: setuptools 60.0.0 breaking change · Issue #325 · googleapis/python-api-core · GitHub
Open Graph Title: setuptools 60.0.0 breaking change · Issue #325 · googleapis/python-api-core
X Title: setuptools 60.0.0 breaking change · Issue #325 · googleapis/python-api-core
Description: install_requires should avoid setuptools>=60 as it results in (apparently) a ModuleNotFound error. We encountered this in GitHub actions calls to gcloud tools. Environment details OS type and version: Ubuntu (Github Actions ubuntu 2004) ...
Open Graph Description: install_requires should avoid setuptools>=60 as it results in (apparently) a ModuleNotFound error. We encountered this in GitHub actions calls to gcloud tools. Environment details OS type and versi...
X Description: install_requires should avoid setuptools>=60 as it results in (apparently) a ModuleNotFound error. We encountered this in GitHub actions calls to gcloud tools. Environment details OS type and ve...
Opengraph URL: https://github.com/googleapis/python-api-core/issues/325
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"setuptools 60.0.0 breaking change","articleBody":"install_requires should avoid `setuptools\u003e=60` as it results in (apparently) a ModuleNotFound error. We encountered this in GitHub actions calls to `gcloud` tools.\r\n\r\n\r\n#### Environment details\r\n\r\n - OS type and version: Ubuntu (Github Actions [ubuntu 2004](https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md))\r\n - Python version: 3.7.12\r\n - `pip` version: 20.0.2\r\n - `google-api-core` 2.3.2\r\n - `setuptools` 60.0.0\r\n\r\n#### Steps to reproduce\r\n\r\n 1. pip install `google-api-core` with eager upgrade strategy\r\n 2. make call to gcloud \r\n\r\n#### Code example\r\n\r\n```bash\r\n$ pip install --upgrade --upgrade-strategy eager \"google-api-python-client\u003e=1.0.0\"\r\n$ gcloud container images list-tags\r\nERROR: gcloud failed to load (gcloud.container.images.list_tags): Problem loading gcloud.container.images.list_tags: No module named 'setuptools._distutils'.\r\n\r\n# then try\r\n$ pip install --upgrade --upgrade-strategy eager \"setuptools\u003c60\" \"google-api-python-client\u003e=1.0.0\"\r\n$ gcloud container images list-tags\r\nERROR: (gcloud.container.images.list-tags) argument IMAGE_NAME: Must be specified.\r\n# This is the expected result .... \r\n```\r\n\r\n#### CLI output in failure case\r\n```\r\nERROR: gcloud failed to load (gcloud.container.images.list_tags): Problem loading gcloud.container.images.list_tags: No module named 'setuptools._distutils'.\r\n\r\nThis usually indicates corruption in your gcloud installation or problems with your Python interpreter.\r\n\r\nPlease verify that the following is the path to a working Python 2.7 or 3.5+ executable:\r\n /Users/jason.brown/.virtualenvs/dgx/bin/python3\r\nIf it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.\r\n\r\nIf you are still experiencing problems, please run the following command to reinstall:\r\n $ gcloud components reinstall\r\n\r\nIf that command fails, please reinstall the Cloud SDK using the instructions here:\r\n https://cloud.google.com/sdk/\r\n\r\n```\r\n\r\n \r\n","author":{"url":"https://github.com/vpipkt","@type":"Person","name":"vpipkt"},"datePublished":"2021-12-20T14:56:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/325/python-api-core/issues/325"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d0494729-84bd-6297-319e-8ea937653f36 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D158:1F55B6:1A6692:26A9A7:6A4DFEBA |
| html-safe-nonce | 00b18ab352f0c1331427807255bd46cee21b9c9b659acbb569c7925ddd288914 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTU4OjFGNTVCNjoxQTY2OTI6MjZBOUE3OjZBNERGRUJBIiwidmlzaXRvcl9pZCI6IjUzNTMyMDQ3MzUzOTMxMzMzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 76bae442005c9d40f39412975125a2c08d783c8f4f0fb11fb3820453c1aad09f |
| hovercard-subject-tag | issue:1084884148 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-api-core/325/issue_layout |
| twitter:image | https://opengraph.githubassets.com/01de1bdd1e931b0b4303e051366ec66248d3b387c770ddee82f1a07f49a404c7/googleapis/python-api-core/issues/325 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/01de1bdd1e931b0b4303e051366ec66248d3b387c770ddee82f1a07f49a404c7/googleapis/python-api-core/issues/325 |
| og:image:alt | install_requires should avoid setuptools>=60 as it results in (apparently) a ModuleNotFound error. We encountered this in GitHub actions calls to gcloud tools. Environment details OS type and versi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vpipkt |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-api-core git https://github.com/googleapis/python-api-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992456 |
| octolytics-dimension-repository_nwo | googleapis/python-api-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992456 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-api-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 52bde38e24398476f8eb1e0760c81346c6a00812 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width