Closed pmoura closed 1 year ago
My guess would be that you have mismatched Python installations in your PATH, i. e. the pip3
command comes from a different Python installation than the python3
command. It's recommended to always use python3 -m pip
(change the python3
part as needed) so that you know for sure that pip is operating on the Python installation that you expect.
So in this case I'd recommend:
$ jupyter kernelspec remove prolog_kernel
$ jupyter kernelspec remove prolog_kernel
$ pip3 uninstall prolog_kernel
$ pip3 uninstall prolog_kernel
$ python3 -m pip uninstall prolog_kernel
$ python3 -m pip uninstall prolog_kernel
$ python3 -m pip install -e .
$ python3 -m prolog_kernel.install
Sometimes you need to run the uninstall commands more than once, if you have the package installed in multiple locations used by the same Python environment (e. g. user-local and system-wide).
I also just pushed a few changes for better feedback when installing the kernel (5b2f5af98b23fc1bf1f50090e02814746770bf68) and a better default install location (2ac5ace9e98100b3a579fce2b23dc9d8b3645436). These should help with debugging the issue.
Thanks for the quick reply. That sequence of shell commands solved the problem for both kernels (although, interestingly, only a single installation for each kernel was found by the uninstall commands).
I also just pushed a few changes for better feedback when installing the kernel (5b2f5af) and a better default install location (2ac5ace). These should help with debugging the issue.
Thanks. I applied those changes to the Logtalk kernel (https://github.com/LogtalkDotOrg/logtalk-jupyter-kernel/commit/1c968deabaace9d15c8a2ed1b7c6f17915d2c52d).
The https://github.com/hhu-stups/prolog-jupyter-kernel/commit/ad3f209a6ca478c635d3a048bcfa93280933fe4e change breaks the Prolog kernel for me. Same when I back-ported it to the Logtalk kernel. I get:
This after uninstalling the previous version of the kernel and installing the new one:
I'm running:
jupyter_core
4.10.0jupyterlab
3.5.0notebook
6.4.8