Cannot use Plots

I am unable to create plots with Julia v1.4 on Windows 7 x64.
The package cannot be initiated.
see the screenshot and error message below.


julia> using Plots
ERROR: InitError: could not load library “C:\Users\a225.julia\artifacts\8e5c0ff
The specified module could not be found.
[1] dlopen(::String, ::UInt32; throw_error::Bool) at D:\buildbot\worker\package
[2] dlopen at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.
4\Libdl\src\Libdl.jl:109 [inlined] (repeats 2 times)
[3] init() at C:\Users\a225.julia\packages\Ogg_jll\fUOuz\src\wrappers\x86

[4] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:697
[5] _require_search_from_serialized(::Base.PkgId, ::String) at .\loading.jl:781

[6] _tryrequire_from_serialized(::Base.PkgId, ::UInt64, ::String) at .\loading.
[7] _require_search_from_serialized(::Base.PkgId, ::String) at .\loading.jl:770

[8] _require(::Base.PkgId) at .\loading.jl:1006
[9] require(::Base.PkgId) at .\loading.jl:927
[10] require(::Module, ::Symbol) at .\loading.jl:922
during initialization of module Ogg_jll

Does that libogg-0.dll file exist? If it exists then it’s probably a permission issue. Also you might try removing Plots and adding it again, look at the log when you add it make sure there are no errors reported, like a failure to download or create that dll.

No. There is no such a file.

What is your Windows version? I haven’t tested with Win 7 for Julia 1.4, but I know it was failing for one of my students who has a Win 7 laptop.

I am running Julia v1.4 on windows 7 x64.

Don’t open several topics for one problem:

1 Like

I deleted that one posted on stackoverflow

are you sure that error os from Plots? Do you not get it when loading other packages?

As a beginner of Julia, I found it is quite frustrating for this type of bugs.

At the same time you weren’t able to add Plots and to use Plots (this thread). the first issue is solved and I think the two issues are related and, in general, not a Plots.jl issue.

Maybe its best to remove Julia and start over with a new clean install: Deinstall Julia and remove folder C:\Users\a225\.julia

As a beginner of Julia, I found it is quite frustrating for this type of bugs.

Please try to communicate more open, it helps to find solutions and to help you. I understand that you are frustrated if things doesn’t work smoothly but, as a beginner, you are possibly not the one to decide what a bug is and for me it seems, that the problems you have, derive from your Windows 7 system, which is not in the best state (despite that it is a massive security thread for your own personal data).

I say that because you are talking about bugs in Plots.jl AFTER you got the solution in the other thread (which, by the way, maybe still uncomplete).

In general you should upgrade to Windows 10 (if possible). It is still free, e.g.

This looks like an install issue with the FFMPEG package on Windows. That has been causing problems but I thought they had been resolved.

Thank you. I resolved the problem by doing these things:

  1. Uninstall Julia
  2. Delete the entire folder

C:\Users\ [user name] .julia

  1. Have a clean install of Julia v1.4

  2. Add the Plots package.

Using Pkg

1 Like