tedsteiner / OpenStreetMap.jl

Julia OpenStreetMap Package
Other
52 stars 18 forks source link

'$DISPLAY environment variable' ISSUE when using OpenStreetMap on a remote machine #84

Closed liyan2015 closed 8 years ago

liyan2015 commented 8 years ago

Hi, when I'm using OpenStreetMap on a remote LINUX machine without administrator's access, the terminal shows the error below:

ERROR: TclError("error initializing Tk: no display name and no \$DISPLAY environment variable") in init at /home/lyan/.julia/v0.3/Tk/src/tkwidget.jl:61 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:51 while loading /home/lyan/.julia/v0.3/Tk/src/tkwidget.jl, in expression starting on line 454 while loading /home/lyan/.julia/v0.3/Tk/src/Tk.jl, in expression starting on line 37 while loading /home/lyan/.julia/v0.3/Winston/src/tk.jl, in expression starting on line 1 while loading /home/lyan/.julia/v0.3/Winston/src/Winston.jl, in expression starting on line 2843 while loading /home/lyan/.julia/v0.3/OpenStreetMap/src/OpenStreetMap.jl, in expression starting on line 13

It seems to be caused by Winston's dependency on $DISPLAY. But I don't need to plot on this remote machine. I've tried to ssh -X to the machine and repeat the run, but no help... Could anyone give a hint on how to solve this issue? Thanks~

liyan2015 commented 8 years ago

I found a solution from https://groups.google.com/forum/#!msg/julia-users/igwnMjDbJkM/U23B2M2yTSEJ

Setting:

output_surface = none

in ~/.julia/v0.3/Winston/src/Winston.ini will probably do the trick.