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

Installation issue #132

Open
jibnew opened this issue Dec 17, 2023 · 1 comment
Open

Installation issue #132

jibnew opened this issue Dec 17, 2023 · 1 comment

Comments

@jibnew
Copy link

jibnew commented Dec 17, 2023

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 ([email protected]).
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 ([email protected]).
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 ([email protected]).
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 ([email protected]).
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
@olexandr-konovalov
Copy link
Member

@jibnew sorry for not responding earlier! Have you managed to get it to work? To me, the jupyter kernelspec list output does not look right, it does not show the GAP kernel.

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

2 participants