Am 13.05.2016 um 08:02 schrieb Ralf Hemmecke:

>>> It's a pity that with Xenial the installation becomes too
>>> complicated.

I've set up a docker image from ubuntu:xenial and installed everything
from scratch
(https://github.com/nilqed/fricas_docker/blob/master/Dockerfile:latest).
After having fixed the issue described further below (0MQ design
change), it's working again without downgrading the jupyter-client.

Therefore, if you want to fix it yourself, the following steps were
necessary:

1. pip install -U jupyter-client  (undoing the downgrade)
2. clear the sbcl cache for "pzmq": ????=to complete

rm -r
~/.cache/common-lisp/sbcl-1.3.0-linux-x64/???/fricas_jupyter/quicklisp/dists/quicklisp/software/pzmq-20150608-git/

3. cd ????/fricas_jupyter/quicklisp/dists/quicklisp/software
4. rm -r pzmq-20150608-git
5. git clone https://github.com/orivej/pzmq.git
6. mv pzmq pzmq-20150608-git  #cheating ;)
7. cd ????/fricas_jupyter
8. ./install.sh  #recompile kernel

Otherwise I'll update the git repo as soon as the new version of "pzmq"
is released on QL, then you could pull the changes via git.
Kurt

>>>
from
http://stackoverflow.com/questions/34093656/jupyter-and-common-lisp/37107166#37107166

This issue is caused by a change in the size of the message structure,
zmq_msg_t, in 0MQ version 4.1.x to 64 bytes from a size of 32 bytes in
version 4.0.x.

The 0MQ interface library used by cl-jupyter is pzmq, and that library
is stated to support 0MQ up to version 4.0. At the time of this writing,
pzmq uses a 0MQ message size of 32 bytes. This leads to internal errors
if 0MQ version 4.1.x is installed.

There are two solutions here:

    Downgrade the 0MQ installation to version 4.0.x
    Fix the pzmq library by updating the definition of msg% in
c-api.lisp from 32 to 64 bytes.


Update - 9 May 2016

The pzmq library was updated to support 0MQ version 4.1.x, (preserving
compatibility with older versions). The new version of pzmq is planned
for release as part of the May 2016 Quicklisp release.


++++
Libs
++++
root@7f4cc5b5c08a:~# apt list python-zmq
Listing... Done
python-zmq/xenial 15.2.0-0ubuntu4 amd64

root@7f4cc5b5c08a:~# pip freeze | grep zmq
pyzmq==15.2.0

root@7f4cc5b5c08a:/# apt list libzmq3-dev
Listing... Done
libzmq3-dev/xenial,now 4.1.4-7 amd64 [installed]


++++++
Output
++++++
kfp@helix:~$ docker images
REPOSITORY              TAG                 IMAGE ID            CREATED
           SIZE
nilqed/fricas_jupyter   xenial              6eca08728672        6
seconds ago       1.509 GB
nilqed/fricas_jupyter   latest              046f4ac06af1        19 hours
ago        1.319 GB
nilqed/fricas           latest              309afee9f4ac        20 hours
ago        1.108 GB
ubuntu                  latest              c5f1cf30c96b        10 days
ago         120.8 MB
hello-world             latest              94df4f0ce8a4        2 weeks
ago         967 B
kfp@helix:~$ docker run -p 443:8888  -t -i nilqed/fricas_jupyter:xenial
jupyter notebook --ip=*
[I 22:26:28.911 NotebookApp] Writing notebook server cookie secret to
/root/.local/share/jupyter/runtime/notebook_cookie_secret
/usr/local/lib/python3.5/dist-packages/widgetsnbextension/__init__.py:30:
UserWarning: To use the jupyter-js-widgets nbextension, you'll need to
update
    the Jupyter notebook to version 4.2 or later.
  the Jupyter notebook to version 4.2 or later.""")
[W 22:26:29.797 NotebookApp] WARNING: The notebook server is listening
on all IP addresses and not using encryption. This is not recommended.
[W 22:26:29.798 NotebookApp] WARNING: The notebook server is listening
on all IP addresses and not using authentication. This is highly
insecure and not recommended.
[I 22:26:29.866 NotebookApp] Serving notebooks from local directory: /
[I 22:26:29.866 NotebookApp] 0 active kernels
[I 22:26:29.867 NotebookApp] The Jupyter Notebook is running at:
http://[all ip addresses on your system]:8888/
[I 22:26:29.867 NotebookApp] Use Control-C to stop this server and shut
down all kernels (twice to skip confirmation).
[W 22:26:29.870 NotebookApp] No web browser found: could not locate
runnable browser.
[W 22:26:38.408 NotebookApp] No such file or directory: Untitled.ipynb
[W 22:26:38.410 NotebookApp] 404 GET
/api/contents/Untitled.ipynb?content=0&_=1463264520662 (192.168.0.4)
9.48ms
referer=http://192.168.0.6:443/notebooks/Untitled.ipynb?kernel_name=ifricas
[I 22:26:38.446 NotebookApp] Uploading file to /Untitled.ipynb
[I 22:26:38.488 NotebookApp] Writing notebook-signing key to
/root/.local/share/jupyter/notebook_secret
[I 22:26:44.907 NotebookApp] Creating new notebook in
[W 22:26:47.606 NotebookApp] 404 GET
/nbextensions/widgets/notebook/js/extension.js?v=20160514222628
(192.168.0.4) 38.89ms
referer=http://192.168.0.6:443/notebooks/Untitled1.ipynb?kernel_name=ifricas
WARNING:
Couldn't re-execute SBCL with proper personality flags (/proc isn't
mounted? setuid?)
Trying to continue anyway.
[I 22:26:47.788 NotebookApp] Kernel started:
a9214c6c-f9b8-4c9a-8f24-24857fd5c998
/root/.local/share/jupyter/runtime/kernel-a9214c6c-f9b8-4c9a-8f24-24857fd5c998.jsonopenServer
result -2
                       FriCAS Computer Algebra System
                         Version: FriCAS 2016-01-24
                   Timestamp: Sat May 14 00:48:11 UTC 2016
-----------------------------------------------------------------------------
   Issue )copyright to view copyright notices.
   Issue )summary for a summary of useful system commands.
   Issue )quit to leave FriCAS and return to shell.
-----------------------------------------------------------------------------

Value = "FriCAS 2016-01-24 compiled at Sat May 14 00:48:11 UTC 2016"

iSPAD V0.9.7 :: 06-DEC-2015, Jupyter kernel based on
cl-jupyter: an enhanced interactive Common Lisp REPL
(Version 0.7 - Jupyter protocol v.5.0)
--> (C) 2014-2015 Frederic Peschanski

[Kernel] Entering mainloop ...
[Kernel] Entering mainloop ...
[Shell] loop started
[Recv]: issue with UTF-8 decoding
[W 22:26:57.833 NotebookApp] Timeout waiting for kernel_info reply from
a9214c6c-f9b8-4c9a-8f24-24857fd5c998
[W 22:26:58.083 NotebookApp] 404 GET
/static/components/codemirror/mode/spad/spad.js?v=20160514222628
(192.168.0.4) 8.30ms
referer=http://192.168.0.6:443/notebooks/Untitled1.ipynb?kernel_name=ifricas
[I 22:28:00.200 NotebookApp] Saving file at /nb-xenial.ipynb



-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To post to this group, send email to fricas-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to