You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a regression in a recent version of dbt-core?
I believe this is a regression in dbt-core functionality
I have searched the existing issues, and I could not find an existing issue for this regression
Current Behavior
When we run command dbt deps using Docker image ghcr.io/dbt-labs/dbt-postgres:1.2.latest (which is 1.2.3, sha256:71d6e7962bad1cad0aa0696a62c2095de089aa197f2bdcb7bd1b61883643a620), we have a Python error
Expected/Previous Behavior
We expect dependencies to be installed when running dbt deps
Steps To Reproduce
In docker image ghcr.io/dbt-labs/dbt-postgres:1.2.latest
$ dbt deps
Traceback (most recent call last):
File "/usr/local/bin/dbt", line 5, in<module>
from dbt.main import main
File "/usr/local/lib/python3.11/site-packages/dbt/main.py", line 2, in<module>
from dbt.logger import log_cache_events, log_manager
File "/usr/local/lib/python3.11/site-packages/dbt/logger.py", line 16, in<module>
from dbt.dataclass_schema import dbtClassMixin
File "/usr/local/lib/python3.11/site-packages/dbt/dataclass_schema.py", line 15, in<module>
from mashumaro import DataClassDictMixin
File "/usr/local/lib/python3.11/site-packages/mashumaro/__init__.py", line 4, in<module>
from mashumaro.serializer.json import DataClassJSONMixin
File "/usr/local/lib/python3.11/site-packages/mashumaro/serializer/json.py", line 28, in<module>
class DataClassJSONMixin(DataClassDictMixin):
File "/usr/local/lib/python3.11/site-packages/mashumaro/serializer/base/dict.py", line 16, in __init_subclass__
builder.add_from_dict()
File "/usr/local/lib/python3.11/site-packages/mashumaro/serializer/base/metaprogramming.py", line 270, in add_from_dict
pre_deserialize = self.get_declared_hook(__PRE_DESERIALIZE__)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/mashumaro/serializer/base/metaprogramming.py", line 255, in get_declared_hook
if not is_dataclass_dict_mixin(cls):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/mashumaro/meta/helpers.py", line 247, in is_dataclass_dict_mixin
return type_name(t) == DataClassDictMixinPath
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/mashumaro/meta/helpers.py", line 93, in type_name
elif is_generic(t) and not is_type_origin:
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/mashumaro/meta/helpers.py", line 161, in is_generic
raise NotImplementedError
NotImplementedError
Thanks @joelchartier! I think this is the same as #6275. We started building Docker images using Python 3.11 before it's officially supported by dbt-core.
We just reverted the upgrade for our Docker process (#6281), and we should be re-releasing those faulty images.
cc @leahwicz - good callout that this affected 1.2.latest as well - let's close this issue once the new image is pushed?
github-actionsbot
changed the title
[Regression] Python error while running dbt deps command when using docker image ghcr.io/dbt-labs/dbt-postgres:1.2.latest
[CT-1528] [Regression] Python error while running dbt deps command when using docker image ghcr.io/dbt-labs/dbt-postgres:1.2.latest
Nov 18, 2022
Is this a regression in a recent version of dbt-core?
Current Behavior
When we run command dbt deps using Docker image ghcr.io/dbt-labs/dbt-postgres:1.2.latest (which is 1.2.3, sha256:71d6e7962bad1cad0aa0696a62c2095de089aa197f2bdcb7bd1b61883643a620), we have a Python error
Expected/Previous Behavior
We expect dependencies to be installed when running dbt deps
Steps To Reproduce
In docker image ghcr.io/dbt-labs/dbt-postgres:1.2.latest
With this config
packages.yaml
Run
dbt deps
See error NotImplementedError from Python3.11
Relevant log output
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
No response
The text was updated successfully, but these errors were encountered: