question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`frictionless validate` no longer accepts list of resources

See original GitHub issue

According to the specs, resource path should accept a list of files:

To support this use case the path property MAY be an array of strings rather than a single string:

Since frictionless v4.40.0, this causes an error:

TypeError: stat: path should be string, bytes, os.PathLike or integer, not list

I make extensive use of list of paths, so I hope this can be fixed. 😄

Test files

datapackage.json:

{
  "profile": "tabular-data-package",
  "resources": [
    {
      "name": "measurements",
      "path": [
        "https://github.com/frictionlessdata/frictionless-py/files/8941635/file_1.csv",
        "https://github.com/frictionlessdata/frictionless-py/files/8941634/file_2.csv"
      ],
      "profile": "tabular-data-resource",
      "schema": {
        "fields": [
          {
            "name": "location",
            "type": "string"
          },
          {
            "name": "measurement",
            "type": "number"
          }
        ]
      }
    }
  ]
}

file_1.csv file_2.csv

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rollcommented, Jun 21, 2022

@shashigharti Can you please add one? We should have packages like this in data. THe problem was only related to the CLI (report.to_summary)

0reactions
rollcommented, Jun 21, 2022

@peterdesmet The fix is on its way. There are still a few improvements we need to add to the summary though

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validating Data - Frictionless Framework
Tabular data validation is a process of identifying problems that have occured in your data so you can correct them.
Read more >
Frictionless Framework (v5) - GitHub
Data management framework for Python that provides functionality to describe, extract, validate, and transform tabular data (DEVT Framework). It supports a ...
Read more >
Stripe API reference – curl
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries....
Read more >
Frictionless Data Standards - Commonplace
According to a recent paper, more than 30% of the published articles in the field with a supplementary Excel gene list contain gene...
Read more >
tableschema.r: Table Schema 'Frictionless Data'
age can load and validate any table schema descriptor, ... ing the empty list means that no conversion to null will be done,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found