Re: [julia-users] Re: problems (and some fixes) for using Plots and PlotlyJS on FreeBSD

2016-11-08 Thread Kostas Oikonomou
It seems that the problem is in Blink/src/AtomShell/process.jl.   The error 
report indicates line 62 there.
So I tried running some lines by hand:

julia> port() = rand(2_000:10_000)   # line 57
port (generic function with 1 method)

julia> p = port()  # line 72
5287

julia> connect(ip"127.0.0.1", p)  # line 76
ERROR: connect: connection refused (ECONNREFUSED)
 in yieldto at ./event.jl:136
 in _init at /opt/julia/0.5.0/lib/julia/sys.so:?
 in wait at ./event.jl:169
 in wait at ./event.jl:27
 in _init at /opt/julia/0.5.0/lib/julia/sys.so:?
 in stream_wait at ./stream.jl:44
 in wait_connected at ./stream.jl:265
 in connect at ./stream.jl:960 [inlined]
 in connect(::IPv4, ::Int64) at ./socket.jl:677

julia> 


On Tuesday, November 8, 2016 at 1:07:23 PM UTC-5, Tom Breloff wrote:
>
> Sounds like progress.  You might try restarting Julia, and also try the 
> plotting command a few times.  Blink is known to have a race condition on 
> startup that sometimes produces this sort of error.
>
> On Tue, Nov 8, 2016 at 1:02 PM, Kostas Oikonomou  > wrote:
>
>>
>> Thanks.  Before reading your post, I had added an "if is_bsd()" statement 
>> to Blink/src/AtomShell/install.jl, and I set arch to "ia32" as FreeBSD 
>> has default support for 32-bit Linux.  
>>
>>

Re: [julia-users] Re: problems (and some fixes) for using Plots and PlotlyJS on FreeBSD

2016-11-08 Thread Tom Breloff
Sounds like progress.  You might try restarting Julia, and also try the
plotting command a few times.  Blink is known to have a race condition on
startup that sometimes produces this sort of error.

On Tue, Nov 8, 2016 at 1:02 PM, Kostas Oikonomou <
kostas.oikonomo...@gmail.com> wrote:

> Thanks.  Before reading your post, I had added an "if is_bsd()" statement
> to Blink/src/AtomShell/install.jl, and I set arch to "ia32" as FreeBSD
> has default support for 32-bit Linux.
>
> The result is that when I redo AtomBlink.AtomShell.install(), the 32-bit
> Linux binary is installed.
> However, when I do plotlyjs() and then try to plot something, there is an
> error:
>
> ERROR: connect: connection refused (ECONNREFUSED)
>  in yieldto at ./event.jl:136
>  in _init at /opt/julia/0.5.0/lib/julia/sys.so:?
>  in wait at ./event.jl:169
>  in wait at ./event.jl:27
>  in _init at /opt/julia/0.5.0/lib/julia/sys.so:?
>  in stream_wait at ./stream.jl:44
>  in wait_connected at ./stream.jl:265
> ...
>
>
> On Tuesday, November 8, 2016 at 11:32:42 AM UTC-5, randm...@gmail.com
> wrote:
>>
>> I don't think Electron works on FreeBSD (see here
>> ), but Blink requires
>> it. You could try using the Linux binaries by changing this
>> 
>> line to be is_linux() || is_bsd()and call Blink.AtomShell.install()
>> again, but I'm not sure that'll work.
>>
>> A
>>
>