MRO error when running fresh dbt 1.8.* install

Getting a pretty nasty low-level inheritance (MRO) error trying to run the dbt CLI on a completely vanilla system python (3.9.6) and dbt installation.

❯ /usr/bin/python3 --version
Python 3.9.6
❯ /usr/bin/python3 -m venv ./venv
❯ source ./venv/bin/activate
❯ cat ./requirements.txt
dbt-core==1.8.0-rc1
dbt-bigquery==1.8.0-rc1
❯ which pip
/Users/cchow/projects/applied-ml-6/dbt/venv/bin/pip
❯ pip install -r ./requirements.txt
❯ which dbt
/Users/cchow/projects/applied-ml-6/dbt/venv/bin/dbt
❯ dbt --version
/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
Traceback (most recent call last):
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/bin/dbt", line 5, in <module>
    from dbt.cli.main import cli
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/dbt/cli/__init__.py", line 1, in <module>
    from .main import cli as dbt_cli  # noqa
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/dbt/cli/main.py", line 14, in <module>
    from dbt.cli import requires, params as p
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/dbt/cli/requires.py", line 11, in <module>
    from dbt.context.providers import generate_runtime_macro_context
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/dbt/context/providers.py", line 27, in <module>
    from dbt.config import RuntimeConfig, Project
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/dbt/config/__init__.py", line 3, in <module>
    from .project import Project, IsFQNResource, PartialProject  # noqa
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/dbt/config/project.py", line 36, in <module>
    from dbt.graph import SelectionSpec
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/dbt/graph/__init__.py", line 1, in <module>
    from .selector_spec import (  # noqa: F401
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/dbt/graph/selector_spec.py", line 10, in <module>
    from .selector_methods import MethodName
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/dbt/graph/selector_methods.py", line 11, in <module>
    from dbt.contracts.graph.manifest import Manifest
  File "/Users/cchow/projects/applied-ml-6/dbt/venv/lib/python3.9/site-packages/dbt/contracts/graph/manifest.py", line 806, in <module>
    class Manifest(MacroMethods, DataClassMessagePackMixin, dbtClassMixin):
TypeError: Cannot create a consistent method resolution
order (MRO) for bases object, DataClassMessagePackMixin, dbtClassMixin

I am getting the same for python 3.11

Note: @Rajesh originally posted this reply in Slack. It might not have transferred perfectly.

I tried installing rc2 version and this error is resolved, the issue I got with was using rc1

Note: @Rajesh originally posted this reply in Slack. It might not have transferred perfectly.