https://dagster.io/ logo
Title
k

Kyle Gobel

10/27/2022, 1:11 AM
new to both airbyte and dagster, but having trouble with even the getting started simple example:
assets = with_resources(
  load_assets_from_airbyte_project(project_dir=/my/ab/proj),
  {
    "airbyte": airbyte_resource.configured({ "host": "localhost", "port": "8000", })
  },
)
looks like the load assets returns a
CacheableAssetsDefinition
which isn't iterable
r

rex

10/27/2022, 1:15 AM
This should be fixed in the latest version of our docs. You just need to wrap
load_assets_from_airbyte_project(project_dir=/my/ab/proj)
as as list:
assets = with_resources(
  [load_assets_from_airbyte_project(project_dir=/my/ab/proj)],
  {
    "airbyte": airbyte_resource.configured({ "host": "localhost", "port": "8000", })
  },
)
The PR that fixed that is here: https://github.com/dagster-io/dagster/pull/10132
k

Kyle Gobel

10/27/2022, 1:17 AM
ahh great, thanks!