JuliaGizmos / Escher.jl

Composable Web UIs in Julia
https://juliagizmos.github.io/Escher.jl
Other
337 stars 63 forks source link

LoadError when trying to run `escher --serve` #79

Closed astrieanna closed 9 years ago

astrieanna commented 9 years ago

I just downloaded this package and tried to run it according to the directions in the readme. This is the output I got:

$ escher --serve
WARNING: `require` is deprecated, use `using` or `import` instead
 in depwarn at ./deprecated.jl:73
 in require at deprecated.jl:663
 in include at ./boot.jl:260
 in include_from_node1 at ./loading.jl:271
 in require at ./loading.jl:210
 in include at ./boot.jl:260
 in include_from_node1 at ./loading.jl:271
 in process_options at ./client.jl:308
 in _start at ./client.jl:411
while loading /Users/leah/.julia/v0.4/ArgParse/src/ArgParse.jl, in expression starting on line 1
WARNING: module Escher should explicitly import * from Base
WARNING: module Escher should explicitly import / from Base
WARNING: module Escher should explicitly import + from Base
WARNING: module Escher should explicitly import - from Base
WARNING: New definition 
    write(#T<:Base.IO, HttpCommon.Response) at /Users/leah/.julia/v0.4/HttpServer/src/HttpServer.jl:179
is ambiguous with: 
    write(#T<:Base.AbstractPipe, Any...) at stream.jl:548.
To fix, define 
    write(#T<:Base.AbstractPipe, HttpCommon.Response)
before the new definition.
WARNING: New definition 
    write(#T<:Base.IO, HttpCommon.Response) at /Users/leah/.julia/v0.4/HttpServer/src/HttpServer.jl:179
is ambiguous with: 
    write(#T<:Base.DevNullStream, Any...) at process.jl:95.
To fix, define 
    write(#T<:Base.DevNullStream, HttpCommon.Response)
before the new definition.

WARNING: deprecated syntax "app (" at /Users/leah/.julia/v0.4/Mux/src/server.jl:14.
Use "app(" instead.
ERROR: LoadError: LoadError: LoadError: LoadError: TypeError: Tuple: in parameter, expected Type{T}, got Tuple{DataType,DataType}
 in include at ./boot.jl:260
 in include_from_node1 at ./loading.jl:271
 in include at ./boot.jl:260
 in include_from_node1 at ./loading.jl:271
 in require at ./loading.jl:210
 in include at ./boot.jl:260
 in include_from_node1 at ./loading.jl:271
 in include at ./boot.jl:260
 in include_from_node1 at ./loading.jl:271
 in process_options at ./client.jl:308
 in _start at ./client.jl:411
while loading /Users/leah/.julia/v0.4/Mux/src/websockets.jl, in expression starting on line 3
while loading /Users/leah/.julia/v0.4/Mux/src/Mux.jl, in expression starting on line 26
while loading /Users/leah/.julia/v0.4/Escher/src/cli/serve.jl, in expression starting on line 5
while loading /usr/local/bin/escher, in expression starting on line 7

I'm running on a Julia I built from scratch today. (I ran into other issues with this package when I tried to run with Julia 0.3, which is why I updated.) I'm on a Mac.

$ julia --version
julia version 0.4.0-pre
rohitvarkey commented 9 years ago

Can you try doing a Pkg.checkout("Mux")?

rohitvarkey commented 9 years ago

The issue you are mentioning seems to have been resolved by https://github.com/one-more-minute/Mux.jl/pull/6. So hopefully, doing the Pkg.checkout("Mux") should get everything fixed!

BTW, what issues did you have setting up Escher on Julia 0.3?

astrieanna commented 9 years ago

The problem from 0.3:

$ julia --version
julia version 0.3.7
$ escher --serve
WARNING: Color is deprecated, please use Colors instead. See https://github.com/JuliaGraphics/Colors.jl
ERROR: isexpr not defined
 in include at /Applications/Juno.app/Contents/Resources/app/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Juno.app/Contents/Resources/app/julia/lib/julia/sys.dylib
 in include at /Applications/Juno.app/Contents/Resources/app/julia/lib/julia/sys.dylib
 in include_from_node1 at loading.jl:128
 in process_options at /Applications/Juno.app/Contents/Resources/app/julia/lib/julia/sys.dylib
 in _start at /Applications/Juno.app/Contents/Resources/app/julia/lib/julia/sys.dylib
while loading /Users/leah/.julia/v0.3/Escher/src/cli/serve.jl, in expression starting on line 230
while loading /usr/local/bin/escher, in expression starting on line 7

I think the problem is that isexpr should be is_expr. I'm not sure where that typo actually is.

rohitvarkey commented 9 years ago

@astrieanna Its an issue with Mux. A Pkg.checkout("Mux") should fix things.

astrieanna commented 9 years ago

@rohitvarkey Is a new version of Mux going to get tagged so that everyone who tries Esher doesn't run into this same error?

rohitvarkey commented 9 years ago

@astrieanna Already done. :smile:

rohitvarkey commented 9 years ago

I'll close this then.