Skip to content

Conversation

@pedro93
Copy link
Collaborator

@pedro93 pedro93 commented Jan 24, 2025

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added ingestion PR or Issue related to the ingestion of metadata docs Issues and Improvements to docs labels Jan 24, 2025
@pedro93 pedro93 force-pushed the ps-session-manager branch from 1a61ed4 to a762140 Compare January 24, 2025 14:28
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Jan 24, 2025
@codecov
Copy link

codecov bot commented Jan 24, 2025

❌ 25 Tests Failed:

Tests completed Failed Passed Skipped
439 25 414 0
View the top 3 failed test(s) by shortest run time
::tests.integration.test_great_expectations
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_great_expectations.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.11.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.11.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.11.13.../x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
venv/lib/python3.11.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/integration/test_great_expectations.py:10: in <module>
    from datahub.emitter.mcp import MetadataChangeProposalWrapper
../...../datahub/emitter/mcp.py:8: in <module>
    from datahub.errors import DataHubDeprecationWarning
../...../src/datahub/errors.py:1: in <module>
    from datahub.configuration.common import MetaError
../...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
../...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.11.../site-packages/pydantic/fields.py)
::tests.integration.test_plugin
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_plugin.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/integration/test_plugin.py:20: in <module>
    from datahub.ingestion.sink.file import write_metadata_file
../...../ingestion/sink/file.py:6: in <module>
    from datahub.configuration.common import ConfigModel
../...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
../...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.action.test_action_registry
Stack Traces | 0s run time
ImportError while importing test module '.../unit/action/test_action_registry.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../unit/action/test_action_registry.py:16: in <module>
    from datahub_actions.action.action_registry import action_registry
.../datahub_actions/action/action_registry.py:15: in <module>
    from datahub.ingestion.api.registry import PluginRegistry
...../ingestion/api/registry.py:21: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.cli.test_actions
Stack Traces | 0s run time
ImportError while importing test module '.../unit/cli/test_actions.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../unit/cli/test_actions.py:11: in <module>
    from datahub_actions.cli.actions import actions, pipeline_config_to_pipeline
.../datahub_actions/cli/actions.py:27: in <module>
    from datahub.configuration.config_loader import load_config_file
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.event.test_event_envelope
Stack Traces | 0s run time
ImportError while importing test module '.../unit/event/test_event_envelope.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../unit/event/test_event_envelope.py:26: in <module>
    from datahub_actions.event.event_envelope import EventEnvelope
.../datahub_actions/event/event_envelope.py:21: in <module>
    from datahub_actions.event.event_registry import event_registry
.../datahub_actions/event/event_registry.py:17: in <module>
    from datahub.ingestion.api.registry import PluginRegistry
...../ingestion/api/registry.py:21: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.event.test_event_registry
Stack Traces | 0s run time
ImportError while importing test module '.../unit/event/test_event_registry.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../unit/event/test_event_registry.py:26: in <module>
    from datahub_actions.event.event_registry import (
.../datahub_actions/event/event_registry.py:17: in <module>
    from datahub.ingestion.api.registry import PluginRegistry
...../ingestion/api/registry.py:21: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.pipeline.test_pipeline
Stack Traces | 0s run time
ImportError while importing test module '.../unit/pipeline/test_pipeline.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../unit/pipeline/test_pipeline.py:21: in <module>
    from datahub_actions.pipeline.pipeline import Pipeline, PipelineException
.../datahub_actions/pipeline/pipeline.py:19: in <module>
    from datahub_actions.action.action import Action
.../datahub_actions/action/action.py:18: in <module>
    from datahub_actions.event.event_envelope import EventEnvelope
.../datahub_actions/event/event_envelope.py:21: in <module>
    from datahub_actions.event.event_registry import event_registry
.../datahub_actions/event/event_registry.py:17: in <module>
    from datahub.ingestion.api.registry import PluginRegistry
...../ingestion/api/registry.py:21: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.pipeline.test_pipeline_manager
Stack Traces | 0s run time
ImportError while importing test module '.../unit/pipeline/test_pipeline_manager.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../unit/pipeline/test_pipeline_manager.py:17: in <module>
    from datahub_actions.pipeline.pipeline import Pipeline
.../datahub_actions/pipeline/pipeline.py:19: in <module>
    from datahub_actions.action.action import Action
.../datahub_actions/action/action.py:18: in <module>
    from datahub_actions.event.event_envelope import EventEnvelope
.../datahub_actions/event/event_envelope.py:21: in <module>
    from datahub_actions.event.event_registry import event_registry
.../datahub_actions/event/event_registry.py:17: in <module>
    from datahub.ingestion.api.registry import PluginRegistry
...../ingestion/api/registry.py:21: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.plugin.action.hello_world.test_hello_world
Stack Traces | 0s run time
ImportError while importing test module '.../action/hello_world/test_hello_world.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../action/hello_world/test_hello_world.py:18: in <module>
    from datahub_actions.plugin.action.hello_world.hello_world import HelloWorldAction
.../action/hello_world/hello_world.py:20: in <module>
    from datahub_actions.action.action import Action
.../datahub_actions/action/action.py:18: in <module>
    from datahub_actions.event.event_envelope import EventEnvelope
.../datahub_actions/event/event_envelope.py:21: in <module>
    from datahub_actions.event.event_registry import event_registry
.../datahub_actions/event/event_registry.py:17: in <module>
    from datahub.ingestion.api.registry import PluginRegistry
...../ingestion/api/registry.py:21: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.plugin.action.metadata_change_sync.test_metadata_change_sync
Stack Traces | 0s run time
ImportError while importing test module '.../action/metadata_change_sync/test_metadata_change_sync.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../action/metadata_change_sync/test_metadata_change_sync.py:4: in <module>
    from datahub_actions.plugin.action.metadata_change_sync.metadata_change_sync import (
.../action/metadata_change_sync/metadata_change_sync.py:8: in <module>
    from datahub.emitter.rest_emitter import DatahubRestEmitter
...../datahub/emitter/rest_emitter.py:33: in <module>
    from datahub.cli import config_utils
...../datahub/cli/config_utils.py:14: in <module>
    from datahub.configuration.env_vars import (
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.plugin.source.acryl.test_datahub_cloud_event_source
Stack Traces | 0s run time
ImportError while importing test module '.../source/acryl/test_datahub_cloud_event_source.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../source/acryl/test_datahub_cloud_event_source.py:9: in <module>
    from datahub_actions.event.event_envelope import EventEnvelope
.../datahub_actions/event/event_envelope.py:21: in <module>
    from datahub_actions.event.event_registry import event_registry
.../datahub_actions/event/event_registry.py:17: in <module>
    from datahub.ingestion.api.registry import PluginRegistry
...../ingestion/api/registry.py:21: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.plugin.source.acryl.test_datahub_cloud_events_consumer
Stack Traces | 0s run time
ImportError while importing test module '.../source/acryl/test_datahub_cloud_events_consumer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../source/acryl/test_datahub_cloud_events_consumer.py:10: in <module>
    from datahub.ingestion.graph.client import DataHubGraph
...../ingestion/graph/client.py:32: in <module>
    from datahub.cli import config_utils
...../datahub/cli/config_utils.py:14: in <module>
    from datahub.configuration.env_vars import (
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.plugin.source.acryl.test_datahub_cloud_events_consumer_offsets_store
Stack Traces | 0s run time
ImportError while importing test module '.../source/acryl/test_datahub_cloud_events_consumer_offsets_store.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../source/acryl/test_datahub_cloud_events_consumer_offsets_store.py:6: in <module>
    from datahub.ingestion.graph.client import DataHubGraph
...../ingestion/graph/client.py:32: in <module>
    from datahub.cli import config_utils
...../datahub/cli/config_utils.py:14: in <module>
    from datahub.configuration.env_vars import (
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.plugin.source.kafka.test_kafka_source
Stack Traces | 0s run time
ImportError while importing test module '.../source/kafka/test_kafka_source.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../source/kafka/test_kafka_source.py:15: in <module>
    from datahub_actions.plugin.source.kafka.kafka_event_source import KafkaEventSource
.../source/kafka/kafka_event_source.py:26: in <module>
    from datahub.configuration import ConfigModel
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.plugin.transform.filter.test_filter_transformer
Stack Traces | 0s run time
ImportError while importing test module '.../transform/filter/test_filter_transformer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../transform/filter/test_filter_transformer.py:20: in <module>
    from datahub_actions.event.event_envelope import EventEnvelope
.../datahub_actions/event/event_envelope.py:21: in <module>
    from datahub_actions.event.event_registry import event_registry
.../datahub_actions/event/event_registry.py:17: in <module>
    from datahub.ingestion.api.registry import PluginRegistry
...../ingestion/api/registry.py:21: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.source.test_source_registry
Stack Traces | 0s run time
ImportError while importing test module '.../unit/source/test_source_registry.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../unit/source/test_source_registry.py:17: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.test_airflow
Stack Traces | 0s run time
ImportError while importing test module '.../tests/unit/test_airflow.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/unit/test_airflow.py:10: in <module>
    import datahub.emitter.mce_builder as builder
../...../datahub/emitter/mce_builder.py:28: in <module>
    from datahub.configuration.env_vars import get_dataset_urn_to_lower
../...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
../...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.test_block_standards
Stack Traces | 0s run time
ImportError while importing test module '.../tests/unit/test_block_standards.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.9.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.9.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.9.23.../x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
venv/lib/python3.9.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/unit/test_block_standards.py:7: in <module>
    from prefect_datahub.datahub_emitter import DatahubEmitter
src/prefect_datahub/datahub_emitter.py:17: in <module>
    import datahub.emitter.mce_builder as builder
../...../datahub/emitter/mce_builder.py:28: in <module>
    from datahub.configuration.env_vars import get_dataset_urn_to_lower
../...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
../...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.9.../site-packages/pydantic/fields.py)
::tests.unit.test_dagster
Stack Traces | 0s run time
ImportError while importing test module '.../tests/unit/test_dagster.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.11.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.11.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.11.13.../x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
venv/lib/python3.11.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/unit/test_dagster.py:27: in <module>
    from datahub.emitter.mcp import MetadataChangeProposalWrapper
../...../datahub/emitter/mcp.py:8: in <module>
    from datahub.errors import DataHubDeprecationWarning
../...../src/datahub/errors.py:1: in <module>
    from datahub.configuration.common import MetaError
../...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
../...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.11.../site-packages/pydantic/fields.py)
::tests.unit.test_datahub_emitter
Stack Traces | 0s run time
ImportError while importing test module '.../tests/unit/test_datahub_emitter.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.9.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.9.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.9.23.../x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
venv/lib/python3.9.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/unit/test_datahub_emitter.py:15: in <module>
    from datahub.api.entities.datajob import DataJob
../...../entities/datajob/__init__.py:1: in <module>
    from datahub.api.entities.datajob.dataflow import DataFlow
../...../entities/datajob/dataflow.py:5: in <module>
    import datahub.emitter.mce_builder as builder
../...../datahub/emitter/mce_builder.py:28: in <module>
    from datahub.configuration.env_vars import get_dataset_urn_to_lower
../...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
../...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.9.../site-packages/pydantic/fields.py)
::tests.unit.test_great_expectations_action
Stack Traces | 0s run time
ImportError while importing test module '.../tests/unit/test_great_expectations_action.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.11.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.11.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.11.13.../x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
venv/lib/python3.11.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/unit/test_great_expectations_action.py:33: in <module>
    from datahub.emitter.mcp import MetadataChangeProposalWrapper
../...../datahub/emitter/mcp.py:8: in <module>
    from datahub.errors import DataHubDeprecationWarning
../...../src/datahub/errors.py:1: in <module>
    from datahub.configuration.common import MetaError
../...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
../...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.11.../site-packages/pydantic/fields.py)
::tests.unit.test_helpers
Stack Traces | 0s run time
ImportError while importing test module '.../tests/unit/test_helpers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/unit/test_helpers.py:26: in <module>
    from datahub_actions.action.action import Action
.../datahub_actions/action/action.py:18: in <module>
    from datahub_actions.event.event_envelope import EventEnvelope
.../datahub_actions/event/event_envelope.py:21: in <module>
    from datahub_actions.event.event_registry import event_registry
.../datahub_actions/event/event_registry.py:17: in <module>
    from datahub.ingestion.api.registry import PluginRegistry
...../ingestion/api/registry.py:21: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.transform.test_transformer_registry
Stack Traces | 0s run time
ImportError while importing test module '.../unit/transform/test_transformer_registry.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../unit/transform/test_transformer_registry.py:17: in <module>
    from datahub.configuration.common import ConfigurationError
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.utils.test_name_resolver
Stack Traces | 0s run time
ImportError while importing test module '.../unit/utils/test_name_resolver.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../unit/utils/test_name_resolver.py:19: in <module>
    from datahub_actions.utils.name_resolver import DomainNameResolver
.../datahub_actions/utils/name_resolver.py:4: in <module>
    from datahub.ingestion.graph.client import DataHubGraph
...../ingestion/graph/client.py:32: in <module>
    from datahub.cli import config_utils
...../datahub/cli/config_utils.py:14: in <module>
    from datahub.configuration.env_vars import (
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)
::tests.unit.utils.test_social_util
Stack Traces | 0s run time
ImportError while importing test module '.../unit/utils/test_social_util.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
venv/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
venv/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
venv/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../unit/utils/test_social_util.py:16: in <module>
    from datahub_actions.utils.social_util import get_message_from_entity_change_event
.../datahub_actions/utils/social_util.py:6: in <module>
    from datahub.ingestion.graph.client import DataHubGraph
...../ingestion/graph/client.py:32: in <module>
    from datahub.cli import config_utils
...../datahub/cli/config_utils.py:14: in <module>
    from datahub.configuration.env_vars import (
...../datahub/configuration/__init__.py:1: in <module>
    from datahub.configuration.common import (
...../datahub/configuration/common.py:23: in <module>
    from pydantic.fields import ModelField
E   ImportError: cannot import name 'ModelField' from 'pydantic.fields' (.../venv/lib/python3.10.../site-packages/pydantic/fields.py)

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Issues and Improvements to docs ingestion PR or Issue related to the ingestion of metadata

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants