* bug#57648: python-bash-kernel : No module named bash_kernel
@ 2022-09-06 23:08 Dan.Munteanu
0 siblings, 0 replies; only message in thread
From: Dan.Munteanu @ 2022-09-06 23:08 UTC (permalink / raw)
To: 57648
[-- Attachment #1.1: Type: text/plain, Size: 1166 bytes --]
Hi,
I've tried to use python-bash-kernel (via jupyterhub), but, even the
package installation defines correctly the kernel
$ cat .guix-profile/share/jupyter/kernels/bash/kernel.json
{"argv": ["/gnu/store/1m48ama708vh9cjn79yw6cj8sgg7pa1b-python-wrapper-
3.9.9/bin/python", "-m", "bash_kernel", "-f", "{connection_file}"],
"codemirror_mode": "shell", "display_name": "Bash", "env": {"PS1":
"$"}, "language": "bash"}
it fails with the "No module found" error:
/gnu/store/1m48ama708vh9cjn79yw6cj8sgg7pa1b-python-wrapper-
3.9.9/bin/python: No module named bash_kernel
I've managed to use the kernel with one of the following workarounds:
- define an env variable GUIX_PYTHONPATH (.bashrc or .bashprofile) set
to .guix-profile/lib/python3.9/site-packages/
- added a new line in share/jupyter/bash/kernel.spec: "env" :
{"GUIX_PYTHONPATH":".guix-profile/lib/python3.9/site-packages/"} -
https://jupyter-client.readthedocs.io/en/stable/kernels.html#kernel-specs id="-x-evo-selection-start-marker">
Could you please adjust the package so that the kernel is able to find
the bash_kernel module ?
Thank you
Best,
Dan
[-- Attachment #1.2: Type: text/html, Size: 1922 bytes --]
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 7745 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-07 16:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06 23:08 bug#57648: python-bash-kernel : No module named bash_kernel Dan.Munteanu
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).