sssuhanov / aod_downloader

0 stars 0 forks source link

TableMetadataSet error in dagster #46

Closed sssuhanov closed 2 months ago

sssuhanov commented 2 months ago

`dagster._core.errors.DagsterUserCodeLoadError: Error occurred during the loading of Dagster definitions in executable_path=/usr/local/bin/python, module_name=module, working_directory=/opt/dagster/app

File "/usr/local/lib/python3.10/site-packages/dagster/_grpc/server.py", line 419, in init self._loaded_repositories: Optional[LoadedRepositories] = LoadedRepositories( File "/usr/local/lib/python3.10/site-packages/dagster/_grpc/server.py", line 242, in init with user_code_error_boundary( File "/usr/local/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.10/site-packages/dagster/_core/errors.py", line 297, in user_code_error_boundary raise new_error from e

The above exception was caused by the following exception: pydantic.errors.PydanticUserError: TableMetadataSet is not fully defined; you should define TableColumn, then call TableMetadataSet.model_rebuild().

For further information visit https://errors.pydantic.dev/2.9/u/class-not-fully-defined

File "/usr/local/lib/python3.10/site-packages/dagster/_core/errors.py", line 287, in user_code_error_boundary yield File "/usr/local/lib/python3.10/site-packages/dagster/_grpc/server.py", line 253, in init loadable_targets = get_loadable_targets( File "/usr/local/lib/python3.10/site-packages/dagster/_grpc/utils.py", line 50, in get_loadable_targets else loadable_targets_from_python_module(module_name, working_directory) File "/usr/local/lib/python3.10/site-packages/dagster/_core/workspace/autodiscovery.py", line 31, in loadable_targets_from_python_module module = load_python_module( File "/usr/local/lib/python3.10/site-packages/dagster/_core/code_pointer.py", line 134, in load_python_module return importlib.import_module(module_name) File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/opt/dagster/app/module/init.py", line 15, in from .assets.dbt import ( File "/opt/dagster/app/module/assets/dbt/init.py", line 13, in @dbt_assets( File "/usr/local/lib/python3.10/site-packages/dagster/_core/decorator_utils.py", line 223, in wrapped_with_context_manager_fn return fn(*args, kwargs) File "/usr/local/lib/python3.10/site-packages/dagster_dbt/asset_decorator.py", line 311, in dbt_assets ) = build_dbt_multi_asset_args( File "/usr/local/lib/python3.10/site-packages/dagster_dbt/asset_utils.py", line 792, in build_dbt_multi_asset_args dagster_dbt_translator.get_metadata(dbt_resource_props), File "/usr/local/lib/python3.10/site-packages/dagster_dbt/dagster_dbt_translator.py", line 217, in get_metadata return default_metadata_from_dbt_resource_props(dbt_resource_props) File "/usr/local/lib/python3.10/site-packages/dagster_dbt/asset_utils.py", line 470, in default_metadata_from_dbt_resource_props *TableMetadataSet( File "/usr/local/lib/python3.10/site-packages/dagster/_core/definitions/metadata/metadata_set.py", line 125, in init super().init(args, **kwargs) File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 211, in init validated_self = self.__pydantic_validator.validate_python(data, self_instance=self) File "/usr/local/lib/python3.10/site-packages/pydantic/_internal/_mock_val_ser.py", line 99, in getattr__ raise PydanticUserError(self._error_message, code=self._code) `

sssuhanov commented 2 months ago

Problem with new version of library pydantic