Skip to content

Frictionless package cannot understand windows folder delimiters on MacOS #2

@larsyencken

Description

@larsyencken

Hey @semio o/

If you iterate over the package with frictionless on MacOS, with code like this:

import frictionless

p = frictionless.Package('datapackage.json')
for resource in p.resources:
    df = resource.to_pandas()

You get a result like this:

FrictionlessException: [scheme-error] The data source could not be successfully loaded: [Errno 2] No such file or directory: 'income_mountain\\ddf--datapoints--income_mountain_50bracket_shape_for_log--by--country--year.csv'

It looks like the windows path delimiter fails for unix systems. I don't have a windows machine, but if you have a few moments could you check whether using forward slashes (income_mountain/...) gets translated by Frictionless for windows?

If not, then it's probably a problem in the frictionless spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions