# ERROR using StataCall.jl

**URL:** https://discourse.julialang.org/t/error-using-statacall-jl/43968
**Category:** General Usage
**Tags:** question, package
**Created:** [July 30, 2020, 11:48am UTC](https://discourse.julialang.org/t/error-using-statacall-jl/43968 "2020-07-30T11:48:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Lucius\_Cornelius\_Min](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lucius_cornelius_min/32/16710_2.png) [@Lucius\_Cornelius\_Min](https://discourse.julialang.org/u/Lucius_Cornelius_Min)
#### Post date: [July 30, 2020, 11:48am UTC](https://discourse.julialang.org/t/error-using-statacall-jl/43968/1 "2020-07-30T11:48:57Z")

</div>

Hi I am getting errors when using StataCall:

julia\> using StataCall  
julia\> df = DataFrame(myint = Int64.(floor.(100 .\* rand(Float64, 10))), myfloat = rand(Float64, 10))  
julia\> instructions = [“gen newvar1 = myint + myfloat”;  
“gen newvar2 = floor(\_n/2)”;  
“bysort newvar2: egen newvar3 = mean(newvar1)”  
]  
julia\> dfOut = StataCall.stataCall(instructions, df)

ERROR: IOError: could not spawn `cat 'D:\Corona Graminea\Python\__63763355990458.log'`: no such file or directory (ENOENT)  
Stacktrace:  
[1] \_spawn\_primitive(::String, ::Cmd, ::Array{Any,1}) at .\process.jl:99  
[2] #550 at .\process.jl:112 [inlined]  
[3] setup\_stdios(::Base.var"#550#551"{Cmd}, ::Array{Any,1}) at .\process.jl:196  
[4] \_spawn at .\process.jl:111 [inlined]  
[5] run(::Cmd; wait::Bool) at .\process.jl:439  
[6] run at .\process.jl:438 [inlined]  
[7] stataCall\_internal(::Array{String,1}, ::DataFrame; retrieveData::Bool, doNotEscapeCharacters::Bool, keepLog::Bool, quiet::Bool) at C:\Users\Aathma.julia\packages\StataCall\VVxuj\src\call.jl:95  
[8] stataCall at C:\Users\Aathma.julia\packages\StataCall\VVxuj\src\call.jl:5 [inlined] (repeats 2 times)  
[9] top-level scope at REPL[6]:1
