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

GAP package JupyterViz fails to load #290

Closed
mohamed-barakat opened this issue Sep 22, 2019 · 5 comments
Closed

GAP package JupyterViz fails to load #290

mohamed-barakat opened this issue Sep 22, 2019 · 5 comments

Comments

@mohamed-barakat
Copy link
Contributor

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.2.0 (2019-08-20)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using GAP
 ┌───────┐   GAP 4.10dev-2263-g9f330be of today
 │  GAP  │   https://www.gap-system.org
 └───────┘   Architecture: x86_64-apple-darwin18.6.0-julia64-kv7
 Configuration:  gmp 6.1.2, Julia GC, Julia 1.2.0
 Loading the library and packages ...
 Packages:   GAPDoc 1.6.3, PrimGrp 3.3.2, SmallGrp 1.3, TransGrp 2.0.4
 Try '??help' for help. See also '?copyright', '?cite' and '?authors'

julia> LoadPackageAndExposeGlobals( "JupyterViz", Main, all_globals = true )
ERROR: cannot load package JupyterViz
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] #LoadPackageAndExposeGlobals#9(::Bool, ::Bool, ::typeof(LoadPackageAndExposeGlobals), ::String, ::Module) at /Users/mo/.julia/dev/GAP/src/gap2.jl:116
 [3] (::getfield(GAP, Symbol("#kw##LoadPackageAndExposeGlobals")))(::NamedTuple{(:all_globals,),Tuple{Bool}}, ::typeof(LoadPackageAndExposeGlobals), ::String, ::Module) at ./none:0
 [4] top-level scope at REPL[2]:1
@fingolfin
Copy link
Member

Isn't this the same as issue #287, ie the package simply is not loadable, eg some dependency is missing/not compiled/...

@sebasguts
Copy link
Contributor

Without investigating further, I think you are not able to load GAP's Jupyter package stack.

Even if, you will not achieve the desired goal. The Renderables will not show as expected (image, html) when displayed to Jupyter. I suggest you use the native Julia visualization tools.

@olexandr-konovalov
Copy link

@sebasguts must be right. Loadable here in GAP 4.10.2 https://github.com/alex-konovalov/gap-teaching.

@mohamed-barakat
Copy link
Contributor Author

mohamed-barakat commented Sep 23, 2019

@fingolfin is right, I still had json in my EXTRA_GAPROOT. And @sebasguts is right, after removing json from the path I get the error:

julia> LoadPackageAndExposeGlobals( "JupyterViz", Main, all_globals = true )

julia> Plot( [ 1.2, 1.3, 5 ] )
Error, Invalid argument types given to Plot.
ERROR: Error thrown by GAP
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] error_handler() at /Users/mo/.julia/dev/GAP/src/GAP.jl:47
 [3] #call_gap_func#5(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(GAP.call_gap_func), ::Main.ForeignGAP.MPtr, ::Array{Float64,1}) at /Users/mo/.julia/dev/GAP/src/ccalls.jl:149
 [4] call_gap_func at /Users/mo/.julia/dev/GAP/src/ccalls.jl:139 [inlined]
 [5] #call#3 at /Users/mo/.julia/dev/GAP/src/GAP.jl:123 [inlined]
 [6] (::Main.ForeignGAP.MPtr)(::Array{Float64,1}) at /Users/mo/.julia/dev/GAP/src/GAP.jl:123
 [7] top-level scope at REPL[3]:1

@mohamed-barakat
Copy link
Contributor Author

I will wait for a day and then close the issue. Thank you all for your help.

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