-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Frictionless package cannot understand windows folder delimiters on MacOS #2
Comments
We can always work around it if need be just by replacing the delimiters as we go, so it's not a blocker on our side. |
Hi Lars, I was trying to use our tools which are supposed to be working cross platform in a Windows environment. And apparently they are not cross platform enough, thanks for reporting this issue :) I did some googling and found this article about path in python: https://medium.com/@ageitgey/python-3-quick-tip-the-easy-way-to-deal-with-file-paths-on-windows-mac-and-linux-11a072b58d5f
So for me I think it's better to produce file paths in unix style. I will change it in our tools Regarding |
The error when I do
|
Weird, I couldn't spot any reported bugs in their python package that match this. If you wanted, we could add a github action that checks for each repo that the frictionless data reads smoothly. |
@larsyencken I figured it out. The "general.json" is included in frictionless package. In my Windows system, python try to read this file with wrong encoding. According to python doc, the default encoding for And I tried to load this datapackage with frictionless, it worked so frictionless does work with forward slashes on Windows. |
Good find! That's definitely a frictionless bug though, they should explicitly pick UTF-8 I think. |
Yep, here it is: frictionlessdata/frictionless-py#962 |
Hey @semio o/
If you iterate over the package with
frictionless
on MacOS, with code like this:You get a result like this:
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.
The text was updated successfully, but these errors were encountered: