Re: [julia-users] problems (and some fixes) for using Plots and PlotlyJS on FreeBSD
Most likely there are various platform-checking if statements that don't properly handle the freebsd situation of being not linux and not macos and not windows. Does Atom support FreeBSD, do they have binaries available? If so, a few more careful fallbacks might be able to fix this?
Re: [julia-users] problems (and some fixes) for using Plots and PlotlyJS on FreeBSD
On 2nd thought, here is more of the (long) error message: ERROR: Cannot find Electron. Try `Blink.AtomShell.install()`. in electron() at /usr/home/ko/.julia/v0.5/Blink/src/AtomShell/process.jl:53 in #init#5(::Bool, ::Function) at /usr/home/ko/.julia/v0.5/Blink/src/AtomShell/process.jl:71 in (::Blink.AtomShell.#kw##init)(::Array{Any,1}, ::Blink.AtomShell.#init) at ./:0 in #shell#8(::Bool, ::Function) at /usr/home/ko/.julia/v0.5/Blink/src/AtomShell/process.jl:114 The in line 4 looks suspicious. Does it give you any clue? On Monday, November 7, 2016 at 5:27:34 PM UTC-5, Kostas Oikonomou wrote: > > I'm just beginning with Julia, so I don't really know how to go about > doing this. > > >
Re: [julia-users] problems (and some fixes) for using Plots and PlotlyJS on FreeBSD
I'm just beginning with Julia, so I don't really know how to go about doing this. On Monday, November 7, 2016 at 5:14:21 PM UTC-5, Tom Breloff wrote: > > You should probably open issues/PRs in the individual packages then... > this sounds like a Blink issue. > > On Mon, Nov 7, 2016 at 5:09 PM, Kostas Oikonomou > wrote: > >> Yes, I did. Unfortunately it didn't help. >> >> On Monday, November 7, 2016 at 3:44:29 PM UTC-5, Tom Breloff wrote: >>> >>> I'll ask the obvious question... did you try >>> "Blink.AtomShell.install()"? Nice work getting as far as you did. >>> >>> >>> >
Re: [julia-users] problems (and some fixes) for using Plots and PlotlyJS on FreeBSD
You should probably open issues/PRs in the individual packages then... this sounds like a Blink issue. On Mon, Nov 7, 2016 at 5:09 PM, Kostas Oikonomou < kostas.oikonomo...@gmail.com> wrote: > Yes, I did. Unfortunately it didn't help. > > On Monday, November 7, 2016 at 3:44:29 PM UTC-5, Tom Breloff wrote: >> >> I'll ask the obvious question... did you try >> "Blink.AtomShell.install()"? Nice work getting as far as you did. >> >> >>
Re: [julia-users] problems (and some fixes) for using Plots and PlotlyJS on FreeBSD
Yes, I did. Unfortunately it didn't help. On Monday, November 7, 2016 at 3:44:29 PM UTC-5, Tom Breloff wrote: > > I'll ask the obvious question... did you try "Blink.AtomShell.install()"? > Nice work getting as far as you did. > > >
Re: [julia-users] problems (and some fixes) for using Plots and PlotlyJS on FreeBSD
I'll ask the obvious question... did you try "Blink.AtomShell.install()"? Nice work getting as far as you did. On Mon, Nov 7, 2016 at 3:35 PM, Kostas Oikonomou < kostas.oikonomo...@gmail.com> wrote: > I am using Julia 0.5.0 on FreeBSD 11. I've had a few problems trying to > install the Plots and PlotlyJS packages: > > 1. Just after installing Plots, I had to make this fix in > ~/.julia/v0.5/Plots/src/backends/web.jl, function open_browser_window: > >@static if is_linux() || is_bsd() > return run(`xdg-open $(filename)`) >end > > 2. Now trying to install PlotlyJS. HttpParser doesn't build, because in > BinDeps.jl, function unpack_cmd(...), says > >elseif extension == ".zip" >return (`unzip -x $file -d $directory`) > > The /usr/bin/unzip on FreeBSD doesn't understand "-x" (more precisely, it > thinks > it means "exclude"). GNU gunzip doesn't understand it either. What > "unzip" is > this supposed to be? I made an ugly hack to work around this. > > > 3. In ~/.julia/v0.5/Blink/src/AtomShell/process.jl: I had to add is_bsd() > to > > @static if is_apple() > const _electron = resolve("Blink", "deps/Julia.app/Contents/ > MacOS/Electron") > elseif is_linux() || is_bsd() > const _electron = resolve("Blink", "deps/atom/electron") > elseif is_windows() > const _electron = resolve("Blink", "deps", "atom", "electron.exe") > end > > 4. After all this, I still get the error: > > julia> using Plots > julia> plotlyjs() > julia> plot(x -> x^2, rand(10)) > Error showing value of type Plots.Plot{Plots.PlotlyJSBackend}: > ERROR: Cannot find Electron. Try `Blink.AtomShell.install()`. > in electron() at /usr/home/ko/.julia/v0.5/Blink/src/AtomShell/process. > jl:53 > > > Thanks for any help. > > Kostas >