Title: ImportError: cannot import `six.moves.collections_abc` · Issue #45 · googleapis/python-cloud-core · GitHub
Open Graph Title: ImportError: cannot import `six.moves.collections_abc` · Issue #45 · googleapis/python-cloud-core
X Title: ImportError: cannot import `six.moves.collections_abc` · Issue #45 · googleapis/python-cloud-core
Description: The PR requires six>=1.13.0 and is in releases 1.4.2 & newer. Any service using an older release of six will encounter this ImportError: Traceback (most recent call last): . . . File "/base/data/home/apps/m~PROJECT_ID/20201117...
Open Graph Description: The PR requires six>=1.13.0 and is in releases 1.4.2 & newer. Any service using an older release of six will encounter this ImportError: Traceback (most recent call last): . . . File "/b...
X Description: The PR </pull/34> requires six>=1.13.0 and is in releases 1.4.2 & newer. Any service using an older release of six will encounter this ImportError: Traceback (most recent call last): ....
Opengraph URL: https://github.com/googleapis/python-cloud-core/issues/45
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ImportError: cannot import `six.moves.collections_abc`","articleBody":"- The PR \u003c/pull/34\u003e requires `six\u003e=1.13.0` and is in releases 1.4.2 \u0026 newer.\r\n- Any service using an older release of `six` will encounter this `ImportError`:\r\n```\r\nTraceback (most recent call last):\r\n . . .\r\n File \"/base/data/home/apps/m~PROJECT_ID/20201117t171012.431016593202024462/main.py\", line 16, in \u003cmodule\u003e\r\n from google.cloud import ndb\r\n File \"/base/data/home/apps/m~PROJECT_ID/20201117t171012.431016593202024462/lib/google/cloud/ndb/__init__.py\", line 28, in \u003cmodule\u003e\r\n from google.cloud.ndb.client import Client\r\n File \"/base/data/home/apps/m~PROJECT_ID/20201117t171012.431016593202024462/lib/google/cloud/ndb/client.py\", line 26, in \u003cmodule\u003e\r\n from google.cloud.datastore_v1.gapic import datastore_client\r\n File \"/base/data/home/apps/m~PROJECT_ID/20201117t171012.431016593202024462/lib/google/cloud/datastore_v1/__init__.py\", line 18, in \u003cmodule\u003e\r\n from google.cloud.datastore_v1.gapic import datastore_client\r\n File \"/base/data/home/apps/m~PROJECT_ID/20201117t171012.431016593202024462/lib/google/cloud/datastore_v1/gapic/datastore_client.py\", line 39, in \u003cmodule\u003e\r\n from google.cloud.datastore.version import __version__\r\n File \"/base/data/home/apps/m~PROJECT_ID/20201117t171012.431016593202024462/lib/google/cloud/datastore/__init__.py\", line 60, in \u003cmodule\u003e\r\n from google.cloud.datastore.client import Client\r\n File \"/base/data/home/apps/m~PROJECT_ID/20201117t171012.431016593202024462/lib/google/cloud/datastore/client.py\", line 26, in \u003cmodule\u003e\r\n from google.cloud.datastore._http import HTTPDatastoreAPI\r\n File \"/base/data/home/apps/m~PROJECT_ID/20201117t171012.431016593202024462/lib/google/cloud/datastore/_http.py\", line 19, in \u003cmodule\u003e\r\n from google.cloud import _http as connection_module\r\n File \"/base/data/home/apps/m~PROJECT_ID/20201117t171012.431016593202024462/lib/google/cloud/_http.py\", line 22, in \u003cmodule\u003e\r\n from six.moves import collections_abc\r\nImportError: cannot import name collections_abc\r\n```\r\n- This affects all Python 2 App Engine users as [`six==1.12.0` is built-in](https://cloud.google.com/appengine/docs/standard/python/tools/built-in-libraries-27)\r\n- The current workaround is to reference the immediately preceding version by adding `google-cloud-core==1.4.1` in any affected application's `requirements.txt` file until either App Engine revs `six` to a newer release (\u003e=1.13.0), **or** [Line 22 of google/cloud/_http.py](https://github.com/googleapis/python-cloud-core/blob/master/google/cloud/_http.py#L22) is patched, perhaps with something like this:\r\n```\r\n# catch six\u003c1.13.0\r\ntry:\r\n from six.moves import collections_abc\r\nexcept ImportError:\r\n # catch python\u003c3.3.0\r\n try:\r\n import collections.abc as collections_abc # only works on 3.3+\r\n except ImportError:\r\n import collections as collections_abc\r\n```\r\n","author":{"url":"https://github.com/wescpy","@type":"Person","name":"wescpy"},"datePublished":"2020-11-18T02:37:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/45/python-cloud-core/issues/45"}
| 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:75422c45-d9c0-2e03-b348-f94de01ded8b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCAA:3C8683:7B84F3:A5F5ED:6A4EC598 |
| html-safe-nonce | 95cfb1f82d3be65647a07f3c9fd64e15de883109ed2f35863d12698c6f5626d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0FBOjNDODY4Mzo3Qjg0RjM6QTVGNUVEOjZBNEVDNTk4IiwidmlzaXRvcl9pZCI6IjEyNzI5NjY1ODk2Mzc5MDM3NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 85c48457d3d702c740242f4ec1e78061d78abdb69da977521628ce12a962a3c5 |
| hovercard-subject-tag | issue:745276235 |
| 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-cloud-core/45/issue_layout |
| twitter:image | https://opengraph.githubassets.com/979739ff0a48d083d476634a11334d4e0ffa27059ed43b9e96c04c8254102bea/googleapis/python-cloud-core/issues/45 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/979739ff0a48d083d476634a11334d4e0ffa27059ed43b9e96c04c8254102bea/googleapis/python-cloud-core/issues/45 |
| og:image:alt | The PR requires six>=1.13.0 and is in releases 1.4.2 & newer. Any service using an older release of six will encounter this ImportError: Traceback (most recent call last): . . . File "/b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wescpy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-cloud-core git https://github.com/googleapis/python-cloud-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992462 |
| octolytics-dimension-repository_nwo | googleapis/python-cloud-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992462 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-cloud-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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width