Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

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

Open
TotallyInformation opened this issue Jun 29, 2020 · 1 comment
Open

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

TotallyInformation opened this issue Jun 29, 2020 · 1 comment
Labels

Comments

@TotallyInformation
Copy link

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):

  • OS: Windows 10
  • Browser: Not applicable
  • Version: Not applicable

Additional context
node.js v12.16.2

@EllieLockhart
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants