Gmousse / dataframe-js

No Maintenance Intended
https://gmousse.gitbooks.io/dataframe-js/
MIT License
460 stars 38 forks source link

[BUG] Read CSV - Long filename not found on Windows 10 #111

Open TotallyInformation opened 4 years ago

TotallyInformation commented 4 years ago

Describe the bug Trying to read a CSV file from node.js, produces an error:

FileNotFoundError: C:/Users/USER/OneDrive - XXX England/E&I Working/id-system/daily/Staff List for COVID19.csv not found. You maybe use a wrong path or url. Be sure you use absolute path, relative one being not supported.
   at C:\src\nr2\data\node_modules\dataframe-js\lib\io.js:130:13 {
  name: 'FileNotFoundError'
}

Also tried with double back-slashes. File certainly exists in that location and was easily read as a file.

image

To Reproduce Steps to reproduce the behavior:

var DataFrame = require('dataframe-js').DataFrame

DataFrame.fromCSV('C:/Users/USER/OneDrive - XXX England/E&I Working/id-system/daily/Staff List for COVID19.csv')
.then(df => {
    //console.log(df)
    msg.payload = df
    node.send(msg)
})

Expected behavior File should have been read.

Screenshots See above

Desktop (please complete the following information):

Additional context node.js v12.16.2

EllieLockhart commented 3 years ago

Also having this issue on Linux (Ubuntu 20.04, have used absolute URLs, checked and double checked.)