Skip to content

Instantly share code, notes, and snippets.

@jesuino
Created November 28, 2025 14:59
Show Gist options
  • Select an option

  • Save jesuino/41835f2bc5099fdc9a6a75b4c23588dd to your computer and use it in GitHub Desktop.

Select an option

Save jesuino/41835f2bc5099fdc9a6a75b4c23588dd to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.10/site-packages/kfp/dsl/executor_main.py", line 109, in <module>
executor_main()
File "/usr/local/lib/python3.10/site-packages/kfp/dsl/executor_main.py", line 101, in executor_main
output_file = executor.execute()
File "/usr/local/lib/python3.10/site-packages/kfp/dsl/executor.py", line 415, in execute
result = self.func(**func_kwargs)
File "/tmp/tmp.VY4IKx39Eh/ephemeral_component.py", line 51, in load_transform_data_step
from kale.common.jputils import run_code as _kale_run_code
File "/usr/local/lib/python3.10/site-packages/kale/__init__.py", line 41, in <module>
from .step import Step, StepConfig
File "/usr/local/lib/python3.10/site-packages/kale/step.py", line 9, in <module>
from kale.common import astutils, runutils
File "/usr/local/lib/python3.10/site-packages/kale/common/runutils.py", line 10, in <module>
from kale.common import utils, kfputils
File "/usr/local/lib/python3.10/site-packages/kale/common/kfputils.py", line 17, in <module>
from kfp.compiler import Compiler
File "/usr/local/lib/python3.10/site-packages/kfp/compiler/__init__.py", line 21, in <module>
from kfp.compiler.compiler import Compiler
File "/usr/local/lib/python3.10/site-packages/kfp/compiler/compiler.py", line 22, in <module>
from kfp.compiler import pipeline_spec_builder as builder
File "/usr/local/lib/python3.10/site-packages/kfp/compiler/pipeline_spec_builder.py", line 27, in <module>
from kfp.compiler import compiler_utils
File "/usr/local/lib/python3.10/site-packages/kfp/compiler/compiler_utils.py", line 29, in <module>
from kfp.dsl import pipeline_context
File "/usr/local/lib/python3.10/site-packages/kfp/dsl/pipeline_context.py", line 20, in <module>
from kfp.dsl import component_factory
File "/usr/local/lib/python3.10/site-packages/kfp/dsl/component_factory.py", line 33, in <module>
from kfp.dsl import graph_component
File "/usr/local/lib/python3.10/site-packages/kfp/dsl/graph_component.py", line 32, in <module>
class GraphComponent(base_component.BaseComponent):
File "/usr/local/lib/python3.10/site-packages/kfp/dsl/graph_component.py", line 141, in GraphComponent
self, pipeline: pipeline_context.Pipeline,
AttributeError: partially initialized module 'kfp.dsl.pipeline_context' has no attribute 'Pipeline' (most likely due to a circular import)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment