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

Julia 1.0.0 support? #1185

Closed
kippjohnson opened this issue Aug 19, 2018 · 11 comments
Closed

Julia 1.0.0 support? #1185

kippjohnson opened this issue Aug 19, 2018 · 11 comments

Comments

@kippjohnson
Copy link

kippjohnson commented Aug 19, 2018

I apologize if this issue has already been raised or is well known, but I can't seem to install Gadfly on Julia 1.0.0.

I'm new to Julia, so I'm not sure exactly what's causing this to fail.

Possibly related to this?
JuliaLang/julia#27554

Using Julia version 1.0.0 on Ubuntu 18.04, kernel 4.15.0-29-generic if that matters.

julia> Pkg.add("Gadfly")
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
 [no changes]
  Updating `~/.julia/environments/v1.0/Manifest.toml`
 [no changes]

julia> using Gadfly
[ 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/kwj/.julia/packages/Gadfly/SqXyE/src/Gadfly.jl:961
ERROR: Failed to precompile Gadfly [c91e804a-d5a3-530f-b6f0-dfbca275c004] to /home/kwj/.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] require(::Module, ::Symbol) at ./logging.jl:311
@bjarthur
Copy link
Member

we're working on it. in the meantime, gadfly works on julia 0.6.4. sorry for the delay but only recently have all the dependencies worked on 1.0.

@flare9x
Copy link

flare9x commented Aug 19, 2018

Great - Looking forward to 1.0!

@tiago-peres
Copy link

tiago-peres commented Sep 6, 2018

Going through the same problem using Julia 1.0.0 on W10,
ERROR: Failed to precompile Gadfly

@tlnagy
Copy link
Member

tlnagy commented Sep 7, 2018

So I just merged 1.0 support over on GiovineItalia/Compose.jl#282 so this is really close, so we just need to wrap up #1189

@crazy0713
Copy link

win10
julia1.0
Gadfly 0.8.0

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 C:\Users\vtchen.julia\packages\Compose\y7cU7\src\Compose.jl:207
ERROR: LoadError: Failed to precompile Compose [a81c6b42-2e10-5240-aca2-a61377ecd94b] to C:\Users\vtchen.julia\compiled\v1.0\Compose\sbiEw.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] _require(::Base.PkgId) at .\logging.jl:311
[5] require(::Base.PkgId) at .\loading.jl:852
[6] macro expansion at .\logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at .\loading.jl:834
[8] include at .\boot.jl:317 [inlined]
[9] include_relative(::Module, ::String) at .\loading.jl:1038
[10] include(::Module, ::String) at .\sysimg.jl:29
[11] top-level scope at none:2
[12] eval at .\boot.jl:319 [inlined]
[13] eval(::Expr) at .\client.jl:389
[14] top-level scope at .\none:3
in expression starting at C:\Users\vtchen.julia\packages\Gadfly\p8TXc\src\Gadfly.jl:7
ERROR: Failed to precompile Gadfly [c91e804a-d5a3-530f-b6f0-dfbca275c004] to C:\Users\vtchen.julia\compiled\v1.0\Gadfly\DvECm.ji.
Stacktrace:
[1] macro expansion at .\logging.jl:313 [inlined]
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1184
[3] macro expansion at .\logging.jl:311 [inlined]
[4] _require(::Base.PkgId) at .\loading.jl:941
[5] require(::Base.PkgId) at .\loading.jl:852
[6] macro expansion at .\logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at .\loading.jl:834

@essenciary
Copy link

Looking forward to it!

I'm working on a Julia book and I use Gadfly in one of the chapters. The book is about Julia v1 and it is weeks away from publishing. Sadly, I can't retest Gadfly on v1 yet.

I used Julia v0.6 for the code examples. Will the plotting API change?

I'm using these with the Iris flowers dataset (from RDatasets):

