JuliaGL / GLVisualize.jl

Visualization library written in Julia and OpenGL
Other
247 stars 34 forks source link

Julia 0.7 / 1.0 #259

Closed scls19fr closed 6 years ago

scls19fr commented 6 years ago

Hello,

this package doesn't seem to support Julia 0.7 / 1.0

julia> using GLVisualize
[ Info: Precompiling GLVisualize [4086de5b-f4b6-55f3-abb0-b8c73827585f]
WARNING: Base.Markdown is deprecated, run `using Markdown` instead
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/GLVisualize.jl:19
WARNING: importing deprecated binding Base.Range into GLVisualize.
WARNING: Base.Range is deprecated, use AbstractRange instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:5
WARNING: Base.Range is deprecated, use AbstractRange instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:5
WARNING: Base.Range is deprecated, use AbstractRange instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:5
WARNING: Base.Range is deprecated, use AbstractRange instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:10
WARNING: importing deprecated binding Base.Void into GLVisualize.
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:77
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:78
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:135
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:141
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:141
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:144
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:144
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:147
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:147
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:150
WARNING: Base.Void is deprecated, use Nothing instead.
  likely near /Users/scls/.julia/packages/GLVisualize/oLsTl/src/types.jl:150
┌ Warning: `is_apple` is deprecated, use `Sys.isapple` instead.
│   caller = top-level scope at none:0
└ @ Core none:0
ERROR: LoadError: LoadError: LoadError: UndefVarError: is_linenumber not defined
Stacktrace:
 [1] @gen_defaults!(::LineNumberNode, ::Module, ::Any, ::Any) at /Users/scls/.julia/packages/GLAbstraction/7IqRN/src/GLUtils.jl:142
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1038
 [4] include at ./sysimg.jl:29 [inlined]
 [5] include(::String) at /Users/scls/.julia/packages/GLVisualize/oLsTl/src/GLVisualize.jl:2
 [6] top-level scope at none:0
 [7] include at ./boot.jl:317 [inlined]
 [8] include_relative(::Module, ::String) at ./loading.jl:1038
 [9] include(::Module, ::String) at ./sysimg.jl:29
 [10] top-level scope at none:2
 [11] eval at ./boot.jl:319 [inlined]
 [12] eval(::Expr) at ./client.jl:399
 [13] top-level scope at ./none:3
in expression starting at /Users/scls/.julia/packages/GLVisualize/oLsTl/src/visualize_interface.jl:5
in expression starting at /Users/scls/.julia/packages/GLVisualize/oLsTl/src/visualize_interface.jl:2
in expression starting at /Users/scls/.julia/packages/GLVisualize/oLsTl/src/GLVisualize.jl:74
ERROR: Failed to precompile GLVisualize [4086de5b-f4b6-55f3-abb0-b8c73827585f] to /Users/scls/.julia/compiled/v0.7/GLVisualize/OpGOV.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:1185
 [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

Kind regards

SimonDanisch commented 6 years ago

GLVisualize is pretty much overshadowed by Makie: https://github.com/JuliaPlots/Makie.jl Try ]add Makie#master on 1.0 :)

scls19fr commented 6 years ago

Thanks @SimonDanisch Can it be used to render https://github.com/JuliaGeometry/GeometryTypes.jl?

SimonDanisch commented 6 years ago

Yes! mesh(geom_type) should work! Open an issue if not - it's a bug then ;)

scls19fr commented 6 years ago

I haven't been able to install Makie on Julia 0.7.

SimonDanisch commented 6 years ago

What's the error?

scls19fr commented 6 years ago
(v0.7) pkg> add Makie#master
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `https://github.com/JuliaPlots/Makie.jl.git`
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package ImageView [86fae568]:
 ImageView [86fae568] log:
 ├─possible versions are: [0.0.1-0.0.23, 0.1.0-0.1.20, 0.2.0, 0.3.0-0.3.2, 0.4.0, 0.5.0-0.5.1, 0.6.0, 0.7.0] or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.0.1-0.0.23, 0.1.0-0.1.20, 0.2.0, 0.3.0-0.3.2, 0.4.0, 0.5.0-0.5.1, 0.6.0, 0.7.0]
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left
scls19fr commented 6 years ago

After removing `ImageView``

(v0.7) pkg> add Makie#master
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `https://github.com/JuliaPlots/Makie.jl.git`
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package NamedTuples [73a701b4]:
 NamedTuples [73a701b4] log:
 ├─possible versions are: [0.0.1-0.0.3, 0.1.0, 1.0.0, 2.0.0, 2.1.0, 3.0.0-3.0.3, 4.0.0-4.0.2] or uninstalled
 ├─restricted by julia compatibility requirements to versions: uninstalled
 └─restricted by compatibility requirements with ParquetFiles [46a55296] to versions: 4.0.0-4.0.2 — no versions left
   └─ParquetFiles [46a55296] log:
     ├─possible versions are: 0.0.1 or uninstalled
     └─restricted by compatibility requirements with Queryverse [612083be] to versions: 0.0.1
       └─Queryverse [612083be] log:
         ├─possible versions are: 0.0.1-0.0.2 or uninstalled
         └─restricted to versions * by an explicit requirement, leaving only versions 0.0.1-0.0.2

trying to remove NamedTuples

(v0.7) pkg> rm NamedTuples
┌ Warning: `NamedTuples` not in project, ignoring
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Operations.jl:1127
[ Info: No changes
SimonDanisch commented 6 years ago

seems to be this: https://discourse.julialang.org/t/namedtuples-and-dependent-packages/14493

SimonDanisch commented 6 years ago

I just double checked, it should just work (this is on a fresh docker container): https://nextjournal.com/sdanisch/makie-1.0 You can get a nextjournal account with signup code: juliacon, and click remix if you just want to play around with makie online a bit! ;)