StataCall.jl
StataCall.jl copied to clipboard
IOError: could not spawn `cat 'C:\Users\admin\__63789194869979.log'`: no such file or directory (ENOENT)
The computer I am using is Win10 operating system.
julia> ENV["STATA_BIN"] = "D:/StataMP16/StataMP-64.exe" "D:/StataMP16/StataMP-64.exe"
julia> using StataCall
julia> StataCall.stataCall(["sysuse auto.dta"; "describe"; "summarize"; "regress price mpg rep78 length turn"])
ERROR: IOError: could not spawn cat 'C:\Users\admin\__63789194869979.log': no such file or directory (ENOENT)
Stacktrace:
[1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Any})
@ Base .\process.jl:99
[2] #637
@ .\process.jl:112 [inlined]
[3] setup_stdios(f::Base.var"#637#638"{Cmd}, stdios::Vector{Any})
@ Base .\process.jl:196
[4] _spawn
@ .\process.jl:111 [inlined]
[5] run(::Cmd; wait::Bool)
@ Base .\process.jl:439
[6] run
@ .\process.jl:438 [inlined]
[7] stataCall_internal(commands::Vector{String}, dfIn::DataFrames.DataFrame; retrieveData::Bool, doNotEscapeCharacters::Bool, keepLog::Bool, quiet::Bool)
@ StataCall D:\Julia\Julia-1.6.0\library\packages\StataCall\VVxuj\src\call.jl:95
[8] stataCall(commands::Vector{String}, retrieveData::Bool, doNotEscapeCharacters::Bool, quiet::Bool) (repeats 2 times) @ StataCall D:\Julia\Julia-1.6.0\library\packages\StataCall\VVxuj\src\call.jl:2
[9] top-level scope
@ REPL[7]:1
This specific error should be fixed with #4 . Can you try with the version from master?
Win10, Julia1.6.1, StataMP16
julia> ENV["STATA_BIN"] = "D:/StataMP16/StataMP-64.exe" "D:/StataMP16/StataMP-64.exe"
julia> using StataCall
julia> stataCall(["sysuse auto.dta"; "describe"])
ERROR: IOError: could not spawn cat 'C:\Users\admin\__63789347347524.log': no such file or directory (ENOENT)
Stacktrace:
[1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Any})
@ Base .\process.jl:99
[2] #637
@ .\process.jl:112 [inlined]
[3] setup_stdios(f::Base.var"#637#638"{Cmd}, stdios::Vector{Any})
@ Base .\process.jl:196
[4] _spawn
@ .\process.jl:111 [inlined]
[5] run(::Cmd; wait::Bool)
@ Base .\process.jl:439
[6] run
@ .\process.jl:438 [inlined]
[7] stataCall_internal(commands::Vector{String}, dfIn::DataFrames.DataFrame; retrieveData::Bool, doNotEscapeCharacters::Bool, keepLog::Bool, quiet::Bool)
@ StataCall D:\Julia\Julia-1.6.1\library\packages\StataCall\VVxuj\src\call.jl:95
[8] stataCall(commands::Vector{String}, retrieveData::Bool, doNotEscapeCharacters::Bool, quiet::Bool) (repeats 2 times)
@ StataCall D:\Julia\Julia-1.6.1\library\packages\StataCall\VVxuj\src\call.jl:2
[9] top-level scope
@ REPL[19]:1
That is available in 2019.