-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid argument @ rb_sysopen - (Errno:EINVAL) when using local files on Windows #435
Comments
Line 322 is a call to Lines 322 to 330 in a083623
So, it seems the error is that the format of the path you're giving to |
Depending on the table reference in 1.csv-metadata.json, it could be that there's some errant code that expands it to a non-relative path, but it would likely use |
That slash at the beginning of the path definitely seems suspect. Unfortunately, I do not code in ruby, so I am not able to debug this efficiently. |
Maybe you could send a link to your 1.csv-metadata.json and a couple of lines from the referenced 1.csv, I might be able to see where the code is making assumptions that don't work on MS. |
I have these files in |
It will be later next week before I can look into this properly, as I’m actually holiday for the next several days, and I need to figure out an MSWIn environment to use. |
That is perfectly fine, thank you. Fortunately, there is a couple of workarounds:
|
There is a fix that addresses this released in RDF.rb 3.2.7, but there is also a change on the develop branch of the rdf-tabular gem. If you can clone the rdf-tabular gem, do a The problem is that expressed using forward slashes, |
@gkellogg Thank you, I can confirm that it works with the code from |
Great, I’ll release an update of rdf-tabular tomorrow. |
When I try running e.g.
rdf serialize --input-format tabular 1.csv
on Windows, I get:The descriptor points to the CSV file like this:
When I try serializing the CSV file directly, I get a similar error
The text was updated successfully, but these errors were encountered: