# Documenter.jl error after using StatsPlots

**URL:** <https://discourse.julialang.org/t/documenter-jl-error-after-using-statsplots/55444>\
**Category:** New to Julia\
**Created:** [February 17, 2021, 8:23am UTC](https://discourse.julialang.org/t/documenter-jl-error-after-using-statsplots/55444 "2021-02-17T08:23:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PharmCat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pharmcat/32/6953_2.png) [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Post date:** [February 17, 2021, 8:23am UTC](https://discourse.julialang.org/t/documenter-jl-error-after-using-statsplots/55444/1 "2021-02-17T08:23:52Z")

</div>

I have the error afet using StatsPlots:

```julia
/home/runner/.julia/packages/GR/G9I5v/src/../deps/gr/bin/gksqt: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
connect: Connection refused
GKS: can't connect to GKS socket application

GKS: Open failed in routine OPEN_WS
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE_WS

```

code:

```julia
@example lmmexample
using Metida, StatsPlots, CSV, DataFrames, MixedModels;

rds = CSV.File(joinpath(dirname(pathof(Metida)), "..", "test", "csv", "1fptime.csv"); types = [String, String, Float64, Float64]) |> DataFrame

p = @df rds plot(:time, :response, group = (:subject, :factor), colour = [:red :blue], legend = false); # hide
png(p, "plot1.png"); nothing # hide

```

What can I do with this?
