-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to precompile under Julia v0.7.0: Date not defined #201
Comments
I think in this case we need to add
To the PlotlyJS/src/PlotlyJS.jl file. But, note that all these things will be fixed soon when we officially update to 0.7. We are waiting for the web display ecosystem (WebIO.jl and friends) to be ready for 0.7 before doing that |
@sglyon , thanks. But adding these two lines to PlotlyJS/src/PlotlyJS.jl did not change anything, i.e., I got exactly the same error about
Perhaps, I should wait for a while as you suggested... |
Same error here, on Linux. |
Progress on many of the issues, but still won't compile with different issues:
|
WebIO and Blink are working. Are there more dependencies that prevent this from being fixed? I think it is mostly simple stuff like deprecations and changed function names. There shouldn't be any deep functional problem. |
That's right, we are ready now. It should only be a few days until I find the time to update things! |
I get (v0.7) pkg> build Plotly
Building HttpParser → `~/.julia/packages/HttpParser/yGK3a/deps/build.log`
Building MbedTLS ───→ `~/.julia/packages/MbedTLS/Qo8TN/deps/build.log`
Building WebIO ─────→ `~/.julia/packages/WebIO/WN6vl/deps/build.log`
Building Blink ─────→ `~/.julia/packages/Blink/KMJt9/deps/build.log`
Building PlotlyJS ──→ `~/.julia/packages/PlotlyJS/i6J4s/deps/build.log`
┌ Error: Error building `PlotlyJS`:
│ % Total % Received % Xferd Average Speed Time Time Time Current
│ Dload Upload Total Spent Left Speed
100 1332k 100 1332k 0 0 1470k 0 --:--:-- --:--:-- --:--:-- 1470k
│ % Total % Received % Xferd Average Speed Time Time Time Current
│ Dload Upload Total Spent Left Speed
100 2726k 100 2726k 0 0 7252k 0 --:--:-- --:--:-- --:--:-- 7232k
│ WARNING: Base.Markdown is deprecated, run `using Markdown` instead
│ likely near /home/user/.julia/packages/PlotlyJS/i6J4s/deps/make_schema_docs.jl:3
│ WARNING: importing deprecated binding Base.Associative into PlotlyJSSchemaDocsGenerator.
│ WARNING: Base.Associative is deprecated, use AbstractDict instead.
│ likely near /home/user/.julia/packages/PlotlyJS/i6J4s/deps/make_schema_docs.jl:8
│ WARNING: importing deprecated binding Base.Nullable into PlotlyJSSchemaDocsGenerator.
│ ERROR: LoadError: LoadError: TypeError: in Type{...} expression, expected UnionAll, got typeof(Base.Nullable)
│ Stacktrace:
│ [1] top-level scope at none:0
│ [2] include at ./boot.jl:317 [inlined]
│ [3] include_relative(::Module, ::String) at ./loading.jl:1038
│ [4] include(::Module, ::String) at ./sysimg.jl:29
│ [5] include(::String) at ./client.jl:398
│ [6] top-level scope at none:0
│ [7] include at ./boot.jl:317 [inlined]
│ [8] include_relative(::Module, ::String) at ./loading.jl:1038
│ [9] include(::Module, ::String) at ./sysimg.jl:29
│ [10] include(::String) at ./client.jl:398
│ [11] top-level scope at none:0
│ in expression starting at /home/user/.julia/packages/PlotlyJS/i6J4s/deps/make_schema_docs.jl:11
│ in expression starting at /home/user/.julia/packages/PlotlyJS/i6J4s/deps/build.jl:10
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Operations.jl:1068 |
@sglyon , I tried the latest master branch of PlotlyJS under Plots.jl. PlotlyJS was built correctly without any errors, but when I tried to plot things under Juno/Atom, the following error occurred. julia> plotlyjs()
[ Info: Recompiling stale cache file /Users/xxx/.julia/compiled/v0.7/PlotlyJS/1r9Ld.ji for PlotlyJS [f0f68f2c-4968-5e81-91da-67840de0976a]
┌ Warning: `using A.B` will only be allowed for modules, not single bindings. Use `using A: B` instead
│ caller = ip:0x0
└ @ Core :-1
┌ Warning: Requires now needs a UUID; please see the readme for changes in 0.7.
└ @ PlotlyJS ~/.julia/dev/PlotlyJS/src/display.jl:125
┌ Warning: Requires now needs a UUID; please see the readme for changes in 0.7.
└ @ PlotlyJS ~/.julia/dev/PlotlyJS/src/display.jl:126
┌ Warning: Requires now needs a UUID; please see the readme for changes in 0.7.
└ @ PlotlyJS ~/.julia/dev/PlotlyJS/src/displays/ijulia.jl:224
┌ Warning: Requires now needs a UUID; please see the readme for changes in 0.7.
└ @ PlotlyJS ~/.julia/dev/PlotlyJS/src/PlotlyJS.jl:71
Plots.PlotlyJSBackend()
julia> plot(randn(100))
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
Error showing value of type Plots.Plot{Plots.PlotlyJSBackend}:
ERROR: Cannot find Electron. Try `Blink.AtomShell.install()`. |
@sglyon , I realized that I haven't installed Blink.jl, so I installed it and ran julia> plot(randn(100))
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
Error showing value of type Plots.Plot{Plots.PlotlyJSBackend}:
ERROR: Javascript error JSLoadError: failed to load http://127.0.0.1:6515/pkg/PlotlyJS/plotly-latest.min.js
Stacktrace:
[1] #js#3(::Bool, ::Function, ::Blink.Page, ::WebIO.JSString) at /Users/xxx/.julia/packages/Blink/KMJt9/src/rpc/rpc.jl:37
[2] (::getfield(Blink, Symbol("#kw##js")))(::NamedTuple{(:callback,),Tuple{Bool}}, ::typeof(Blink.js), ::Blink.Page, ::WebIO.JSString) at ./none:0
[3] #js#14(::Bool, ::Function, ::Blink.AtomShell.Window, ::WebIO.JSString) at /Users/xxx/.julia/packages/Blink/KMJt9/src/AtomShell/window.jl:129
[4] #js at ./none:0 [inlined]
[5] #js#4(::Bool, ::Function, ::Blink.AtomShell.Window, ::Expr) at /Users/xxx/.julia/packages/Blink/KMJt9/src/rpc/rpc.jl:45
[6] js at /Users/xxx/.julia/packages/Blink/KMJt9/src/rpc/rpc.jl:45 [inlined]
[7] loadjs!(::Blink.AtomShell.Window, ::String) at /Users/xxx/.julia/packages/Blink/KMJt9/src/content/api.jl:54
[8] #get_window#32(::Base.Iterators.Pairs{Symbol,Real,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:width, :height, :show),Tuple{Float64,Float64,Bool}}}, ::Function, ::PlotlyJS.ElectronDisplay) at /Users/xxx/.julia/dev/PlotlyJS/src/displays/electron.jl:69
[9] (::getfield(PlotlyJS, Symbol("#kw##get_window")))(::NamedTuple{(:width, :height, :show),Tuple{Float64,Float64,Bool}}, ::typeof(PlotlyJS.get_window), ::PlotlyJS.ElectronDisplay) at ./none:0
[10] #get_window#33(::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:show,),Tuple{Bool}}}, ::Function, ::PlotlyJS.SyncPlot{PlotlyJS.ElectronDisplay}) at /Users/xxx/.julia/dev/PlotlyJS/src/displays/electron.jl:110
[11] #get_window at ./none:0 [inlined]
[12] #display_blink#35(::Bool, ::Bool, ::Function, ::PlotlyJS.SyncPlot{PlotlyJS.ElectronDisplay}) at /Users/xxx/.julia/dev/PlotlyJS/src/displays/electron.jl:117
[13] #display_blink at ./none:0 [inlined]
[14] #display#34 at /Users/xxx/.julia/dev/PlotlyJS/src/displays/electron.jl:113 [inlined]
[15] #display at ./none:0 [inlined]
[16] svg_data(::PlotlyJS.SyncPlot{PlotlyJS.ElectronDisplay}, ::String, ::Bool) at /Users/xxx/.julia/dev/PlotlyJS/src/displays/electron.jl:215
[17] svg_data(::PlotlyJS.SyncPlot{PlotlyJS.ElectronDisplay}) at /Users/xxx/.julia/dev/PlotlyJS/src/displays/electron.jl:214
[18] #savefig#74(::Symbol, ::Function, ::PlotlyJS.SyncPlot{PlotlyJS.ElectronDisplay}, ::String) at /Users/xxx/.julia/dev/PlotlyJS/src/savefig.jl:126
[19] savefig at /Users/xxx/.julia/dev/PlotlyJS/src/savefig.jl:106 [inlined]
[20] plotlyjs_save_hack(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Plots.Plot{Plots.PlotlyJSBackend}, ::String) at /Users/xxx/.julia/dev/Plots/src/backends/plotlyjs.jl:69
[21] _show at /Users/xxx/.julia/dev/Plots/src/backends/plotlyjs.jl:72 [inlined]
[22] showjuno(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("image/svg+xml")}, ::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/xxx/.julia/dev/Plots/src/output.jl:275
[23] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("image/svg+xml")}, ::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/xxx/.julia/dev/Plots/src/output.jl:203
[24] __binrepr at ./multimedia.jl:129 [inlined]
[25] _textrepr at ./multimedia.jl:119 [inlined]
[26] #stringmime#6 at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Base64/src/Base64.jl:38 [inlined]
[27] (::getfield(Base64, Symbol("#kw##stringmime")))(::NamedTuple{(:context,),Tuple{IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}}}, ::typeof(Base64.stringmime), ::MIME{Symbol("image/svg+xml")}, ::Plots.Plot{Plots.PlotlyJSBackend}) at ./none:0
[28] #stringmime#7(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Function, ::String, ::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Base64/src/Base64.jl:39
[29] #stringmime at ./none:0 [inlined]
[30] displayinplotpane(::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/xxx/.julia/packages/Atom/jodeb/src/display/showdisplay.jl:34
[31] display(::Atom.JunoDisplay, ::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/xxx/.julia/packages/Atom/jodeb/src/display/showdisplay.jl:55
[32] display(::Plots.Plot{Plots.PlotlyJSBackend}) at ./multimedia.jl:287
[33] #invokelatest#1 at ./essentials.jl:691 [inlined]
[34] invokelatest at ./essentials.jl:690 [inlined]
[35] print_response(::IO, ::Any, ::Any, ::Bool, ::Bool, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:154
[36] print_response(::REPL.AbstractREPL, ::Any, ::Any, ::Bool, ::Bool) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:139
[37] (::getfield(REPL, Symbol("#do_respond#40")){Bool,getfield(Atom, Symbol("##158#159")),REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:708
[38] #invokelatest#1 at ./essentials.jl:691 [inlined]
[39] invokelatest at ./essentials.jl:690 [inlined]
[40] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/LineEdit.jl:2261
[41] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:1029
[42] run_repl(::REPL.AbstractREPL, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:191
[43] (::getfield(Base, Symbol("##831#833")){Bool,Bool,Bool,Bool})(::Module) at ./logging.jl:311
[44] #invokelatest#1 at ./essentials.jl:691 [inlined]
[45] invokelatest at ./essentials.jl:690 [inlined]
[46] macro expansion at ./logging.jl:308 [inlined]
[47] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:340
[48] exec_options(::Base.JLOptions) at ./client.jl:252
[49] _start() at ./client.jl:432 |
See #208 for the latest |
@sglyon. I have tried your update.
|
Naturally, this is the same in 0.7.
From: Navrique <[email protected]>
Reply-To: "sglyon/PlotlyJS.jl" <[email protected]>
Date: Tuesday, August 28, 2018 at 1:23 AM
To: "sglyon/PlotlyJS.jl" <[email protected]>
Cc: Lewis Levin <[email protected]>, Comment <[email protected]>
Subject: Re: [sglyon/PlotlyJS.jl] Failure to precompile under Julia v0.7.0: Date not defined (#201)
@sglyon<https://github.com/sglyon>. I have tried your update.
I still have this Markdown related error on Juli1 1.0 .
Error: Error buildingPlotlyJS: │ % Total % Received % Xferd Average Speed Time Time Time Current │ Dload Upload Total Spent Left Speed 100 1332k 100 1332k 0 0 886k 0 0:00:01 0:00:01 --:--:-- 886k │ % Total % Received % Xferd Average Speed Time Time Time Current │ Dload Upload Total Spent Left Speed 100 2726k 100 2726k 0 0 3808k 0 --:--:-- --:--:-- --:--:-- 3808k │ ERROR: LoadError: LoadError: UndefVarError: Markdown not defined │ Stacktrace: │ [1] include at ./boot.jl:317 [inlined] │ [2] include_relative(::Module, ::String) at ./loading.jl:1038 │ [3] include(::Module, ::String) at ./sysimg.jl:29 │ [4] include(::String) at ./client.jl:388 │ [5] top-level scope at none:0 │ [6] include at ./boot.jl:317 [inlined] │ [7] include_relative(::Module, ::String) at ./loading.jl:1038 │ [8] include(::Module, ::String) at ./sysimg.jl:29 │ [9] include(::String) at ./client.jl:388 │ [10] top-level scope at none:0 │ in expression starting at /home/eduranda/.julia/packages/PlotlyJS/3eSkF/deps/make_schema_docs.jl:3 │ in expression starting at /home/eduranda/.julia/packages/PlotlyJS/3eSkF/deps/build.jl:10 └ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1068
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#201 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABGLLcBEk7s_aVouhNs0mmoF-G5CbmJ1ks5uVNPIgaJpZM4V4kZq>.
|
Hmm It works for me and even passes tests on julid 0.7 and 1.0 I did make a couple adjustments a few minutes ago. will you please try again and let me know what happens? |
Using PlotlyJS#master.
Builds and compiles (with warnings).
Won’t actually draw the chart. The Electron window opens and the animated square runs forever.
I rm’ed WebIO and deleted and let “add PlotlyJS” bring it back. I already had Blink and had run their installer.
```
julia> using Plots
[ Info: Recompiling stale cache file /Users/lewis/.julia/compiled/v0.7/Plots/ld3vC.ji for Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
julia> plotlyjs()
[ Info: Recompiling stale cache file /Users/lewis/.julia/compiled/v0.7/PlotlyJS/1r9Ld.ji for PlotlyJS [f0f68f2c-4968-5e81-91da-67840de0976a]
┌ Warning: `using A.B` will only be allowed for modules, not single bindings. Use `using A: B` instead
│ caller = ip:0x0
└ @ Core :-1
┌ Warning: Requires now needs a UUID; please see the readme for changes in 0.7.
└ @ PlotlyJS ~/.julia/packages/PlotlyJS/Uk3sJ/src/display.jl:125
┌ Warning: Requires now needs a UUID; please see the readme for changes in 0.7.
└ @ PlotlyJS ~/.julia/packages/PlotlyJS/Uk3sJ/src/display.jl:126
┌ Warning: Requires now needs a UUID; please see the readme for changes in 0.7.
└ @ PlotlyJS ~/.julia/packages/PlotlyJS/Uk3sJ/src/displays/ijulia.jl:224
┌ Warning: Requires now needs a UUID; please see the readme for changes in 0.7.
└ @ PlotlyJS ~/.julia/packages/PlotlyJS/Uk3sJ/src/PlotlyJS.jl:71
Plots.PlotlyJSBackend()
julia> scatter(1:20, rand(20))
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
Error showing value of type Plots.Plot{Plots.PlotlyJSBackend}:
ERROR: Javascript error JSLoadError: failed to load http://127.0.0.1:4404/pkg/PlotlyJS/plotly-latest.min.js
Stacktrace:
[1] #js#3(::Bool, ::Function, ::Blink.Page, ::WebIO.JSString) at /Users/lewis/.julia/packages/Blink/KMJt9/src/rpc/rpc.jl:37
[2] (::getfield(Blink, Symbol("#kw##js")))(::NamedTuple{(:callback,),Tuple{Bool}}, ::typeof(Blink.js), ::Blink.Page, ::WebIO.JSString) at ./none:0
[3] #js#14(::Bool, ::Function, ::Blink.AtomShell.Window, ::WebIO.JSString) at /Users/lewis/.julia/packages/Blink/KMJt9/src/AtomShell/window.jl:129
[4] #js at ./none:0 [inlined]
[5] #js#4(::Bool, ::Function, ::Blink.AtomShell.Window, ::Expr) at /Users/lewis/.julia/packages/Blink/KMJt9/src/rpc/rpc.jl:45
[6] js at /Users/lewis/.julia/packages/Blink/KMJt9/src/rpc/rpc.jl:45 [inlined]
[7] loadjs!(::Blink.AtomShell.Window, ::String) at /Users/lewis/.julia/packages/Blink/KMJt9/src/content/api.jl:54
[8] #get_window#32(::Base.Iterators.Pairs{Symbol,Integer,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:width, :height, :show),Tuple{Int64,Int64,Bool}}}, ::Function, ::PlotlyJS.ElectronDisplay) at /Users/lewis/.julia/packages/PlotlyJS/Uk3sJ/src/displays/electron.jl:69
[9] (::getfield(PlotlyJS, Symbol("#kw##get_window")))(::NamedTuple{(:width, :height, :show),Tuple{Int64,Int64,Bool}}, ::typeof(PlotlyJS.get_window), ::PlotlyJS.ElectronDisplay) at ./none:0
[10] #get_window#33(::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:show,),Tuple{Bool}}}, ::Function, ::PlotlyJS.SyncPlot{PlotlyJS.ElectronDisplay}) at /Users/lewis/.julia/packages/PlotlyJS/Uk3sJ/src/displays/electron.jl:110
[11] #get_window at ./none:0 [inlined]
[12] #display_blink#35(::Bool, ::Bool, ::Function, ::PlotlyJS.SyncPlot{PlotlyJS.ElectronDisplay}) at /Users/lewis/.julia/packages/PlotlyJS/Uk3sJ/src/displays/electron.jl:117
[13] #display_blink at ./none:0 [inlined]
[14] #display#34 at /Users/lewis/.julia/packages/PlotlyJS/Uk3sJ/src/displays/electron.jl:113 [inlined]
[15] display at /Users/lewis/.julia/packages/PlotlyJS/Uk3sJ/src/displays/electron.jl:113 [inlined]
[16] _display(::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/lewis/.julia/packages/Plots/ex9On/src/backends/plotlyjs.jl:85
[17] display at /Users/lewis/.julia/packages/Plots/ex9On/src/output.jl:145 [inlined]
[18] gui at /Users/lewis/.julia/packages/Plots/ex9On/src/output.jl:134 [inlined]
[19] display(::REPL.REPLDisplay{REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::Plots.Plot{Plots.PlotlyJSBackend}) at /Users/lewis/.julia/packages/Plots/ex9On/src/output.jl:150
[20] display(::REPL.REPLDisplay, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:135
[21] display(::Plots.Plot{Plots.PlotlyJSBackend}) at ./multimedia.jl:287
[22] #invokelatest#1 at ./essentials.jl:691 [inlined]
[23] invokelatest at ./essentials.jl:690 [inlined]
[24] print_response(::IO, ::Any, ::Any, ::Bool, ::Bool, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:154
[25] print_response(::REPL.AbstractREPL, ::Any, ::Any, ::Bool, ::Bool) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:139
[26] (::getfield(REPL, Symbol("#do_respond#40")){Bool,getfield(REPL, Symbol("##50#59")){REPL.LineEditREPL,REPL.REPLHistoryProvider},REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:708
[27] #invokelatest#1 at ./essentials.jl:691 [inlined]
[28] invokelatest at ./essentials.jl:690 [inlined]
[29] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/LineEdit.jl:2261
[30] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:1029
[31] run_repl(::REPL.AbstractREPL, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:191
[32] (::getfield(Base, Symbol("##831#833")){Bool,Bool,Bool,Bool})(::Module) at ./logging.jl:311
[33] #invokelatest#1 at ./essentials.jl:691 [inlined]
[34] invokelatest at ./essentials.jl:690 [inlined]
[35] macro expansion at ./logging.jl:308 [inlined]
[36] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:340
[37] exec_options(::Base.JLOptions) at ./client.jl:252
[38] _start() at ./client.jl:432
julia>
```
|
I then tried to reinstall AtomShell via Blink.AtomShell.install().
This failed.
Perhaps the dependency stack is simply too deep and this is no meant for this world. It used to work, though.
No one wants to bite the bullet and do a low level graphics layer for Julia, so the dependencies for plotting are all too deep:
PyPlot: Python, tck/tk
GR: ?? (not familiar with it)
Gadfly: ?? (Gtk?)
PlotlyJS: Electron, Javascript, plotly
I think we need a project to do native graphics layers for MacOS, Windows, and one of the Linux distros GUI’s (since there is no native graphics shell for Linux). Huge undertaking but we will never get out of Dodge without it. Perhaps the Foundation can seek charitable funding for the effort.
```
julia> using Blink
julia> Blink.AtomShell.install()
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 386k 100 386k 0 0 520k 0 --:--:-- --:--:-- --:--:-- 520k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 619 0 619 0 0 2976 0 --:--:-- --:--:-- --:--:-- 2990
100 46.4M 100 46.4M 0 0 1245k 0 0:00:38 0:00:38 --:--:-- 1260k
replace LICENSE? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
replace LICENSES.chromium.html? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
replace version? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
mv: Julia.app/Contents/MacOS/Electron: No such file or directory
ERROR: failed process: Process(`mv Julia.app/Contents/MacOS/Electron Julia.app/Contents/MacOS/Julia`, ProcessExited(1)) [1]
Stacktrace:
[1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at ./error.jl:42
[2] pipeline_error at ./process.jl:712 [inlined]
[3] #run#509(::Bool, ::Function, ::Cmd) at ./process.jl:670
[4] run at ./process.jl:668 [inlined]
[5] (::getfield(Blink.AtomShell, Symbol("##3#4")))() at /Users/lewis/.julia/packages/Blink/KMJt9/src/AtomShell/install.jl:38
[6] cd(::getfield(Blink.AtomShell, Symbol("##3#4")), ::String) at ./file.jl:96
[7] install() at /Users/lewis/.julia/packages/Blink/KMJt9/src/AtomShell/install.jl:27
[8] top-level scope at none:0
```
From: Spencer Lyon <[email protected]>
Reply-To: "sglyon/PlotlyJS.jl" <[email protected]>
Date: Tuesday, August 28, 2018 at 8:52 AM
To: "sglyon/PlotlyJS.jl" <[email protected]>
Cc: Lewis Levin <[email protected]>, Comment <[email protected]>
Subject: Re: [sglyon/PlotlyJS.jl] Failure to precompile under Julia v0.7.0: Date not defined (#201)
Hmm It works for me and even passes tests on julid 0.7 and 1.0
I did make a couple adjustments a few minutes ago. will you please try again and let me know what happens?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#201 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABGLLf5IZ-yFpd15WQen4kcdp4_JjtzDks5uVT0GgaJpZM4V4kZq>.
|
Master is the wrong branch. You should be using |
Sorry about that.
So, I added PlotlyJS#sl/0.7
It builds and precompiles. It sort of runs, with warnings.
But, it doesn’t work. The Electron window opens and the axes are created, but no data series are plotted.
And, the window can’t be closed because of a weird type error. The type of the plot object doesn’t match the API signature for close or closeall.
```
plotlyjs()
Plots.PlotlyJSBackend()
julia> foo = plot(1:4,11:14)
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
┌ Warning: `replace(s::AbstractString, pat, f)` is deprecated, use `replace(s, pat => f)` instead.
│ caller = prep_kwarg at api.jl:5 [inlined]
└ @ Core ~/.julia/packages/PlotlyBase/qZfUA/src/api.jl:5
julia> close(foo)
ERROR: MethodError: no method matching close(::Plots.Plot{Plots.PlotlyJSBackend})
Closest candidates are:
close(::Base.DevNullStream) at coreio.jl:15
close(::IOStream) at iostream.jl:39
close(::Base.Libc.FILE) at libc.jl:84
...
Stacktrace:
[1] top-level scope at none:0
julia> closeall(foo)
ERROR: MethodError: no method matching closeall(::Plots.Plot{Plots.PlotlyJSBackend})
Closest candidates are:
closeall(::Plots.PlotlyJSBackend) at /Users/lewis/.julia/packages/Plots/ex9On/src/backends/plotlyjs.jl:99
closeall(::Plots.GRBackend) at /Users/lewis/.julia/packages/Plots/ex9On/src/backends/gr.jl:1416
closeall() at /Users/lewis/.julia/packages/Plots/ex9On/src/output.jl:215
Stacktrace:
[1] top-level scope at none:0
julia> typeof(foo)
Plots.Plot{Plots.PlotlyJSBackend}
```
From: Spencer Lyon <[email protected]>
Reply-To: "sglyon/PlotlyJS.jl" <[email protected]>
Date: Tuesday, August 28, 2018 at 9:29 AM
To: "sglyon/PlotlyJS.jl" <[email protected]>
Cc: Lewis Levin <[email protected]>, Comment <[email protected]>
Subject: Re: [sglyon/PlotlyJS.jl] Failure to precompile under Julia v0.7.0: Date not defined (#201)
Master is the wrong branch.
You should be using PlotlyJS#sl/0.7-- the branch that corresponds to the pull request linked to above
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#201 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABGLLdyS1wHFKzusT1pWPqBFB9JatNbYks5uVUXFgaJpZM4V4kZq>.
|
If you would like to try PlotlyJS.jl during the transition please use it instead of Plots.jl I can only make guarantees about what this package does, not what happens with other packages. |
OK. Implying some of the issues could be the way Plots maps to its backend…
From: Spencer Lyon <[email protected]>
Reply-To: "sglyon/PlotlyJS.jl" <[email protected]>
Date: Tuesday, August 28, 2018 at 1:31 PM
To: "sglyon/PlotlyJS.jl" <[email protected]>
Cc: Lewis Levin <[email protected]>, Comment <[email protected]>
Subject: Re: [sglyon/PlotlyJS.jl] Failure to precompile under Julia v0.7.0: Date not defined (#201)
If you would like to try PlotlyJS.jl during the transition please use it instead of Plots.jl
I can only make guarantees about what this package does, not what happens with other packages.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#201 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABGLLcc2mr0j8XSIs_ni_23-iZ_X_H-7ks5uVX5WgaJpZM4V4kZq>.
|
So, how do I close a plot window?
I think during the transition I’ll stick with the pyplot backend.
From: Spencer Lyon <[email protected]>
Reply-To: "sglyon/PlotlyJS.jl" <[email protected]>
Date: Tuesday, August 28, 2018 at 1:31 PM
To: "sglyon/PlotlyJS.jl" <[email protected]>
Cc: Lewis Levin <[email protected]>, Comment <[email protected]>
Subject: Re: [sglyon/PlotlyJS.jl] Failure to precompile under Julia v0.7.0: Date not defined (#201)
If you would like to try PlotlyJS.jl during the transition please use it instead of Plots.jl
I can only make guarantees about what this package does, not what happens with other packages.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#201 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABGLLcc2mr0j8XSIs_ni_23-iZ_X_H-7ks5uVX5WgaJpZM4V4kZq>.
|
HI all,
|
@Navrique did you try
|
I get stuck at
|
I forgot to mention this is Fedora 29 |
Using julia 0.7:
|
But then PlotlyJS#sl/0.7 seems to work for me in Electron, with julia 0.7 (not 1.0 because of the |
@sglyon, I just wanted to report the following. I added PlotlyJS#sl/0.7 as you suggested on my MacBook Pro under Julia v0.7.0. It precompiled and worked if I use PlotlyJS independently from Plots.jl (although I only tested a simple time series plot). It still does not work under Plots.jl, which we need to report to Plots.jl guys. |
Thanks for reporting about Juno. I haven't yet hooked that up , but will very soon. And you have the right idea about reporting plots.jl issues there, but let's hold off until this package is fully cleaned up so there are no outstanding issues on our side. Thanks! |
@sglyon : Tank you. We have got improvement. I tried to plot using the PlotlyJS package. I got some warning but it succeed to pre-compile: What is strange is that I got exactly the same error using the plotly() backend. `julia>using PlotlyJS julia> PlotlyJS.plot(X,Y)` but a new a window open and the graph appear. |
On Julia-0.7, when I try to plot in a Blink.AtomShell window, I get julia>plot(rand(10))
ERROR: Javascript error JSLoadError: failed to load http://127.0.0.1:3025/pkg/PlotlyJS/plotly-latest.min.js
Stacktrace:
[1] #js#3(::Bool, ::Function, ::Blink.Page, ::WebIO.JSString) at C:\Users\kcools\.julia\packages\Blink\KMJt9\src\rpc [2] (::getfield(Blink, Symbol("#kw##js")))(::NamedTuple{(:callback,),Tuple{Bool}}, ::typeof(Blink.js), ::Blink.Page, [3] #js#12(::Bool, ::Function, ::Blink.AtomShell.Window, ::WebIO.JSString) at C:\Users\kcools\.julia\packages\Blink\ [4] #js at .\none:0 [inlined]
[5] #js#4(::Bool, ::Function, ::Blink.AtomShell.Window, ::Expr) at C:\Users\kcools\.julia\packages\Blink\KMJt9\src\r [6] js at C:\Users\kcools\.julia\packages\Blink\KMJt9\src\rpc\rpc.jl:45 [inlined]
[7] loadjs!(::Blink.AtomShell.Window, ::String) at C:\Users\kcools\.julia\packages\Blink\KMJt9\src\content\api.jl:54 [8] #get_window#32(::Base.Iterators.Pairs{Symbol,Integer,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:width, :height, :slectronDisplay) at C:\Users\kcools\.julia\packages\PlotlyJS\Uk3sJ\src\displays\electron.jl:69
[9] (::getfield(PlotlyJS, Symbol("#kw##get_window")))(::NamedTuple{(:width, :height, :show),Tuple{Int64,Int64,Bool}}lay) at .\none:0
[10] #get_window#33(::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:show,),Tuple{Bool}}}, ::Function, rs\kcools\.julia\packages\PlotlyJS\Uk3sJ\src\displays\electron.jl:110
[11] #get_window at .\none:0 [inlined]
[12] #display_blink#35(::Bool, ::Bool, ::Function, ::PlotlyJS.SyncPlot{ElectronDisplay}) at C:\Users\kcools\.julia\p:117
[13] #display_blink at .\none:0 [inlined]
[14] #display#34 at C:\Users\kcools\.julia\packages\PlotlyJS\Uk3sJ\src\displays\electron.jl:113 [inlined]
[15] display(::PlotlyJS.SyncPlot{ElectronDisplay}) at C:\Users\kcools\.julia\packages\PlotlyJS\Uk3sJ\src\displays\el [16] #invokelatest#1 at .\essentials.jl:691 [inlined]
[17] invokelatest at .\essentials.jl:690 [inlined]
[18] print_response(::IO, ::Any, ::Any, ::Bool, ::Bool, ::Any) at C:\cygwin\home\Administrator\buildbot\worker\packa\src\REPL.jl:154
[19] print_response(::REPL.AbstractREPL, ::Any, ::Any, ::Bool, ::Bool) at C:\cygwin\home\Administrator\buildbot\work0.7\REPL\src\REPL.jl:139
[20] (::getfield(REPL, Symbol("#do_respond#40")){Bool,getfield(REPL, Symbol("##50#59")){REPL.LineEditREPL,REPL.REPLH.Prompt})(::Any, ::Any, ::Any) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\st [21] #invokelatest#1 at .\essentials.jl:691 [inlined]
[22] invokelatest at .\essentials.jl:690 [inlined]
[23] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at C:\cygwin64\build\usr\share\julia\stdlib\v0.7\REPL\src\LineEdit.jl:2261
[24] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at C:\cygwin\home\Administrator\buildbot\worker\packagsrc\REPL.jl:1029
[25] run_repl(::REPL.AbstractREPL, ::Any) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\sh [26] (::getfield(Base, Symbol("##831#833")){Bool,Bool,Bool,Bool})(::Module) at .\logging.jl:311
[27] #invokelatest#1 at .\essentials.jl:691 [inlined]
[28] invokelatest at .\essentials.jl:690 [inlined]
[29] macro expansion at .\logging.jl:308 [inlined]
[30] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at .\client.jl:340
[31] exec_options(::Base.JLOptions) at .\client.jl:252
[32] _start() at .\client.jl:432 Any idea what this might be about? |
How did you install this package? Are you on the |
No I was not. Changed branches now it works perfectly. Sorry for the noise. Thanks for your help. |
No problem. I have only a couple more minor changes to make before we are ready to release a Julia 0.7 (and 1.0) compatible version of this package |
Yay! Thanks for all your hard work on this package.
From: Spencer Lyon <[email protected]>
Reply-To: "sglyon/PlotlyJS.jl" <[email protected]>
Date: Thursday, August 30, 2018 at 10:14 AM
To: "sglyon/PlotlyJS.jl" <[email protected]>
Cc: Lewis Levin <[email protected]>, Comment <[email protected]>
Subject: Re: [sglyon/PlotlyJS.jl] Failure to precompile under Julia v0.7.0: Date not defined (#201)
No problem.
I have only a couple more minor changes to make before we are ready to release a Julia 0.7 (and 1.0) compatible version of this package
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#201 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABGLLeH2y-rNzY0nsULKLwFPf5EENNrsks5uV_NagaJpZM4V4kZq>.
|
Hi all
|
For now, please use the master branch ] # enter pkg mode
(v1.0) pkg> checkout PlotlyJS If you want save figures you can do
If this doesn't resolve your issue here, please reopen the issue and leave a comment describing what went wrong |
@sglyon I just used the master branch as you suggested above. Under Atom/Juno, I got the following error using genuine PlotlyJS functions (not using Plots.jl). Note that running it on Terminal without Atom/Juno, it works.
|
Thanks for raising -- this is indeed an error. Will you please open a separate issue for this? |
Yes, I'll do this now. |
Hello. I'm trying to use PlotlyJS.jl (v0.10.2+) under Julia v0.7.0 (Mac OS X 10.11.6). At this point, I cannot precompile it. It generated the following error:
Thanks for your help!!
The text was updated successfully, but these errors were encountered: