Skip to content

Inconsistency of filehandler which causes TypeError: ArrowHandler.is_legal() missing 1 required positional argument: 'filepath' #142

Description

@dangxuanhong
  • We encountered below error:
[rank1]:     if self.filehandler.is_legal(os.path.join(root, name))
[rank1]:        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank1]: TypeError: ArrowHandler.is_legal() missing 1 required positional argument: 'filepath'
  • The root cause seems to be at this line which is NOT a class instance. So the simple fix is to add bracket at the end like this:
        filehandler = _handler_map[cfg.file_type]()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions