luxor on windows 10 - "The system cannot find the file FileIO.filename"

Hi All

Im using julia 1.01 on windows 10. When I look at the luxor tutorial, the first example and others, I get error from windows about not being able to find “file FileIO.filename”
I suspect this is a windows issue. The same code in Jupyter works.

So: when I run the code below I get pop up windows saying “… cant find FileIO.filename” followed by text.

julia> using Luxor

julia> @png begin
           text("Hello world")
           circle(Point(0, 0), 200, :stroke)
       end
The system cannot find the file FileIO.filename.
ERROR: failed process: Process(`'C:\WINDOWS\system32\cmd.exe' /c start FileIO.filename`, ProcessExited(1)) [1]
Stacktrace:
 [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at .\error.jl:42
 [2] pipeline_error at .\process.jl:705 [inlined]
 [3] #run#504(::Bool, ::Function, ::Cmd) at .\process.jl:663
 [4] run at .\process.jl:661 [inlined]
 [5] preview() at C:\Users\Bevan\.julia\packages\Luxor\uf78H\src\drawings.jl:290
 [6] top-level scope at REPL[2]:3
 [7] top-level scope at C:\Users\Bevan\.julia\packages\Luxor\uf78H\src\drawings.jl:377

Looks like the interpolation of the filename is incorrect

Ok, so the files are being produced and if I replace “FileIO.filename” with the actual file name the command works. So it looks to me like a bug in Luxor on windows 10.

1 Like

BTW I just installed luxor on windows and it works for me fine.

Maybe you need to update your packages…

Another graphics package is Compose.jl:
http://giovineitalia.github.io/Compose.jl/latest/gallery/forms.html