Title: Cannot import due to ModuleNotFound 'pytz' · Issue #885 · googleapis/python-bigquery · GitHub
Open Graph Title: Cannot import due to ModuleNotFound 'pytz' · Issue #885 · googleapis/python-bigquery
X Title: Cannot import due to ModuleNotFound 'pytz' · Issue #885 · googleapis/python-bigquery
Description: Environment details OS type and version: Ubuntu 20.04 Python version: Python 3.9.6 pip version: pip 21.2.4 google-cloud-bigquery version: 2.24.0 Steps to reproduce pip install 'google-cloud-bigquery==2.24.0' from google.cloud import bigq...
Open Graph Description: Environment details OS type and version: Ubuntu 20.04 Python version: Python 3.9.6 pip version: pip 21.2.4 google-cloud-bigquery version: 2.24.0 Steps to reproduce pip install 'google-cloud-bigquer...
X Description: Environment details OS type and version: Ubuntu 20.04 Python version: Python 3.9.6 pip version: pip 21.2.4 google-cloud-bigquery version: 2.24.0 Steps to reproduce pip install 'google-cloud-big...
Opengraph URL: https://github.com/googleapis/python-bigquery/issues/885
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot import due to ModuleNotFound 'pytz'","articleBody":"#### Environment details\r\n\r\n - OS type and version: Ubuntu 20.04\r\n - Python version: `Python 3.9.6`\r\n - pip version: `pip 21.2.4`\r\n - `google-cloud-bigquery` version: `2.24.0`\r\n\r\n#### Steps to reproduce\r\n\r\n 1. `pip install 'google-cloud-bigquery==2.24.0'`\r\n 2. `from google.cloud import bigquery`\r\n\r\n#### Code example\r\n\r\n```python\r\n\u003e\u003e\u003e from google.cloud import bigquery\r\n```\r\n\r\n#### Stack trace\r\n```\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/home/scizorman/dev/tmp/foo/.venv/lib/python3.9/site-packages/google/cloud/bigquery/__init__.py\", line 35, in \u003cmodule\u003e\r\n from google.cloud.bigquery.client import Client\r\n File \"/home/scizorman/dev/tmp/foo/.venv/lib/python3.9/site-packages/google/cloud/bigquery/client.py\", line 71, in \u003cmodule\u003e\r\n from google.cloud.bigquery.dataset import Dataset\r\n File \"/home/scizorman/dev/tmp/foo/.venv/lib/python3.9/site-packages/google/cloud/bigquery/dataset.py\", line 25, in \u003cmodule\u003e\r\n from google.cloud.bigquery.routine import RoutineReference\r\n File \"/home/scizorman/dev/tmp/foo/.venv/lib/python3.9/site-packages/google/cloud/bigquery/routine/__init__.py\", line 18, in \u003cmodule\u003e\r\n from google.cloud.bigquery.enums import DeterminismLevel\r\n File \"/home/scizorman/dev/tmp/foo/.venv/lib/python3.9/site-packages/google/cloud/bigquery/enums.py\", line 21, in \u003cmodule\u003e\r\n from google.cloud.bigquery.query import ScalarQueryParameterType\r\n File \"/home/scizorman/dev/tmp/foo/.venv/lib/python3.9/site-packages/google/cloud/bigquery/query.py\", line 23, in \u003cmodule\u003e\r\n from google.cloud.bigquery.table import _parse_schema_resource\r\n File \"/home/scizorman/dev/tmp/foo/.venv/lib/python3.9/site-packages/google/cloud/bigquery/table.py\", line 23, in \u003cmodule\u003e\r\n import pytz\r\nModuleNotFoundError: No module named 'pytz'\r\n```\r\n\r\n.venv/lib/python3.9/site-packages/google/cloud/bigquery/table.py\r\n\r\n```python\r\n# Copyright 2015 Google LLC\r\n#\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n#\r\n# http://www.apache.org/licenses/LICENSE-2.0\r\n#\r\n# Unless required by applicable law or agreed to in writing, software\r\n# distributed under the License is distributed on an \"AS IS\" BASIS,\r\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n# See the License for the specific language governing permissions and\r\n# limitations under the License.\r\n\r\n\"\"\"Define API Tables.\"\"\"\r\n\r\nfrom __future__ import absolute_import\r\n\r\nimport copy\r\nimport datetime\r\nimport functools\r\nimport operator\r\nimport pytz\r\n...\r\n```","author":{"url":"https://github.com/scizorman","@type":"Person","name":"scizorman"},"datePublished":"2021-08-19T09:53:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/885/python-bigquery/issues/885"}
| 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:80ef0ecf-e402-bd05-dfe1-50ba551701e1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B15C:37F343:11C3C3F:17C4764:6A4D8E87 |
| html-safe-nonce | 4a1ef7238a38c5a2c6ee13f86622a9b3ca21e5711c0a1d6d0c98acc7d16817dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTVDOjM3RjM0MzoxMUMzQzNGOjE3QzQ3NjQ6NkE0RDhFODciLCJ2aXNpdG9yX2lkIjoiMzc5NTY0MTg3NzQ4ODU2OTk5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 899f288976325c92771edba15048264de0f07b4e0a34537489ad0a39768809a9 |
| hovercard-subject-tag | issue:974483501 |
| 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-bigquery/885/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8fc284e6425075663ad62f3ad73b21f559ddee8344c54fb3882a6852f05b3466/googleapis/python-bigquery/issues/885 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8fc284e6425075663ad62f3ad73b21f559ddee8344c54fb3882a6852f05b3466/googleapis/python-bigquery/issues/885 |
| og:image:alt | Environment details OS type and version: Ubuntu 20.04 Python version: Python 3.9.6 pip version: pip 21.2.4 google-cloud-bigquery version: 2.24.0 Steps to reproduce pip install 'google-cloud-bigquer... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scizorman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-bigquery git https://github.com/googleapis/python-bigquery.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992475 |
| octolytics-dimension-repository_nwo | googleapis/python-bigquery |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992475 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-bigquery |
| 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 | 74e2a9c78f1e38588de4f25885878349d721eedf |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width