Hello all. I’m using partitioned, graph-backed SDA...
# ask-community
Hello all. I’m using partitioned, graph-backed SDAs (dagster 15.2). When trying to connect the ops within the graph, I’m getting an error
IsADirectoryError: [Errno 21] Is a directory
. This is raised by the input manager, presumably because of the logic in _get_path
Copy code
def _get_path(self, context: Union[InputContext, OutputContext]) -> str:
        """Automatically construct filepath."""
        if context.has_asset_key:
            path = context.get_asset_identifier()
            path = context.get_identifier()

        return os.path.join(self.base_dir, *path)
Input has asset key and partition_key, but no asset partitions. I’m using daily partitions, set in
AssetsDefinition.from_graph(.., partitions_def=daily_partitions)
Is there a workaround for this? TIA
thanks for reporting this, very possibly a bug. do you have code you'd be open to sharing that would allow us to reproduce it?
sure, let me see if I can put sth together quickly (I owe you 2 now 🙂 )
hi @Dimitris Stafylarakis! I was able to reproduce this issue, and a fix should be able to make it in for tomorrow's release 🙂. PR: https://github.com/dagster-io/dagster/pull/8682
awesome! thank you