julia> plot(iris, x=:SepalLength, y=:PetalLength, color=:Species)
julia> plot(iris, x=:Species, y=:PetalLength, Geom.boxplot)
julia> plot(iris, x=:PetalLength, color=:Species, Geom.histogram)
julia> plot(iris, x=:PetalWidth, y=:PetalLength, color=:Species)

Thanks!

@bjarthur
Copy link
Member

#1189 adds support for 1.0. checkout master of Gadfly and Compose until we tag. the API has not changed.

@jan-glx
Copy link

jan-glx commented Sep 14, 2018

#1189 adds support for 1.0. checkout master of Gadfly and Compose until we tag. the API has not changed.

For other julia newbies checking out 1.0, you can do this using:

Pkg.add(PackageSpec(url="https://github.com/GiovineItalia/Compose.jl", rev="master"))
Pkg.add(PackageSpec(url="https://github.com/GiovineItalia/Gadfly.jl", rev="master"))

@essenciary
Copy link

julia> pkg"add Compose#master"
julia> pkg"add Gadfly#master"
julia> pkg"add Hexagons"

also does the trick, thanks!

jlapeyre added a commit to jlapeyre/LightML.jl that referenced this issue Sep 25, 2018
I peformed steps given here
GiovineItalia/Gadfly.jl#1185

julia> pkg"add Compose#master"
julia> pkg"add Gadfly#master"
julia> pkg"add Hexagons"
@YSanchezAraujo
Copy link

wondering if anyone can help me out here:

julia> using Pkg

julia> Pkg.add(PackageSpec(url="https://github.com/GiovineItalia/Compose.jl", rev="master"))
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `https://github.com/GiovineItalia/Compose.jl`
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Mamba [5424a776]:
 Mamba [5424a776] log:
 ├─possible versions are: [0.3.8, 0.4.0-0.4.12, 0.5.0-0.5.2, 0.6.0-0.6.3, 0.7.0-0.7.4, 0.8.0-0.8.2, 0.9.0-0.9.2, 0.10.0-0.10.1, 0.11.0-0.11.2] or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.3.8, 0.4.0-0.4.12, 0.5.0-0.5.2, 0.6.0-0.6.3, 0.7.0-0.7.4, 0.8.0-0.8.2, 0.9.0-0.9.2, 0.10.0-0.10.1, 0.11.0-0.11.2]
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left
Stacktrace:
 [1] #propagate_constraints!#61(::Bool, ::Function, ::Pkg.GraphType.Graph, ::Set{Int64}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:1005
 [2] propagate_constraints! at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:946 [inlined]
 [3] #simplify_graph!#121(::Bool, ::Function, ::Pkg.GraphType.Graph, ::Set{Int64}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:1460
 [4] simplify_graph! at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:1460 [inlined] (repeats 2 times)
 [5] macro expansion at ./logging.jl:311 [inlined]
 [6] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:339
 [7] #add_or_develop#58(::Array{Base.UUID,1}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1163
 [8] #add_or_develop at ./none:0 [inlined]
 [9] #add_or_develop#13(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:64
 [10] #add_or_develop at ./none:0 [inlined]
 [11] #add_or_develop#12 at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:29 [inlined]
 [12] #add_or_develop at ./none:0 [inlined]
 [13] #add_or_develop#10(::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:mode,),Tuple{Symbol}}}, ::Function, ::Pkg.Types.PackageSpec) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:27
 [14] #add_or_develop at ./none:0 [inlined]
 [15] #add#18 at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:69 [inlined]
 [16] add(::Pkg.Types.PackageSpec) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:69
 [17] top-level scope at none:0

@lamhoson
Copy link

Is v1.01 support Gadfly ? Cannot download it from the package manager !

(JuliaPro_v1.0.1.1) pkg> add Gadfly
ERROR: The following package names could not be resolved:

  • Gadfly (not found in project, manifest or registry)
    Please specify by known name=uuid.

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

10 participants