robert-dodier / maxima-jupyter

A Maxima kernel for Jupyter, based on CL-Jupyter (Common Lisp kernel)
Other
185 stars 31 forks source link

installation: Maxima encountered lisp error invalid number of arguments: 5 #113

Closed cameronraysmith closed 2 years ago

cameronraysmith commented 2 years ago

I have been installing maxima-jupyter in a docker container with the following procedure

maxima-jupyter installation procedure ```sh ## install maxima jupyter kernel RUN git clone https://github.com/robert-dodier/maxima-jupyter.git ${HOME}/maxima-jupyter WORKDIR ${HOME}/maxima-jupyter RUN export PYTHON_SITE=$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])') && \ mkdir -p ${PYTHON_SITE}/notebook/static/components/codemirror/mode/maxima/ && \ cp maxima.js ${PYTHON_SITE}/notebook/static/components/codemirror/mode/maxima/ && \ patch ${PYTHON_SITE}/notebook/static/components/codemirror/mode/meta.js codemirror-mode-meta-patch # && \ # cp maxima_lexer.py ${PYTHON_SITE}/pygments/lexers/ && \ # patch ${PYTHON_SITE}/pygments/lexers/_mapping.py pygments-mapping-patch RUN curl -kLO https://beta.quicklisp.org/quicklisp.lisp && \ sbcl --non-interactive --load quicklisp.lisp --load docker-install-quicklisp.lisp && \ maxima --batch-string="load(\"load-maxima-jupyter.lisp\");jupyter_install();" ```

Underlying dependencies derive from the archlinux package repositories

#9 6.961  maxima-5.46.0-3-x86_64 downloading...
#9 6.961  maxima-sbcl-5.46.0-3-x86_64 downloading...
#9 6.961  sbcl-2.2.5-1-x86_64 downloading...

In my most recent run, 07/13/2022, I received the following log/error

maxima-jupyter installation log ```sh #17 [12/42] RUN git clone https://github.com/robert-dodier/maxima-jupyter.git /home/jovyan/maxima-jupyter #17 0.582 Cloning into '/home/jovyan/maxima-jupyter'... #17 DONE 1.1s #18 [13/42] WORKDIR /home/jovyan/maxima-jupyter #18 DONE 0.0s #19 [14/42] RUN export PYTHON_SITE=$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])') && mkdir -p ${PYTHON_SITE}/notebook/static/components/codemirror/mode/maxima/ && cp maxima.js ${PYTHON_SITE}/notebook/static/components/codemirror/mode/maxima/ && patch ${PYTHON_SITE}/notebook/static/components/codemirror/mode/meta.js codemirror-mode-meta-patch #0 0.127 patching file /usr/lib/python3.10/site-packages/notebook/static/components/codemirror/mode/meta.js #19 DONE 0.1s #20 [15/42] RUN curl -kLO https://beta.quicklisp.org/quicklisp.lisp && sbcl --non-interactive --load quicklisp.lisp --load docker-install-quicklisp.lisp && maxima --batch-string="load("load-maxima-jupyter.lisp");jupyter_install();" #0 0.060 % Total % Received % Xferd Average Speed Time Time Time Current #0 0.070 Dload Upload Total Spent Left Speed #0 0.075 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 57144 100 57144 0 0 168k 0 --:--:-- --:--:-- --:--:-- 169k #20 0.395 This is SBCL 2.2.5, an implementation of ANSI Common Lisp. #20 0.395 More information about SBCL is available at . #20 0.395 #20 0.395 SBCL is free software, provided as is, with absolutely no warranty. #20 0.395 It is mostly in the public domain; some portions are provided under #20 0.395 BSD-style licenses. See the CREDITS and COPYING files in the #20 0.395 distribution for more information. #20 0.768 #20 0.768 ==== quicklisp quickstart 2015-01-28 loaded ==== #20 0.768 #20 0.768 To continue with installation, evaluate: (quicklisp-quickstart:install) #20 0.768 #20 0.768 For installation options, evaluate: (quicklisp-quickstart:help) #20 0.768 #20 1.112 ; Fetching # #20 1.112 ; 0.82KB #20 1.118 ================================================== #20 1.118 839 bytes in 0.00 seconds (0.00KB/sec) #20 1.308 ; Fetching # #20 1.308 ; 260.00KB #20 1.325 ================================================== #20 1.325 266,240 bytes in 0.02 seconds (16250.00KB/sec) #20 1.631 ; Fetching # #20 1.631 ; 4.94KB #20 1.631 ================================================== #20 1.631 5,057 bytes in 0.00 seconds (1234.62KB/sec) #20 1.873 ; Fetching # #20 1.873 ; 628.18KB #20 1.920 ================================================== #20 1.920 643,253 bytes in 0.04 seconds (14276.42KB/sec) #20 3.546 ; Fetching # #20 3.546 ; 0.40KB #20 3.549 ================================================== #20 3.549 408 bytes in 0.00 seconds (0.00KB/sec) #20 3.550 Installing dist "quicklisp" version "2022-07-08". #20 3.727 ; Fetching # #20 3.727 ; 517.76KB #20 3.774 ================================================== #20 3.774 530,186 bytes in 0.04 seconds (11767.27KB/sec) #20 3.807 ; Fetching # #20 3.807 ; 393.89KB #20 3.848 ================================================== #20 3.848 403,346 bytes in 0.04 seconds (9847.31KB/sec) #20 3.895 #20 3.895 ==== quicklisp installed ==== #20 3.895 #20 3.895 To load a system, use: (ql:quickload "system-name") #20 3.895 #20 3.895 To find systems, use: (ql:system-apropos "term") #20 3.895 #20 3.895 To load Quicklisp every time you start Lisp, use: (ql:add-to-init-file) #20 3.895 #20 3.895 For more information, see http://www.quicklisp.org/beta/ #20 3.895 #20 3.896 I will append the following lines to #P"/home/jovyan/.sbclrc": #20 3.896 #20 3.896 ;;; The following lines added by ql:add-to-init-file: #20 3.896 #-quicklisp #20 3.896 (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" #20 3.896 (user-homedir-pathname)))) #20 3.896 (when (probe-file quicklisp-init) #20 3.896 (load quicklisp-init))) #20 3.896 #20 4.380 WARNING: Maxima is unable to set up the help system. #20 4.380 (Details: CL-INFO::LOAD-PRIMARY-INDEX: Couldn't load #20 4.380 "/usr/share/info/./maxima-index.lisp": #20 4.380 file does not exist.) #20 4.380 #20 4.382 Maxima 5.46.0 https://maxima.sourceforge.io #20 4.382 using Lisp SBCL 2.2.5 #20 4.382 Distributed under the GNU Public License. See the file COPYING. #20 4.382 Dedicated to the memory of William Schelter. #20 4.383 The function bug_report() provides bug reporting information. #20 4.400 (%i1) load("load-maxima-jupyter.lisp") #20 5.139 To load "maxima-jupyter": #20 5.139 Load 1 ASDF system: #20 5.139 maxima-jupyter #20 5.139 ; Loading "maxima-jupyter" #20 5.140 To load "alexandria": #20 5.140 Load 1 ASDF system: #20 5.140 asdf #20 5.140 Install 1 Quicklisp release: #20 5.140 alexandria #20 5.479 ; Fetching # #20 5.479 ; 55.51KB #20 5.493 ================================================== #20 5.493 56,838 bytes in 0.00 seconds (0.00KB/sec) #20 5.502 ; Loading "alexandria" #20 5.510 [package alexandria].............................. #20 6.092 [package alexandria-2]. #20 6.118 To load "maxima-jupyter": #20 6.118 Load 1 ASDF system: #20 6.118 maxima-jupyter #20 6.118 ; Loading "maxima-jupyter" #20 6.152 To load "common-lisp-jupyter": #20 6.152 Load 3 ASDF systems: #20 6.152 alexandria asdf uiop #20 6.152 Install 25 Quicklisp releases: #20 6.153 acclimation babel bordeaux-threads cffi cl-base64 #20 6.153 cl-indentify closer-mop common-lisp-jupyter dissect #20 6.153 documentation-utils eclector ironclad language-codes #20 6.153 multilang-documentation puri pzmq shasht static-vectors #20 6.153 system-locale trivial-do trivial-features #20 6.153 trivial-garbage trivial-gray-streams trivial-indent #20 6.153 trivial-mimes #20 6.400 ; Fetching # #20 6.400 ; 21.27KB #20 6.401 ================================================== #20 6.401 21,784 bytes in 0.00 seconds (0.00KB/sec) #20 6.435 ; Fetching # #20 6.435 ; 10.74KB #20 6.435 ================================================== #20 6.435 10,996 bytes in 0.00 seconds (2684.57KB/sec) #20 6.588 ; Fetching # #20 6.588 ; 6.82KB #20 6.588 ================================================== #20 6.588 6,982 bytes in 0.00 seconds (0.00KB/sec) #20 6.673 ; Fetching # #20 6.673 ; 2.59KB #20 6.673 ================================================== #20 6.673 2,650 bytes in 0.00 seconds (0.00KB/sec) #20 6.793 ; Fetching # #20 6.793 ; 44.50KB #20 6.805 ================================================== #20 6.805 45,571 bytes in 0.01 seconds (5562.87KB/sec) #20 7.026 ; Fetching # #20 7.026 ; 255.97KB #20 7.060 ================================================== #20 7.060 262,118 bytes in 0.04 seconds (7110.41KB/sec) #20 7.949 ; Fetching # #20 7.949 ; 21.44KB #20 7.950 ================================================== #20 7.950 21,958 bytes in 0.00 seconds (0.00KB/sec) #20 8.154 ; Fetching # #20 8.154 ; 28.49KB #20 8.155 ================================================== #20 8.155 29,178 bytes in 0.00 seconds (0.00KB/sec) #20 8.525 ; Fetching # #20 8.525 ; 6.10KB #20 8.526 ================================================== #20 8.526 6,250 bytes in 0.00 seconds (0.00KB/sec) #20 8.613 ; Fetching # #20 8.613 ; 67.18KB #20 8.625 ================================================== #20 8.625 68,791 bytes in 0.01 seconds (5597.76KB/sec) #20 8.662 ; Fetching # #20 8.662 ; 3.48KB #20 8.663 ================================================== #20 8.663 3,564 bytes in 0.00 seconds (0.00KB/sec) #20 8.848 ; Fetching # #20 8.848 ; 8.70KB #20 8.849 ================================================== #20 8.849 8,913 bytes in 0.00 seconds (0.00KB/sec) #20 8.962 ; Fetching # #20 8.963 ; 7.19KB #20 8.963 ================================================== #20 8.963 7,361 bytes in 0.00 seconds (0.00KB/sec) #20 9.020 ; Fetching # #20 9.021 ; 1500.88KB #20 9.083 ================================================== #20 9.083 1,536,896 bytes in 0.06 seconds (25014.58KB/sec) #20 9.258 ; Fetching # #20 9.258 ; 5.06KB #20 9.258 ================================================== #20 9.258 5,184 bytes in 0.00 seconds (0.00KB/sec) #20 9.289 ; Fetching # #20 9.289 ; 567.80KB #20 9.335 ================================================== #20 9.335 581,430 bytes in 0.05 seconds (11829.22KB/sec) #20 9.467 ; Fetching # #20 9.467 ; 28.22KB #20 9.472 ================================================== #20 9.472 28,899 bytes in 0.00 seconds (7055.42KB/sec) #20 9.506 ; Fetching # #20 9.506 ; 23.22KB #20 9.507 ================================================== #20 9.507 23,776 bytes in 0.00 seconds (0.00KB/sec) #20 9.711 ; Fetching # #20 9.711 ; 7.86KB #20 9.711 ================================================== #20 9.711 8,046 bytes in 0.00 seconds (0.00KB/sec) #20 9.802 ; Fetching # #20 9.802 ; 10.31KB #20 9.803 ================================================== #20 9.803 10,559 bytes in 0.00 seconds (0.00KB/sec) #20 9.838 ; Fetching # #20 9.838 ; 10.13KB #20 9.838 ================================================== #20 9.838 10,373 bytes in 0.00 seconds (0.00KB/sec) #20 9.869 ; Fetching # #20 9.869 ; 2958.85KB #20 9.952 ================================================== #20 9.952 3,029,861 bytes in 0.08 seconds (35224.39KB/sec) #20 10.16 ; Fetching # #20 10.16 ; 11.11KB #20 10.16 ================================================== #20 10.16 11,377 bytes in 0.00 seconds (0.00KB/sec) #20 10.22 ; Fetching # #20 10.22 ; 266.93KB #20 10.25 ================================================== #20 10.25 273,336 bytes in 0.04 seconds (7414.71KB/sec) #20 10.65 ; Fetching # #20 10.65 ; 363.38KB #20 10.66 ================================================== #20 10.66 372,103 bytes in 0.02 seconds (22711.36KB/sec) #20 10.70 ; Loading "common-lisp-jupyter" #20 10.75 .................................................. #20 10.80 [package babel-encodings]......................... #20 10.80 [package babel]................................... #20 12.20 .................................................. #20 13.38 [package cffi-sys]................................ #20 13.50 [package cffi].................................... #20 14.27 .................................................. #20 15.74 [package cffi-features]........................... #20 16.14 [package bordeaux-threads]........................ #20 16.28 [package cl-base64]............................... #20 16.76 [package impl-specific-gray]...................... #20 16.76 [package trivial-gray-streams].................... #20 16.79 [package indentify]............................... #20 16.90 [package closer-mop].............................. #20 16.91 [package closer-common-lisp]...................... #20 16.93 [package closer-common-lisp-user]................. #20 17.02 [package dissect]................................. #20 17.14 [package acclimation]............................. #20 17.30 [package eclector.base]........................... #20 17.34 [package eclector.readtable]...................... #20 17.37 [package eclector.readtable.simple]............... #20 17.45 [package eclector.reader]......................... #20 18.19 [package eclector.parse-result]................... #20 18.27 [package ironclad]................................ #20 18.42 [package ironclad-vm]............................. #20 19.43 .................................................. #20 21.66 .................................................. #20 25.15 .................................................. #20 28.93 .................................................. #20 34.38 .................................................. #20 38.88 .................................................. #20 40.22 .................................................. #20 43.82 .................................................. #20 49.93 .................................................. #20 53.73 .................................................. #20 56.38 .................................................. #20 64.23 .................................................. #20 65.36 [package trivial-indent].......................... #20 65.38 [package documentation-utils]..................... #20 65.43 [package language-codes].......................... #20 65.49 [package system-locale]........................... #20 65.52 [package multilang-documentation]................. #20 65.59 [package pzmq]; cc -o /home/jovyan/.cache/common-lisp/sbcl-2.2.5-linux-x64/home/jovyan/quicklisp/dists/quicklisp/software/pzmq-20210531-git/grovel__grovel-tmpPHMA69WA.o -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wunused-parameter -fno-omit-frame-pointer -momit-leaf-frame-pointer -fPIC -I/home/jovyan/quicklisp/dists/quicklisp/software/cffi_0.24.1/ /home/jovyan/.cache/common-lisp/sbcl-2.2.5-linux-x64/home/jovyan/quicklisp/dists/quicklisp/software/pzmq-20210531-git/grovel__grovel.c #20 65.59 ./home/jovyan/.cache/common-lisp/sbcl-2.2.5-linux-x64/home/jovyan/quicklisp/dists/quicklisp/software/pzmq-20210531-git/grovel__grovel.c: In function ‘main’: #20 65.64 /home/jovyan/.cache/common-lisp/sbcl-2.2.5-linux-x64/home/jovyan/quicklisp/dists/quicklisp/software/pzmq-20210531-git/grovel__grovel.c:11:7: warning: unused variable ‘autotype_tmp’ [-Wunused-variable] #20 65.64 11 | int autotype_tmp; #20 65.64 | ^~~~~~~~~~~~ #20 65.66 ; cc -o /home/jovyan/.cache/common-lisp/sbcl-2.2.5-linux-x64/home/jovyan/quicklisp/dists/quicklisp/software/pzmq-20210531-git/grovel__grovel-tmpXFTEJBZU -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -g -Wl,--export-dynamic /home/jovyan/.cache/common-lisp/sbcl-2.2.5-linux-x64/home/jovyan/quicklisp/dists/quicklisp/software/pzmq-20210531-git/grovel__grovel.o #20 65.95 ; /home/jovyan/.cache/common-lisp/sbcl-2.2.5-linux-x64/home/jovyan/quicklisp/dists/quicklisp/software/pzmq-20210531-git/grovel__grovel /home/jovyan/.cache/common-lisp/sbcl-2.2.5-linux-x64/home/jovyan/quicklisp/dists/quicklisp/software/pzmq-20210531-git/grovel__grovel.grovel-tmp.lisp #20 65.98 ................................... #20 66.30 [package puri].................................... #20 66.64 [package static-vectors].......................... #20 66.69 [package trivial-do].............................. #20 66.72 [package trivial-garbage]......................... #20 66.73 [package trivial-mimes]........................... #20 66.75 [package shasht].................................. #20 66.93 [package jupyter]................................. #20 67.02 [package jupyter/markdown-formatter].............. #20 67.03 [package jupyter/widgets]......................... #20 67.03 [package jupyter/common-lisp]..................... #20 67.03 [package jupyter/convert]......................... #20 67.88 .................................. #20 69.02 To load "maxima-jupyter": #20 69.02 Load 1 ASDF system: #20 69.02 maxima-jupyter #20 69.02 ; Loading "maxima-jupyter" #20 69.13 To load "iterate": #20 69.13 Load 1 ASDF system: #20 69.13 asdf #20 69.13 Install 1 Quicklisp release: #20 69.13 iterate #20 69.23 ; Fetching # #20 69.23 ; 338.01KB #20 69.27 ================================================== #20 69.27 346,126 bytes in 0.04 seconds (9389.01KB/sec) #20 69.30 ; Loading "iterate" #20 69.35 [package iterate]......................... #20 70.11 To load "maxima-jupyter": #20 70.11 Load 1 ASDF system: #20 70.11 maxima-jupyter #20 70.11 ; Loading "maxima-jupyter" #20 70.21 [package maxima-jupyter].......... #20 70.53 (%o1) load-maxima-jupyter.lisp #20 70.53 (%i2) jupyter_install() #20 70.54 Creating directories. #20 70.54 Installing kernel spec file /home/jovyan/.local/share/jupyter/kernels/maxima/kernel.json #20 70.54 Maxima encountered a Lisp error: #20 70.54 #20 70.54 invalid number of arguments: 5 #20 70.54 #20 70.54 Automatically continuing. #20 70.54 To enable the Lisp debugger set *debugger-hook* to nil. #20 DONE 70.6s ```

Please let me know if this rings a bell. Apologies if I have missed something quite obvious. Many thanks.

efferre79 commented 2 years ago

maybe it is the same as #112

yitzchak commented 2 years ago

Yes, I'll take a look.

cameronraysmith commented 2 years ago

Apologies that this is essentially a duplicate of https://github.com/robert-dodier/maxima-jupyter/issues/112 . Reposted there https://github.com/robert-dodier/maxima-jupyter/issues/112#issuecomment-1184802253 .