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.

Blockquote

julia> using Plots
ERROR: InitError: could not load library “C:\Users\a225.julia\artifacts\8e5c0ff
96e49241eec5822be35ce7109c2bcf934\bin\libogg-0.dll”
The specified module could not be found.
Stacktrace:
[1] dlopen(::String, ::UInt32; throw_error::Bool) at D:\buildbot\worker\package
win64\build\usr\share\julia\stdlib\v1.4\Libdl\src\Libdl.jl:109
[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

64-w64-mingw32.jl:35
[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.
jl:712
[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:

https://stackoverflow.com/questions/61219814/julia-unable-to-add-plots-package-in-v1-4

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. https://www.howtogeek.com/509087/how-to-upgrade-from-windows-7-to-windows-10-for-free/

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
Pkg.add(“Plots”)

1 Like