https://dagster.io/ logo
#announcements
Title
# announcements
k

King Chung Huang

07/28/2019, 10:41 PM
I've been looking through the examples and source code, but I can't figure out how to specify a file as input. The error I'm getting says, “input input_file must get a value either (a) from a dependency or (b) from the inputs section of its configuration.” How do I do the latter (b)?
Copy code
@solid()
def io_solid(context, input_file: FileHandle):
    <http://context.log.info|context.log.info>(f'Read from {input_file.path_desc}.')


@pipeline
def test_io_solid():
    io_solid()
a

alex

07/29/2019, 8:19 PM
providing input configuration for solids looks something like this
Copy code
solids:
  io_solid:
    input_file:
      value: 'path'
in your env yaml. The
value: 'path'
bit will change depending on the
input_hydration_config
of the type
8 Views