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

Precompiling error #1178

Closed
MartinImrisek opened this issue Aug 15, 2018 · 5 comments
Closed

Precompiling error #1178

MartinImrisek opened this issue Aug 15, 2018 · 5 comments

Comments

@MartinImrisek
Copy link

Dear community,

I have problem with Gadfly and I don't know how to fix it (I did some code changes but with out success). When I want to plot some data I got this error :

[ Info: Precompiling Gadfly [c91e804a-d5a3-530f-b6f0-dfbca275c004]
ERROR: LoadError: syntax: try without catch or finally
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] top-level scope at none:2
[5] eval at ./boot.jl:319 [inlined]
[6] eval(::Expr) at ./client.jl:389
[7] top-level scope at ./none:3
in expression starting at /home/imrisek/.julia/packages/Gadfly/ojGNo/src/Gadfly.jl:971
ERROR: LoadError: Failed to precompile Gadfly [c91e804a-d5a3-530f-b6f0-dfbca275c004] to /home/imrisek/.julia/compiled/v1.0/Gadfly/DvECm.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] macro expansion at ./logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
[4] macro expansion at ./logging.jl:311 [inlined]
[5] _require(::Base.PkgId) at ./loading.jl:941
[6] require(::Base.PkgId) at ./loading.jl:852
[7] macro expansion at ./logging.jl:311 [inlined]
[8] require(::Module, ::Symbol) at ./loading.jl:834
[9] include_string(::Module, ::String, ::String) at ./loading.jl:1002
[10] (::getfield(Atom, Symbol("##120#124")){String,String,Module})() at /home/imrisek/.julia/packages/Atom/jJn7Y/src/eval.jl:117
[11] withpath(::getfield(Atom, Symbol("##120#124")){String,String,Module}, ::String) at /home/imrisek/.julia/packages/CodeTools/8CjYJ/src/utils.jl:30
[12] withpath at /home/imrisek/.julia/packages/Atom/jJn7Y/src/eval.jl:46 [inlined]
[13] #119 at /home/imrisek/.julia/packages/Atom/jJn7Y/src/eval.jl:114 [inlined]
[14] hideprompt(::getfield(Atom, Symbol("##119#123")){String,String,Module}) at /home/imrisek/.julia/packages/Atom/jJn7Y/src/repl.jl:76
[15] macro expansion at /home/imrisek/.julia/packages/Atom/jJn7Y/src/eval.jl:113 [inlined]
[16] (::getfield(Atom, Symbol("##118#122")){Dict{String,Any}})() at ./task.jl:85
in expression starting at /home/imrisek/Dropbox/Julia/Plots/plotFakeData.jl:3

I'm running on Ubuntu 16.04., Julia 1.0.0. If you have some ideas I would be happy.
Martin

@bjarthur
Copy link
Member

gadfly doesn't work yet on julia 1.0, but we're working on it.

@MartinImrisek
Copy link
Author

Thank you for your reply.
So if I'll use Julia previous stable release (v0.7.0) it will work?
(Because I have try this version and didn't work
But I'll give another try with rebuilding all repos again)

@adyomin
Copy link

adyomin commented Aug 16, 2018

Have the same problem, my understanding is that you have to go back to v0.6.x as v0.7.0 is essentially equivalent to v1.0.0 save for feature depreciation warnings.

Update: This is most likely obvious to everybody in the community but for those who are new as I am, you can safely use both Julia v0.6.4 and Julia v1.0.0 at he same time (at least this works perfectly fine with macOS). To do this (assuming that you use Gadfly with Jupyter and have already updated to v1.0.0):

  • install v.0.6.4
  • create a separate symlink for the 0.6 binary (e.g. ln -s /Applications/Julia-0.6.app/Contents/Resources/julia/bin/julia /usr/local/bin/julia-0.6)
  • once you launch julia-0.6 you get access to the old package manager which will install packages into a separate folder (~/.julia/v0.6 instead of ~/.julia/packages)
  • if you have an existing Jupyter installation that you'd prefer to use set ENV["JUPYTER"]="path/to/the/prefered/jupyter/binary" before installing IJulia
  • install IJulia and Gadfly as usual

IJulia will automatically add a separate Jupyter kernel and you should be good to go.

@tlnagy
Copy link
Member

tlnagy commented Aug 16, 2018

I'm going to close this as we don't yet support 0.7/1.0 as @bjarthur mentioned above. I would keep an eye on #1158 for movement. There's been a ton of work done on getting all of Gadfly's dependencies to work on 0.7 and I think the current biggest hangup is Compose.jl.

@tlnagy tlnagy closed this as completed Aug 16, 2018
@tlnagy
Copy link
Member

tlnagy commented Aug 16, 2018

Also thanks @adyomin for the example of installing Gadfly on Julia v0.6.4 which is the latest supported release.

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

4 participants