prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [CT-2225] [Bug] Suddenly getting ModuleNotFoundError: No module named 'pytz'
  ### Is this a new bug in dbt-core?
  
  - [X] I believe this is a new bug in dbt-core
  - [X] I have searched the existing issues, and I could not find an existing issue for this bug
  
  ### Current Behavior
  
  I am installing dbt-bigquery with meltano (which installs it in a isolated *venv*).
  
  Today when invoking `dbt deps` using `meltano invoke dbt-bigquery:deps` I am getting a stacktrace with 
  
      ModuleNotFoundError: No module named 'pytz'
  
  
  
  ### Expected Behavior
  
  `pytz` should be found. I have noted that it is not included in the requirements. So while it's strange that it suddenly started failing, maybe it was more of an accident that it ever worked in the first place?
  
  ### Steps To Reproduce
  
  With versions specified as
  
      dbt-core~=1.3.0
      dbt-bigquery~=1.3.0
  
  invoking `dbt deps` should not throw a ModuleNotFoundError
  
  ### Relevant log output
  
  ```shell
  Traceback (most recent call last):
    File "/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/bin/dbt", line 5, in <module>
      from dbt.main import main
    File "/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/main.py", line 24, in <module>
      import dbt.task.build as build_task
    File "/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/task/build.py", line 1, in <module>
      from .run import RunTask, ModelRunner as run_model_runner
    File "/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/task/run.py", line 8, in <module>
      from .compile import CompileRunner, CompileTask
    File "/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/task/compile.py", line 4, in <module>
      from .runnable import GraphRunnableTask
    File "/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/task/runnable.py", line 11, in <module>
      from .printer import (
    File "/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/task/printer.py", line 22, in <module>
      from dbt.tracking import InvocationProcessor
    File "/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/tracking.py", line 25, in <module>
      import pytz
  ModuleNotFoundError: No module named 'pytz'
  ```
  
  
  ### Environment
  
  ```markdown
  - OS: Linux (fresh docker container inside virtual environment)
  - Python: 3.9
  - dbt: 1.3.1 (~=1.3.0)
  ```
  
  
  ### Which database adapter are you using with dbt?
  
  other (mention it in "Additional Context")
  
  ### Additional Context
  
  _No response_
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `core/setup.py`
  Content:
  ```
  1 #!/usr/bin/env python
  2 import os
  3 import sys
  4 
  5 if sys.version_info < (3, 7, 2):
  6     print("Error: dbt does not support this version of Python.")
  7     print("Please upgrade to Python 3.7.2 or higher.")
  8     sys.exit(1)
  9 
  10 
  11 from setuptools import setup
  12 
  13 try:
  14     from setuptools import find_namespace_packages
  15 except ImportError:
  16     # the user has a downlevel version of setuptools.
  17     print("Error: dbt requires setuptools v40.1.0 or higher.")
  18     print('Please upgrade setuptools with "pip install --upgrade setuptools" ' "and try again")
  19     sys.exit(1)
  20 
  21 
  22 this_directory = os.path.abspath(os.path.dirname(__file__))
  23 with open(os.path.join(this_directory, "README.md")) as f:
  24     long_description = f.read()
  25 
  26 
  27 package_name = "dbt-core"
  28 package_version = "1.2.4"
  29 description = """With dbt, data analysts and engineers can build analytics \
  30 the way engineers build applications."""
  31 
  32 
  33 setup(
  34     name=package_name,
  35     version=package_version,
  36     description=description,
  37     long_description=long_description,
  38     long_description_content_type="text/markdown",
  39     author="dbt Labs",
  40     author_email="info@dbtlabs.com",
  41     url="https://github.com/dbt-labs/dbt-core",
  42     packages=find_namespace_packages(include=["dbt", "dbt.*"]),
  43     include_package_data=True,
  44     test_suite="test",
  45     entry_points={
  46         "console_scripts": [
  47             "dbt = dbt.main:main",
  48         ],
  49     },
  50     install_requires=[
  51         "Jinja2==2.11.3",
  52         "MarkupSafe>=0.23,<2.1",
  53         "agate>=1.6,<1.6.4",
  54         "click>=7.0,<9",
  55         "colorama>=0.3.9,<0.4.6",
  56         "hologram>=0.0.14,<=0.0.15",
  57         "isodate>=0.6,<0.7",
  58         "logbook>=1.5,<1.6",
  59         "mashumaro==2.9",
  60         "minimal-snowplow-tracker==0.0.2",
  61         "networkx>=2.3,<2.8.1;python_version<'3.8'",
  62         "networkx>=2.3,<3;python_version>='3.8'",
  63         "packaging>=20.9,<22.0",
  64         "sqlparse>=0.2.3,<0.5",
  65         "dbt-extractor~=0.4.1",
  66         "typing-extensions>=3.7.4",
  67         "werkzeug>=1,<3",
  68         # the following are all to match snowflake-connector-python
  69         "requests<3.0.0",
  70         "idna>=2.5,<4",
  71         "cffi>=1.9,<2.0.0",
  72     ],
  73     zip_safe=False,
  74     classifiers=[
  75         "Development Status :: 5 - Production/Stable",
  76         "License :: OSI Approved :: Apache Software License",
  77         "Operating System :: Microsoft :: Windows",
  78         "Operating System :: MacOS :: MacOS X",
  79         "Operating System :: POSIX :: Linux",
  80         "Programming Language :: Python :: 3.7",
  81         "Programming Language :: Python :: 3.8",
  82         "Programming Language :: Python :: 3.9",
  83         "Programming Language :: Python :: 3.10",
  84     ],
  85     python_requires=">=3.7.2",
  86 )
  87
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/core/setup.py b/core/setup.py
  --- a/core/setup.py
  +++ b/core/setup.py
  @@ -65,6 +65,7 @@
           "dbt-extractor~=0.4.1",
           "typing-extensions>=3.7.4",
           "werkzeug>=1,<3",
  +        "pytz>=2015.7",
           # the following are all to match snowflake-connector-python
           "requests<3.0.0",
           "idna>=2.5,<4",
  
verification_info: {"golden_diff": "diff --git a/core/setup.py b/core/setup.py\n--- a/core/setup.py\n+++ b/core/setup.py\n@@ -65,6 +65,7 @@\n         \"dbt-extractor~=0.4.1\",\n         \"typing-extensions>=3.7.4\",\n         \"werkzeug>=1,<3\",\n+        \"pytz>=2015.7\",\n         # the following are all to match snowflake-connector-python\n         \"requests<3.0.0\",\n         \"idna>=2.5,<4\",\n", "issue": "[CT-2225] [Bug] Suddenly getting ModuleNotFoundError: No module named 'pytz'\n### Is this a new bug in dbt-core?\n\n- [X] I believe this is a new bug in dbt-core\n- [X] I have searched the existing issues, and I could not find an existing issue for this bug\n\n### Current Behavior\n\nI am installing dbt-bigquery with meltano (which installs it in a isolated *venv*).\r\n\r\nToday when invoking `dbt deps` using `meltano invoke dbt-bigquery:deps` I am getting a stacktrace with \r\n\r\n    ModuleNotFoundError: No module named 'pytz'\r\n\r\n\n\n### Expected Behavior\n\n`pytz` should be found. I have noted that it is not included in the requirements. So while it's strange that it suddenly started failing, maybe it was more of an accident that it ever worked in the first place?\n\n### Steps To Reproduce\n\nWith versions specified as\r\n\r\n    dbt-core~=1.3.0\r\n    dbt-bigquery~=1.3.0\r\n\r\ninvoking `dbt deps` should not throw a ModuleNotFoundError\n\n### Relevant log output\n\n```shell\nTraceback (most recent call last):\r\n  File \"/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/bin/dbt\", line 5, in <module>\r\n    from dbt.main import main\r\n  File \"/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/main.py\", line 24, in <module>\r\n    import dbt.task.build as build_task\r\n  File \"/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/task/build.py\", line 1, in <module>\r\n    from .run import RunTask, ModelRunner as run_model_runner\r\n  File \"/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/task/run.py\", line 8, in <module>\r\n    from .compile import CompileRunner, CompileTask\r\n  File \"/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/task/compile.py\", line 4, in <module>\r\n    from .runnable import GraphRunnableTask\r\n  File \"/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/task/runnable.py\", line 11, in <module>\r\n    from .printer import (\r\n  File \"/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/task/printer.py\", line 22, in <module>\r\n    from dbt.tracking import InvocationProcessor\r\n  File \"/workspaces/elt/.meltano/transformers/dbt-bigquery/venv/lib/python3.9/site-packages/dbt/tracking.py\", line 25, in <module>\r\n    import pytz\r\nModuleNotFoundError: No module named 'pytz'\n```\n\n\n### Environment\n\n```markdown\n- OS: Linux (fresh docker container inside virtual environment)\r\n- Python: 3.9\r\n- dbt: 1.3.1 (~=1.3.0)\n```\n\n\n### Which database adapter are you using with dbt?\n\nother (mention it in \"Additional Context\")\n\n### Additional Context\n\n_No response_\n", "before_files": [{"content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 7, 2):\n    print(\"Error: dbt does not support this version of Python.\")\n    print(\"Please upgrade to Python 3.7.2 or higher.\")\n    sys.exit(1)\n\n\nfrom setuptools import setup\n\ntry:\n    from setuptools import find_namespace_packages\nexcept ImportError:\n    # the user has a downlevel version of setuptools.\n    print(\"Error: dbt requires setuptools v40.1.0 or higher.\")\n    print('Please upgrade setuptools with \"pip install --upgrade setuptools\" ' \"and try again\")\n    sys.exit(1)\n\n\nthis_directory = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(this_directory, \"README.md\")) as f:\n    long_description = f.read()\n\n\npackage_name = \"dbt-core\"\npackage_version = \"1.2.4\"\ndescription = \"\"\"With dbt, data analysts and engineers can build analytics \\\nthe way engineers build applications.\"\"\"\n\n\nsetup(\n    name=package_name,\n    version=package_version,\n    description=description,\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    author=\"dbt Labs\",\n    author_email=\"info@dbtlabs.com\",\n    url=\"https://github.com/dbt-labs/dbt-core\",\n    packages=find_namespace_packages(include=[\"dbt\", \"dbt.*\"]),\n    include_package_data=True,\n    test_suite=\"test\",\n    entry_points={\n        \"console_scripts\": [\n            \"dbt = dbt.main:main\",\n        ],\n    },\n    install_requires=[\n        \"Jinja2==2.11.3\",\n        \"MarkupSafe>=0.23,<2.1\",\n        \"agate>=1.6,<1.6.4\",\n        \"click>=7.0,<9\",\n        \"colorama>=0.3.9,<0.4.6\",\n        \"hologram>=0.0.14,<=0.0.15\",\n        \"isodate>=0.6,<0.7\",\n        \"logbook>=1.5,<1.6\",\n        \"mashumaro==2.9\",\n        \"minimal-snowplow-tracker==0.0.2\",\n        \"networkx>=2.3,<2.8.1;python_version<'3.8'\",\n        \"networkx>=2.3,<3;python_version>='3.8'\",\n        \"packaging>=20.9,<22.0\",\n        \"sqlparse>=0.2.3,<0.5\",\n        \"dbt-extractor~=0.4.1\",\n        \"typing-extensions>=3.7.4\",\n        \"werkzeug>=1,<3\",\n        # the following are all to match snowflake-connector-python\n        \"requests<3.0.0\",\n        \"idna>=2.5,<4\",\n        \"cffi>=1.9,<2.0.0\",\n    ],\n    zip_safe=False,\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Operating System :: Microsoft :: Windows\",\n        \"Operating System :: MacOS :: MacOS X\",\n        \"Operating System :: POSIX :: Linux\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n    ],\n    python_requires=\">=3.7.2\",\n)\n", "path": "core/setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 7, 2):\n    print(\"Error: dbt does not support this version of Python.\")\n    print(\"Please upgrade to Python 3.7.2 or higher.\")\n    sys.exit(1)\n\n\nfrom setuptools import setup\n\ntry:\n    from setuptools import find_namespace_packages\nexcept ImportError:\n    # the user has a downlevel version of setuptools.\n    print(\"Error: dbt requires setuptools v40.1.0 or higher.\")\n    print('Please upgrade setuptools with \"pip install --upgrade setuptools\" ' \"and try again\")\n    sys.exit(1)\n\n\nthis_directory = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(this_directory, \"README.md\")) as f:\n    long_description = f.read()\n\n\npackage_name = \"dbt-core\"\npackage_version = \"1.2.4\"\ndescription = \"\"\"With dbt, data analysts and engineers can build analytics \\\nthe way engineers build applications.\"\"\"\n\n\nsetup(\n    name=package_name,\n    version=package_version,\n    description=description,\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    author=\"dbt Labs\",\n    author_email=\"info@dbtlabs.com\",\n    url=\"https://github.com/dbt-labs/dbt-core\",\n    packages=find_namespace_packages(include=[\"dbt\", \"dbt.*\"]),\n    include_package_data=True,\n    test_suite=\"test\",\n    entry_points={\n        \"console_scripts\": [\n            \"dbt = dbt.main:main\",\n        ],\n    },\n    install_requires=[\n        \"Jinja2==2.11.3\",\n        \"MarkupSafe>=0.23,<2.1\",\n        \"agate>=1.6,<1.6.4\",\n        \"click>=7.0,<9\",\n        \"colorama>=0.3.9,<0.4.6\",\n        \"hologram>=0.0.14,<=0.0.15\",\n        \"isodate>=0.6,<0.7\",\n        \"logbook>=1.5,<1.6\",\n        \"mashumaro==2.9\",\n        \"minimal-snowplow-tracker==0.0.2\",\n        \"networkx>=2.3,<2.8.1;python_version<'3.8'\",\n        \"networkx>=2.3,<3;python_version>='3.8'\",\n        \"packaging>=20.9,<22.0\",\n        \"sqlparse>=0.2.3,<0.5\",\n        \"dbt-extractor~=0.4.1\",\n        \"typing-extensions>=3.7.4\",\n        \"werkzeug>=1,<3\",\n        \"pytz>=2015.7\",\n        # the following are all to match snowflake-connector-python\n        \"requests<3.0.0\",\n        \"idna>=2.5,<4\",\n        \"cffi>=1.9,<2.0.0\",\n    ],\n    zip_safe=False,\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Operating System :: Microsoft :: Windows\",\n        \"Operating System :: MacOS :: MacOS X\",\n        \"Operating System :: POSIX :: Linux\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n    ],\n    python_requires=\">=3.7.2\",\n)\n", "path": "core/setup.py"}]}