# File error in OCReract writing to temp folder

**URL:** <https://discourse.julialang.org/t/file-error-in-ocreract-writing-to-temp-folder/51243>\
**Category:** New to Julia\
**Tags:** images\
**Created:** [December 4, 2020, 10:38am UTC](https://discourse.julialang.org/t/file-error-in-ocreract-writing-to-temp-folder/51243 "2020-12-04T10:38:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mister19stick](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mister19stick](https://discourse.julialang.org/u/mister19stick)\
**Post date:** [December 4, 2020, 10:38am UTC](https://discourse.julialang.org/t/file-error-in-ocreract-writing-to-temp-folder/51243/1 "2020-12-04T10:38:54Z")

</div>

I’m very new to Julia.  
Trying to read text from an image.  
Using OCReract, tried the suggested code.

```julia
begin
using Images
using ImageMagick
using OCReract
img_path = "Q:\\Julia\\20.jpg"; #small jpg with just the text "20" (no quotes)
img = Images.load(img_path);  
run_tesseract(img, psm=3, oem=1);
end

```

Gives an error in the PowerShell window:

```julia
Error: Error ocurred while running Tesseract! Base.IOError("could not spawn `tesseract '%temp%\\jl_hiMWotDCCe.png' '%temp%\\jl_zF2TaOBbHP.txt' --oem 1 --psm 3`: no such file or directory (ENOENT)", -4058)
@ OCReract %userprofile%\.julia\packages\OCReract\vBTZj\src\tesseract.jl:122

```

And an error in the browser:

```julia
SystemError: opening file "%temp%\\jl_zF2TaOBbHP.txt": No such file or directory

#systemerror#49(::Nothing, ::typeof(systemerror), ::String, ::Int32)@error.jl:168
#systemerror#48@error.jl:167[inlined]
systemerror@error.jl:167[inlined]
#open#542(::Bool, ::Bool, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::typeof(open), ::String)@iostream.jl:284
#open#543(::Bool, ::typeof(open), ::String, ::String)@iostream.jl:346
open(::String, ::String)@iostream.jl:346
#open#287(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(open), ::OCReract.var"#3#4", ::String, ::Vararg{String,N} where N)@io.jl:323
open@io.jl:323[inlined]
#run_tesseract#2(::Nothing, ::Int64, ::Int64, ::typeof(OCReract.run_tesseract), ::Array{ColorTypes.RGB{FixedPointNumbers.Normed{UInt8,8}},2})@tesseract.jl:202
top-level scope@Local: 8

```

Julia can read and write to disk, and all the folders exist.  
What have I forgotten to do?  
Thanks,  
m.
