Closed
Description
I have a blob. I try to open it. I get:
julia> open(io->CSV.read(io, DataFrame), IO, blob)
ERROR: SystemError: mktemp: No such file or directory
I redefined mktemp
to show me what it's trying to do:
julia> @eval Base.Filesystem function mktemp(parent::AbstractString=tempdir(); cleanup::Bool=true)
@show parent
b = joinpath(parent, temp_prefix * "XXXXXX")
@show b
p = ccall(:mkstemp, Int32, (Cstring,), b) # modifies b
systemerror(:mktemp, p == -1)
cleanup && temp_cleanup_later(b)
return (b, fdio(p, true))
end
mktemp (generic function with 4 methods)
julia> open(io->CSV.read(io, DataFrame), IO, blob)
parent = "/tmp/jl_Oh98Jz"
b = "/tmp/jl_Oh98Jz/jl_XXXXXX"
ERROR: SystemError: mktemp: No such file or directory
I make that directory:
shell> mkdir /tmp/jl_Oh98Jz
And now it works:
julia> open(io->CSV.read(io, DataFrame), IO, blob)
parent = "/tmp/jl_Oh98Jz"
b = "/tmp/jl_Oh98Jz/jl_XXXXXX"
1105438×6 DataFrame
(This is in VS Code on JuliaHub, using the workaround to get a Data.toml from JuliaHub)
Metadata
Metadata
Assignees
Labels
No labels