queryverse / CSVFiles.jl

FileIO.jl integration for CSV files
Other
51 stars 13 forks source link

`load()` doesn't support URLs #86

Closed nijibabulu closed 3 years ago

nijibabulu commented 4 years ago

The following does not work, although the README.md file claims urls can be used instead:

julia> url = "https://raw.githubusercontent.com/queryverse/CSVFiles.jl/master/test/data.csv"
julia> load(url)
ERROR: ArgumentError: No file exists at given path: https://raw.githubusercontent.com/queryverse/CSVFiles.jl/master/test/data.csv
Stacktrace:
 [1] load(::Formatted; options::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/rpz/.julia/packages/FileIO/wN5rD/src/loadsave.jl:189
 [2] load at /Users/rpz/.julia/packages/FileIO/wN5rD/src/loadsave.jl:184 [inlined]
 [3] #load#14 at /Users/rpz/.julia/packages/FileIO/wN5rD/src/loadsave.jl:133 [inlined]
 [4] load(::String) at /Users/rpz/.julia/packages/FileIO/wN5rD/src/loadsave.jl:133
 [5] top-level scope at REPL[7]:1
Bondan000 commented 3 years ago

I had the same problem. I downgraded FileIO v1.3.0 and now it works fine! CSVFiles hasn't been updated since v1.0.0. The newer versions of FileIO is causing some errors! @davidanthoff: Is it possible to push an update to include the changes made in FileIO?

davidanthoff commented 3 years ago

The latest version of FileIO should fix this.