gap-packages / JupyterKernel

Native Jupyter kernel for GAP
https://gap-packages.github.io/JupyterKernel/
BSD 3-Clause "New" or "Revised" License
19 stars 12 forks source link

Installation issue #132

Open jibnew opened 7 months ago

jibnew commented 7 months ago

I am on wsl I believe I followed all instructions jupyter notebook gives two choices, none of them gap-4 jupyter kernelspec list lists

Available kernels:
  sagemath-dev    /home/me/.local/share/jupyter/kernels/sagemath-dev
  python3         /home/me/install/sagemath/share/jupyter/kernels/python3
  sagemath        /home/me/install/sagemath/share/jupyter/kernels/sagemath

In gap, when I run LoadPackage("jupyterkernel"); I get

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading  crypting 0.10.4 (Hashes and Crypto in GAP)
by Markus Pfeiffer (http://www.morphism.de/~markusp/).
maintained by:
   Markus Pfeiffer (http://www.morphism.de/~markusp/) and
   The GAP Team (support@gap-system.org).
Homepage: https://gap-packages.github.io/crypting/
Report issues at https://github.com/gap-packages/crypting/issues
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading  json 2.1.1 (Reading and Writing JSON)
by Christopher Jefferson (http://caj.host.cs.st-andrews.ac.uk/).
Homepage: https://gap-packages.github.io/json/
Report issues at https://github.com/gap-packages/json/issues
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading  uuid 0.7 (RFC 4122 UUIDs)
by Markus Pfeiffer (http://www.morphism.de/~markusp/).
maintained by:
   The GAP Team (support@gap-system.org).
Homepage: https://gap-packages.github.io/uuid/
Report issues at https://github.com/gap-packages/uuid/issues
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading  ZeroMQInterface 0.14 (ZeroMQ bindings for GAP)
by Markus Pfeiffer (http://www.morphism.de/~markusp/) and
   Reimer Behrends (http://www.mathematik.uni-kl.de/agag/mitglieder/wissenschaftliche-mitarbeiter/dr-reimer-behrends/).
maintained by:
   The GAP Team (support@gap-system.org).
Homepage: https://gap-packages.github.io/ZeroMQInterface/
Report issues at https://github.com/gap-packages/ZeroMQInterface/issues
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading  JupyterKernel 1.5.0 (Jupyter kernel written in GAP)
by Markus Pfeiffer (https://markusp.morphism.de/) and
   Manuel Martins (https://github.com/mcmartins).
with contributions by:
   Thomas Breuer,
   Pedro García-Sánchez,
   Sebastian Gutsche,
   Max Horn,
   Fernando Isuru,
   Zachariah Newbery, and
   Sergio Siccha.
maintained by:
   Olexandr Konovalov (https://olexandr-konovalov.github.io/) and
   The GAP Team (support@gap-system.org).
Homepage: https://gap-packages.github.io/JupyterKernel/
Report issues at https://github.com/gap-packages/JupyterKernel/issues
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
true

However, after that issuing JUPYTER_KernelStart_GAP("gap-4"); responds with

Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `ReadByte' on 1 arguments
The 1st argument is 'fail' which might point to an earlier problem
 at /home/me/install/sagemath/share/gap/lib/methsel2.g:249 called from
JSON_STREAM_TO_GAP( str ) at /home/me/install/sagemath/lib/gap/pkg/json/gap/json.gi:129 called from
JsonStreamToGap( instream ) at /home/me/install/sagemath/lib/gap/pkg/JupyterKernel/gap/JupyterKernel.gi:406 called from
<function "JUPYTER_KernelStart_GAP">( <arguments> )
 called from read-eval loop at *stdin*:2
type 'quit;' to quit to outer loop