Skip to content
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

Installation issue on local computer: plotly.js javascript libary not found - #176

Closed
jlperla opened this issue Feb 6, 2018 · 9 comments

Comments

@jlperla
Copy link
Contributor

jlperla commented Feb 6, 2018

After a seamingly successs installation of Julia/etc. on my local windows machine , I am getting the following error when trying to use PlotlyJS

julia> using PlotlyJS
INFO: plotly.js javascript libary not found -- downloading now
ERROR: InitError: could not open file C:\Users\jlperla\.julia\v0.6\PlotlyJS\assets\build.jl
Stacktrace:
 [1] include_from_node1(::String) at .\loading.jl:576
 [2] include(::String) at .\sysimg.jl:14
 [3] macro expansion at C:\Users\jlperla\.julia\v0.6\PlotlyJS\src\PlotlyJS.jl:85 [inlined]
 [4] (::PlotlyJS.##135#136)() at C:\Users\jlperla\.julia\v0.6\Requires\src\init.jl:17
 [5] __init__() at C:\Users\jlperla\.julia\v0.6\Requires\src\init.jl:24
 [6] _include_from_serialized(::String) at .\loading.jl:157
 [7] _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at .\loading.jl:200
 [8] _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at .\loading.jl:236
 [9] _require(::Symbol) at .\loading.jl:441
 [10] require(::Symbol) at .\loading.jl:405
during initialization of module PlotlyJS

Any ideas? I have tried to do a Pkg.update(), etc. as well but no luck so far.

@sglyon
Copy link
Member

sglyon commented Feb 6, 2018

I'll look into it! This one shouldn't be hard to track down.

@sglyon sglyon closed this as completed in b546135 Feb 6, 2018
@jlperla
Copy link
Contributor Author

jlperla commented Feb 6, 2018

Thanks. I will update from master and test tonight (it is on my home laptop)

@jlperla
Copy link
Contributor Author

jlperla commented Feb 7, 2018

No luck. I first tried to do a Pkg.update() and then tried using PlotlyJS and had the same error

Then I tried Pkg.checkout("PlotlyJS") and then got a different error,

julia> using PlotlyJS
INFO: plotly.js javascript libary not found -- downloading now
ERROR: InitError: LoadError: automatic download failed (error: 2147500036): https://cdn.plot.ly/plotly-latest.min.js
Stacktrace:
 [1] download(::String, ::String) at .\interactiveutil.jl:598
 [2] cd(::##9#10, ::String) at .\file.jl:59
 [3] include_from_node1(::String) at .\loading.jl:576
 [4] include(::String) at .\sysimg.jl:14
 [5] macro expansion at C:\Users\jlperla\.julia\v0.6\PlotlyJS\src\PlotlyJS.jl:85 [inlined]
 [6] (::PlotlyJS.##135#136)() at C:\Users\jlperla\.julia\v0.6\Requires\src\init.jl:17
 [7] __init__() at C:\Users\jlperla\.julia\v0.6\Requires\src\init.jl:24
 [8] _include_from_serialized(::String) at .\loading.jl:157
 [9] _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at .\loading.jl:200
 [10] _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at .\loading.jl:236
 [11] _require(::Symbol) at .\loading.jl:441
 [12] require(::Symbol) at .\loading.jl:405
while loading C:\Users\jlperla\.julia\v0.6\PlotlyJS\deps\build.jl, in expression starting on line 3
during initialization of module PlotlyJS

@sglyon
Copy link
Member

sglyon commented Feb 7, 2018

That's really surprising. Does this machine have internet access?

@jlperla
Copy link
Contributor Author

jlperla commented Feb 7, 2018

Seems to. On it right now. The plotly backend is working

@jlperla
Copy link
Contributor Author

jlperla commented Feb 7, 2018

That link for the plot.ly seems to work in a browser...

@sglyon
Copy link
Member

sglyon commented Feb 7, 2018

Can you run Pkg.build("PlotlyJS")

@jlperla
Copy link
Contributor Author

jlperla commented Feb 7, 2018

No obvious errors

julia> Pkg.build("PlotlyJS")
INFO: Building HttpParser
INFO: Building MbedTLS
Using system libraries...
INFO: Building PlotlyJS

Then,

julia> using PlotlyJS
INFO: Recompiling stale cache file C:\Users\jlperla\.julia\lib\v0.6\HttpParser.ji for module HttpParser.
INFO: Recompiling stale cache file C:\Users\jlperla\.julia\lib\v0.6\HttpServer.ji for module HttpServer.

WARNING: deprecated syntax "inner constructor Client(...) around C:\Users\jlperla\.julia\v0.6\HttpServer\src\HttpServer.jl:114".
Use "Client{T}(...) where T" instead.
INFO: Recompiling stale cache file C:\Users\jlperla\.julia\lib\v0.6\WebSockets.ji for module WebSockets.
INFO: Recompiling stale cache file C:\Users\jlperla\.julia\lib\v0.6\PlotlyJS.ji for module PlotlyJS.
WARNING: using Lazy.remove in module AtomShell conflicts with an existing identifier.

So not seeing that old error. And finally, plot(rand(3))
Right now it is taking a long time after popping up an Electron window... not sure what is going on.

@jlperla
Copy link
Contributor Author

jlperla commented Feb 7, 2018

Seems to have crashed the terminal... Restarted a REPL, did a Blink.AtomShell.install() for good measure, and tried again. Working great.

I wonder it it is worth doing a Blink.AtomShell.install() at the end of your build? Who knows if it helps, but I don't think it hurts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants