after adding ORCA, I present the following problem:
julia>gr()
18:11:47->>Plots.GRBackend()
Julia>plot(x,y,label="line")
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: could not load library "libGR.dll"
The specified module could not be found.
Stacktrace:
[1] setcharheight at C:\Users\user\.julia\packages\GR\yMV3y\src\GR.jl:1273 [inlined]
[2] gr_set_font(::Plots.Font; halign::Symbol, valign::Symbol, color::RGB{FixedPointNumbers.Normed{UInt8,8}}, rotation::Int64) at C:\Users\user\.julia\packages\Plots\cc8wh\src\backends\gr.jl:389
[3] gr_set_xticks_font(::Plots.Subplot{Plots.GRBackend}) at C:\Users\user\.julia\packages\Plots\cc8wh\src\backends\gr.jl:726
[4] _update_min_padding!(::Plots.Subplot{Plots.GRBackend}) at C:\Users\user\.julia\packages\Plots\cc8wh\src\backends\gr.jl:920
[5] iterate at .\generator.jl:47 [inlined]
[6] _collect(::Array{AbstractLayout,2}, ::Base.Generator{Array{AbstractLayout,2},typeof(Plots._update_min_padding!)}, ::Base.EltypeUnknown, ::Base.HasShape{2}) at .\array.jl:699
[7] collect_similar(::Array{AbstractLayout,2}, ::Base.Generator{Array{AbstractLayout,2},typeof(Plots._update_min_padding!)}) at .\array.jl:628
[8] map(::Function, ::Array{AbstractLayout,2}) at .\abstractarray.jl:2162
[9] _update_min_padding!(::Plots.GridLayout) at C:\Users\user\.julia\packages\Plots\cc8wh\src\layouts.jl:310
[10] prepare_output(::Plots.Plot{Plots.GRBackend}) at C:\Users\user\.julia\packages\Plots\cc8wh\src\plot.jl:260
[11] show at C:\Users\user\.julia\packages\Plots\cc8wh\src\output.jl:215 [inlined]
[12] __binrepr at .\multimedia.jl:159 [inlined]
[13] _textrepr at .\multimedia.jl:151 [inlined]
[14] #stringmime#6 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Base64\src\Base64.jl:43 [inlined]
[15] stringmime at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Base64\src\Base64.jl:43 [inlined]
[16] display(::VSCodeServer.InlineDisplay, ::MIME{Symbol("image/svg+xml")}, ::Plots.Plot{Plots.GRBackend}) at c:\Users\user\.vscode\extensions\julialang.language-julia-1.0.7\scripts\packages\VSCodeServer\src\display.jl:16
[17] display(::VSCodeServer.InlineDisplay, ::String, ::Any) at .\multimedia.jl:216
[18] display(::VSCodeServer.InlineDisplay, ::Plots.Plot{Plots.GRBackend}) at c:\Users\user\.vscode\extensions\julialang.language-julia-1.0.7\scripts\packages\VSCodeServer\src\display.jl:133
[19] display(::Any) at .\multimedia.jl:328
[20] #invokelatest#1 at .\essentials.jl:710 [inlined]
[21] invokelatest at .\essentials.jl:709 [inlined]
[22] print_response(::IO, ::Any, ::Bool, ::Bool, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:238
[23] print_response(::REPL.AbstractREPL, ::Any, ::Bool, ::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:223
[24] (::REPL.var"#do_respond#54"{Bool,Bool,VSCodeServer.var"#36#37"{REPL.LineEditREPL,REPL.LineEdit.Prompt},REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:822
[25] #invokelatest#1 at .\essentials.jl:710 [inlined]
[26] invokelatest at .\essentials.jl:709 [inlined]
[27] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\LineEdit.jl:2355
[28] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:1144
[29] (::REPL.var"#38#42"{REPL.LineEditREPL,REPL.REPLBackendRef})() at .\task.jl:356
now I canโt plot anything, I get the same alert!
Julia>Plots.PlotlyJSBackend()
21:05:06->>Plots.PlotlyJSBackend()
Julia>plot(x,y,label="line")
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: could not load library "libGR.dll"
The specified module could not be found.
Stacktrace:
plotlyjs()
ERROR: ArgumentError: Package ORCA not found in current path:
- Run `import Pkg; Pkg.add("ORCA")` to install the ORCA package.
Stacktrace:
[1] require(::Module, ::Symbol) at .\loading.jl:893
[2] top-level scope at C:\Users\user\.julia\packages\Plots\cc8wh\src\backends.jl:472
[3] eval at .\boot.jl:331 [inlined]
[4] _initialize_backend(::Plots.PlotlyJSBackend) at C:\Users\user\.julia\packages\Plots\cc8wh\src\backends.jl:471
[5] backend at C:\Users\user\.julia\packages\Plots\cc8wh\src\backends.jl:176 [inlined]
[6] plotlyjs(; kw::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\user\.julia\packages\Plots\cc8wh\src\backends.jl:33
[7] plotlyjs() at C:\Users\user\.julia\packages\Plots\cc8wh\src\backends.jl:33
[8] top-level scope at REPL[18]:1
Julia>plot(x,y,label="line")
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: could not load library "libGR.dll"
Looking at your former threads I still must say, that something is terrible wrong with your Windows system. For me your odyssey started with this thread:
And all the threads with package problems somehow ended without a solution, isnt it?
Julia>import Pkg;
Julia>Pkg.add("PlotlyJS")
Updating registry at `C:\Users\user\.julia\registries\General`
Resolving package versions...
No Changes to `C:\Users\user\.julia\environments\v1.5\Project.toml`
No Changes to `C:\Users\user\.julia\environments\v1.5\Manifest.toml`
Julia>import Pkg; Pkg.add("ORCA")
Resolving package versions...
Updating `C:\Users\user\.julia\environments\v1.5\Project.toml`
[47be7bcc] + ORCA v0.5.0
Updating `C:\Users\user\.julia\environments\v1.5\Manifest.toml`
[47be7bcc] + ORCA v0.5.0
Julia>using Plots
Julia>plotlyjs()
โ Warning: ORCA.jl has been deprecated and all savefig functionality
โ has been implemented directly in PlotlyBase itself.
โ
โ By implementing in PlotlyBase.jl, the savefig routines are automatically
โ available to PlotlyJS.jl also.
โ @ ORCA C:\Users\user\.julia\packages\ORCA\U5XaN\src\ORCA.jl:8
23:44:58->>Plots.PlotlyJSBackend()
Julia>x=-3:0.1:3
23:44:58->>-3.0:0.1:3.0
Julia>f(x)=x^2
23:44:58->>f (generic function with 1 method)
Julia>y=f.(x)
23:44:58->>61-element Array{Float64,1}:
Julia>plot(x,y,label="line")
Error showing value of type Plots.Plot{Plots.PlotlyJSBackend}:
ERROR: Cannot find Electron. Try `Blink.AtomShell.install()`.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] electron at C:\Users\user\.julia\packages\Blink\u1xcH\src\AtomShell\process.jl:70 [inlined]
[3] init(; debug::Bool) at C:\Users\user\.julia\packages\Blink\u1xcH\src\AtomShell\process.jl:88
[4] shell(; debug::Bool) at C:\Users\user\.julia\packages\Blink\u1xcH\src\AtomShell\process.jl:149
[5] shell at C:\Users\user\.julia\packages\Blink\u1xcH\src\AtomShell\process.jl:144 [inlined]
[6] #Window#14 at C:\Users\user\.julia\packages\Blink\u1xcH\src\AtomShell\window.jl:89 [inlined]
[7] Blink.AtomShell.Window(::Dict{String,Int64}) at C:\Users\user\.julia\packages\Blink\u1xcH\src\AtomShell\window.jl:89
[8] display_blink(::PlotlyJS.SyncPlot) at C:\Users\user\.julia\packages\PlotlyJS\m2Lzd\src\display.jl:158
[9] display(::PlotlyJS.PlotlyJSDisplay, ::PlotlyJS.SyncPlot) at C:\Users\user\.julia\packages\PlotlyJS\m2Lzd\src\display.jl:152
[10] display(::Any) at .\multimedia.jl:328
[11] _display(::Plots.Plot{Plots.PlotlyJSBackend}) at C:\Users\user\.julia\packages\Plots\cc8wh\src\backends\plotlyjs.jl:41
[12] display(::Plots.PlotsDisplay, ::Plots.Plot{Plots.PlotlyJSBackend}) at C:\Users\user\.julia\packages\Plots\cc8wh\src\output.jl:161
[13] display(::Any) at .\multimedia.jl:328
[14] #invokelatest#1 at .\essentials.jl:710 [inlined]
[15] invokelatest at .\essentials.jl:709 [inlined]
[16] print_response(::IO, ::Any, ::Bool, ::Bool, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:238
[17] print_response(::REPL.AbstractREPL, ::Any, ::Bool, ::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:223
[18] (::REPL.var"#do_respond#54"{Bool,Bool,REPL.var"#64#73"{REPL.LineEditREPL,REPL.REPLHistoryProvider},REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:822
[19] #invokelatest#1 at .\essentials.jl:710 [inlined]
[20] invokelatest at .\essentials.jl:709 [inlined]
[21] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\LineEdit.jl:2355
[22] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:1144
[23] (::REPL.var"#38#42"{REPL.LineEditREPL,REPL.REPLBackendRef})() at .\task.jl:356
I think you need some local help (maybe your local system admin of your organisation) to check if your Windows is somehow in bad condition or if your environment (e.g. network restrictions) may be the cause of your trouble.
Iโm on the home PC !!
Recreating the story, I think the problem started when I tried to take a course and was asked to install nteract.
Windows alerted me that this software was harmful to my system.
And I denied the installation !!
But I followed one of the instructions of the course:
โTo follow along with XXXX, you can either download the notebook file below and run it in nteract locally or play around with Repl.it in the browser.โ
I chose: Repl.it in the browser.
I think, and I have no experience, to judge correctly, that this has been the problem.
Please, I need your guidance, to continue studying Julia.
In the following I want to try to create a new empty and clean environment for you to learn plots without the problems in your main environment (environments are explained here 4. Working with Environments ยท Pkg.jl) This environment is named โLearningPlotsโ and folder should be created in ENV["LOCALAPPDATA"] which for me is C:\Users\oheil\AppData\Local\. I have chosen this because it should be defined and writable in any Windows installation.
Do the following line by line in a new REPL and report everything here again:
cd(ENV["LOCALAPPDATA"])
pwd()
]
activate LearningPlots
st
add Plots
add PlotlyJS
add ORCA
st
backspace
using Plots
plotlyjs()
x=-3:0.1:3
f(x)=x^2
y=f.(x)
plot(x,y,label="line")
scatter!(x,y,label="point")
title!("PlotlyJS()")
If everythings go well you have to activate this environment before you start again learning plots with:
If you decide not to use environments because it is another step to take which you donโt want for now, than remove the .julia folder as you suggested and do the following in a new REPL again line by line:
]
instantiate
st
add Plots
add PlotlyJS
add ORCA
st
backspace
using Plots
plotlyjs()
x=-3:0.1:3
f(x)=x^2
y=f.(x)
plot(x,y,label="line")
scatter!(x,y,label="point")
title!("PlotlyJS()")
The first part
]
instantiate
st
add Plots
add PlotlyJS
add ORCA
st
backspace
is needed only the first time after you have removed folder .julia.