From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 05 14:44:14 2021 Received: (at submit) by debbugs.gnu.org; 5 Feb 2021 19:44:14 +0000 Received: from localhost ([127.0.0.1]:44674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l871a-0004kd-0b for submit@debbugs.gnu.org; Fri, 05 Feb 2021 14:44:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:57894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l871Z-0004kW-Eo for submit@debbugs.gnu.org; Fri, 05 Feb 2021 14:44:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l871Z-0004kk-76 for bug-guix@gnu.org; Fri, 05 Feb 2021 14:44:13 -0500 Received: from minsky.hcoop.net ([104.248.1.95]:47382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l871X-00070t-Ao for bug-guix@gnu.org; Fri, 05 Feb 2021 14:44:12 -0500 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l871V-0000ia-8E for bug-guix@gnu.org; Fri, 05 Feb 2021 14:44:09 -0500 Date: Fri, 5 Feb 2021 14:44:08 -0500 (EST) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: bug-guix@gnu.org Subject: sbcl-common-lisp-jupyter does not install kernel.json Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="925712948-703139927-1612554249=:11419" Received-SPF: pass client-ip=104.248.1.95; envelope-from=jackhill@jackhill.us; helo=minsky.hcoop.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --925712948-703139927-1612554249=:11419 Content-Type: text/plain; format=flowed; charset=UTF-8 Content-Transfer-Encoding: 8BIT Hi Guix, The sbcl-common-lisp-jupyter package does not install a kernel.json file. That's the file that tells Jupyter about the kernel and how to run it, and should be installed in /share/jupyter/kernels//kernel.json. sbcl-common-lisp-jupyter doesn't come with a kernel.json file to install, but it can generate one with the following command line: `sbcl --eval '(require "asdf")' --eval '(require :common-lisp-jupyter)' --eval '(cl-jupyter:install)' --eval '(exit)'` (please pardon any awkwardness with the sbcl command line, I'm new to Common Lisp, and just wanted to play around with it in Jupyter) That produces the following kernel.json in $HOME/.local/… (I've pretty printed it for clarity here: ``` { "interrupt_method": "message", "language": "common-lisp", "display_name": "Common Lisp", "argv": [ "sbcl", "--eval", "(ql:quickload :common-lisp-jupyter)", "--eval", "(jupyter:run-kernel 'common-lisp-jupyter:kernel #\"{connection_file}\")" ] } ``` Unfortunately that won't work out of the box, as we don't have quicklisp, but changing it to: ``` { "interrupt_method": "message", "language": "common-lisp", "display_name": "Common Lisp", "argv": [ "sbcl", "--eval", "(require \"asdf\")", "--eval", "(require :common-lisp-jupyter)", "--eval", "(jupyter:run-kernel 'common-lisp-jupyter:kernel #\"{connection_file}\")" ] } ``` allows Jupyter to run the kernel. We would of course need to also substitute the full store path for sbcl as well. Is it worth having sbcl-common-lisp-jupyter generate the kernel.json, and then make many changes to it? Perhaps it would be better to just write out the correct definition of the file from Guix. A final note is that the other Common Lisp implementation, like ecl-common-lisp-jupyter, also have this problem because they are created as transformation of the sbcl package. I'm not sure if the kernel.json is portable across the implementation or in general how to best to accomplish this change for our Common Lisp packages. Best, Jack --925712948-703139927-1612554249=:11419-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 18 12:12:22 2021 Received: (at 46333) by debbugs.gnu.org; 18 May 2021 16:12:22 +0000 Received: from localhost ([127.0.0.1]:57053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj2KU-0008Of-KL for submit@debbugs.gnu.org; Tue, 18 May 2021 12:12:22 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:47060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj2KT-0008OS-6c for 46333@debbugs.gnu.org; Tue, 18 May 2021 12:12:21 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lj2KO-0006aH-0z; Tue, 18 May 2021 12:12:16 -0400 Date: Tue, 18 May 2021 12:12:15 -0400 (EDT) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: Sharlatan Hellseher , 46333@debbugs.gnu.org Subject: sbcl-common-lisp-jupyter does not install kernel.json Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46333 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Sharlatan, Thanks for your recent work updated sbcl-common-lisp-jupyter. I was wondering if you had any thoughts on the best way to install the kernel.json file [0]. The last time I looked at it, I wasn't sure what the best solution would be. Do you have any ideas? [0] https://issues.guix.gnu.org/46333 Best, Jack From debbugs-submit-bounces@debbugs.gnu.org Tue May 18 12:58:15 2021 Received: (at 46333) by debbugs.gnu.org; 18 May 2021 16:58:15 +0000 Received: from localhost ([127.0.0.1]:57178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj32t-0007iO-9D for submit@debbugs.gnu.org; Tue, 18 May 2021 12:58:15 -0400 Received: from mout01.posteo.de ([185.67.36.65]:34037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj32q-0007iB-Io for 46333@debbugs.gnu.org; Tue, 18 May 2021 12:58:13 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 44209240029 for <46333@debbugs.gnu.org>; Tue, 18 May 2021 18:58:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1621357086; bh=6RZabTWk/wW5fJEj2jul+D/ApA/NAjMdOj/0SQBlnIU=; h=From:To:Cc:Subject:Date:From; b=ien/hsP2f3V+W5hKQ4X88gz79iaIlle8C+DCzSnAeRigU8nhWDT50363Cf7qJw9LF JUrsxMDD7Imz8tpx27XgK49vKFus5gFt3fh2cXiM37ZB5FZXsSrQvQP8kQuyDvUb+s 6jAJbSf3XLwNnfoK9R3MzddbGHb9ZRTHoe0ax6yiE1mY2FbAiFJ3fdCoFWMBi8pQGg pMTYeWSjQzR+/Rh/dzBp29Y1OHBYaHO/mE/1PRy3UwVeHoC97To7921ttIKLvCdzCV TqPbB1qHtPeY19H1RTyC/Pecshz8sqVbIVF2kN0amA0BdXtHH+J8RXYyWynupldUF8 0qTPCzrminEAA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fl2Hw6lWGz6tmV; Tue, 18 May 2021 18:58:04 +0200 (CEST) References: From: Guillaume Le Vaillant To: Jack Hill Subject: Re: bug#46333: sbcl-common-lisp-jupyter does not install kernel.json In-reply-to: Date: Tue, 18 May 2021 16:58:02 +0000 Message-ID: <87lf8cugh1.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46333 Cc: 46333@debbugs.gnu.org, Sharlatan Hellseher X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Hi Jack, I guess it will be easier to just add a phase writing the "kernel.json" file in the right place. In this build phase, to know if the package is being built for SBCL or ECL, the '(%lisp-type)' function that will return "sbcl" or "ecl" can be used. There's an example in the sbcl-trivial-backtrace package. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYKPyGg8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j9StAD/Ujy+UgYSmTfbHUO8Ble1isNgDXq2xI2Jf2tH hjtISBIA/Rq8fH/FB4QaqzSjKvpSKfGFv7I2ZHdS3cgrrosWGsgE =rwnn -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 19 18:23:32 2021 Received: (at 46333) by debbugs.gnu.org; 19 May 2021 22:23:32 +0000 Received: from localhost ([127.0.0.1]:60881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljUbE-0000w0-Db for submit@debbugs.gnu.org; Wed, 19 May 2021 18:23:32 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:35502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljUbC-0000vn-JZ for 46333@debbugs.gnu.org; Wed, 19 May 2021 18:23:31 -0400 Received: by mail-wr1-f52.google.com with SMTP id a4so15622580wrr.2 for <46333@debbugs.gnu.org>; Wed, 19 May 2021 15:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ipusqqA7YnU+18yggifs/jiyple9CeS9E7OSLtN7mYk=; b=pgrg/lYXiiNnfhJ5SBnVnXP/uBzM+xpP8mOe9hB+vuYqgPUL6pHED3RgnEQpLrF9BD XAUzfkALaDoUksQ8RUjOtGm9pfHq6BJG45K5JcDglbA6Zs8pO0TUsqB8Zr4TreLF2lQ3 7UstsmmDuEEibEbeg2bDv0h0LPr/H5dlbgrBAC/MqnKyH/cGDPqKaF7WYJk3j8M7OoCN jquC3bjpahoU2WxGLmc+7NWfbXR0RuuLpcq0Q6xDB4sg65+OU7cV2r4Jdpp5cq/xVwV8 phvj0BEhO6+cAIHpqPB8U5H0lQk25HsZU7gLqr7rs88cSlp9rkbZTgWKMktmiEW3GIjo hLgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ipusqqA7YnU+18yggifs/jiyple9CeS9E7OSLtN7mYk=; b=slaCX8PI0HY/RhLwgFKaeJkkH2JUHHq2C2u5WN5fd1ip1WKGnpnPXuzbXyd07EGRpm LKmZa7W6BpghDMj1gEClxdm6DG5zjZ5Hrvzjz4aE9r0cP0QENWFcxCFF/Z7SNvrY35KB baFmbeO3a8LMi3mrllqC/NjT6WwgNVXjBx7/R0Afk7X0VGjTEXN6WLMOARIY1K6Blha0 p7DI3FMvoMUp1mI7GicOait9hX01hLANmrvV14RMvjl4TaPnwZ5GjQie4T2pSDaAdziF 9bsKeu9sJKI6GIjhmrQKJrvsZp0oA5ih4LpArj6ZzKwjzRQ6lMA6j8+f7S+Y4NjG95Sw 6J8g== X-Gm-Message-State: AOAM533w41nNbioItSgDlsOkecWRhkXOc0+75aqn67EdCmWiWvxkbAW/ RIvX+Tjce5XGIyhglOUZvlSVI53ZbbbT/Wxv/WA= X-Google-Smtp-Source: ABdhPJw51cHk4YYfo6DhGA06aPESLoITsVfTzmoM8LtgaSMLLIB+DGwhnN+G3xKQmOtT12KJeu+Y85ewCFn7NBCaARg= X-Received: by 2002:adf:e58c:: with SMTP id l12mr1079704wrm.133.1621463004665; Wed, 19 May 2021 15:23:24 -0700 (PDT) MIME-Version: 1.0 References: <87lf8cugh1.fsf@kitej> In-Reply-To: <87lf8cugh1.fsf@kitej> From: Sharlatan Hellseher Date: Wed, 19 May 2021 22:23:14 +0000 Message-ID: Subject: Re: bug#46333: sbcl-common-lisp-jupyter does not install kernel.json To: Guillaume Le Vaillant Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46333 Cc: 46333@debbugs.gnu.org, Jack Hill X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, I've checked the r-irkernel and it's coping existing kernelspec , which is not useful in this case. As Guillaume mentioned we could tweak it before installation phase by using cl-jupyter:install, so here is my draft: --8<---------------cut here---------------start------------->8--- (arguments `(#:phases (modify-phases %standard-phases (add-before 'install 'generate-kernelspec (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (kernelspec (string-append out "/share/cl-jupyter/kernelspec"))) (mkdir-p kernelspec) (invoke "sbcl" "--eval" "\"(require :asdf)\"" "--eval" "\"(require :common-lisp-jupyter)\"" "--eval" (string-append "\"(cl-jupyter:install" ":bin-path" (string-append (assoc-ref %build-inputs "sbcl") "/bin/sbcl") ":prefix" out ")\"") "--eval" "\"(exit)\"")) #t)) (add-after 'install 'install-kernelspec (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (kernelspec (string-append out "/share/cl-jupyter/kernelspec"))) (invoke "jupyter" "kernelspec" "install" "--name" "cl-jupyter" "--prefix" out kernelspec) #t)))))) --8<---------------cut here---------------end--------------->8--- But there could be a potential blocking issue with :prefix key https://github.com/yitzchak/common-lisp-jupyter/issues/78 On Tue, 18 May 2021 at 16:58, Guillaume Le Vaillant wrote: > > Hi Jack, > > I guess it will be easier to just add a phase writing the "kernel.json" > file in the right place. In this build phase, to know if the package is > being built for SBCL or ECL, the '(%lisp-type)' function that will > return "sbcl" or "ecl" can be used. There's an example in the > sbcl-trivial-backtrace package. -- =E2=80=A6 =D0=BD=D0=B0=D1=88 =D1=80=D0=B0=D0=B7=D1=83=D0=BC - =D0=BF=D1=80= =D0=B5=D0=B2=D0=BE=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=B0=D1=8F =D0=BE=D0=B1= =D1=8A=D1=8F=D1=81=D0=BD=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=B0=D1=8F = =D0=BC=D0=B0=D1=88=D0=B8=D0=BD=D0=B0 =D0=BA=D0=BE=D1=82=D0=BE=D1=80=D0=B0= =D1=8F =D1=81=D0=BF=D0=BE=D1=81=D0=BE=D0=B1=D0=BD=D0=B0 =D0=BD=D0=B0=D0=B9=D1=82=D0=B8 =D1=81=D0=BC=D1=8B=D1=81=D0=BB =D0=BF=D0=BE= =D1=87=D1=82=D0=B8 =D0=B2 =D1=87=D0=B5=D0=BC =D1=83=D0=B3=D0=BE=D0=B4=D0=BD= =D0=BE, =D0=B8=D1=81=D1=82=D0=BE=D0=BB=D0=BA=D0=BE=D0=B2=D0=B0=D1=82=D1=8C = =D0=BB=D1=8E=D0=B1=D0=BE=D0=B9 =D1=84=D0=B5=D0=BD=D0=BE=D0=BC=D0=B5=D0=BD, = =D0=BD=D0=BE =D1=81=D0=BE=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD=D0=BD=D0=BE =D0=BD=D0=B5 = =D0=B2 =D1=81=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD=D0=B8=D0=B8 =D0=BF=D1=80= =D0=B8=D0=BD=D1=8F=D1=82=D1=8C =D0=BC=D1=8B=D1=81=D0=BB=D1=8C =D0=BE =D0=BD= =D0=B5=D0=BF=D1=80=D0=B5=D0=B4=D1=81=D0=BA=D0=B0=D0=B7=D1=83=D0=B5=D0=BC=D0= =BE=D1=81=D1=82=D0=B8. From debbugs-submit-bounces@debbugs.gnu.org Mon May 24 17:28:26 2021 Received: (at 46333) by debbugs.gnu.org; 24 May 2021 21:28:27 +0000 Received: from localhost ([127.0.0.1]:44041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llI7e-0000ux-AR for submit@debbugs.gnu.org; Mon, 24 May 2021 17:28:26 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:34331) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llI7b-0000uj-3Z for 46333@debbugs.gnu.org; Mon, 24 May 2021 17:28:24 -0400 Received: by mail-wr1-f44.google.com with SMTP id r12so29937399wrp.1 for <46333@debbugs.gnu.org>; Mon, 24 May 2021 14:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hXozz4yGJPDah0ZtCiL5qV+o78SVaoq+eC05u0ydWmU=; b=ODDOXEYJbIbbGrqQpKYkn7KlR1kXLH6X0IdQMPa7RCFQwCSuoGUQQAcD82pHESFuz7 qnh/lxu/3IvLgjYAOU+yvAdFXBpL6icgrULn19ePWCV1rHRvzAgSmG/vpf1+CfktMD+p Yy6i4VRlEco0GoCkvEBuJZ0bddYROIEeXjrJEOtwp0QWofc5VQ7DBIaUifUtKDJpPM13 5PvXDb7dkKMnHh38xggYr4u9xzIWo9Ui26ATT76lnFm1WPOZHV6MyyLxQZYk+XWX0w1R BWvYBI7dvqJ6yCZNMmuKxHnv/xLtMN2mc5r0i5k0tSRFg4Owh/SLzgTdAEsHTZnVXTyf 6NWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hXozz4yGJPDah0ZtCiL5qV+o78SVaoq+eC05u0ydWmU=; b=CdRE82ka+keE02nezhsVyV01ULqbr6zN9XxgIpYO1mXgc+tH0YnaDPm/wPIgjjt2BU MLRG9S2ylAjMdEO2fqyS4LDoyCOGX/oxrYnbiU3YjQHz4sMXub6tQI1gik4Lxajb3Qrg A3xHXdXC91hMsfOac18hJbnQqd3p9Tqq90Up24hGsNvEIvv0C5zqhf6H4xIpYYu1v/ad Hi89AIWdLVPPaiJVZTfKEq3xko5NHiLnPC3hWkFSji0NjADcsRtwjVF5LwgPNBU5O8p2 4O8AO8AF98QxfBcLUiGWfhysCMlLWgzRRBTbtw0I99+Vgrs3JdKeWM+xIZbQMil7qqQ1 pi3w== X-Gm-Message-State: AOAM531wfpe43Y08cIuJsr+fB4cblOmaROlOmT+eAdoqLJufwbYOpXfX 0igqTSu/zD/o1j2edVo8tU2/cf6altcoRQmqsZw= X-Google-Smtp-Source: ABdhPJyfLXGGBCdTNYlbGrp0EFBSOps6/P2sCBdtMzfuj5PfL6yNyjm1Jsfkpzpv8RUCTnbNdkmYZev0VvZE5vVU9oE= X-Received: by 2002:adf:e48b:: with SMTP id i11mr24229144wrm.228.1621891697016; Mon, 24 May 2021 14:28:17 -0700 (PDT) MIME-Version: 1.0 References: <87lf8cugh1.fsf@kitej> In-Reply-To: From: Sharlatan Hellseher Date: Mon, 24 May 2021 21:28:06 +0000 Message-ID: Subject: Re: bug#46333: sbcl-common-lisp-jupyter does not install kernel.json To: Guillaume Le Vaillant Content-Type: multipart/mixed; boundary="0000000000007726ed05c31a161f" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46333 Cc: 46333@debbugs.gnu.org, Jack Hill X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000007726ed05c31a161f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I played with cl-jupyter:install but it heavily depends on Quicklisp but what basically does - generates simple JSON with CL implementation https://github.com/yitzchak/common-lisp-jupyter/issues/78 First I tried to do the same during build phase by evaluationg arbitrary Lisp but could not manged it to work. Then after checking the kernel.json I just simply formated it with right %lispt-type path and copied with the same evaluation as R Jupyter package, but I've got some error during coping into Jupyter directory: --8<---------------cut here---------------start------------->8--- phase `generate-kernelspec' succeeded after 0.0 seconds starting phase `install-kernelspec' command "jupyter" "kernelspec" "install" "--name" "cl-jupyter" "--prefix" "/gnu/store/xjqxskiqjlzirlg478gnlp7x6w2jcz63-sbcl-common-lisp-ju= pyter-0.1.0-4.ba9f0e7" "/gnu/store/xjqxskiqjlzirlg478gnlp7x6w2jcz63-sbcl-common-lisp-jupyter-0.1.0= -4.ba9f0e7/share/cl-jupyter/kernelspec" failed with status 127 builder for `/gnu/store/azl65q1bl2pv920fmgw6d8k0brsx6hdg-sbcl-common-lisp-j= upyter-0.1.0-4.ba9f0e7.drv' failed with exit code 1 build of /gnu/store/azl65q1bl2pv920fmgw6d8k0brsx6hdg-sbcl-common-lisp-jupyt= er-0.1.0-4.ba9f0e7.drv failed View build log at '/var/log/guix/drvs/az/l65q1bl2pv920fmgw6d8k0brsx6hdg-sbcl-common-lisp-jupy= ter-0.1.0-4.ba9f0e7.drv.bz2'. guix build: error: build of `/gnu/store/azl65q1bl2pv920fmgw6d8k0brsx6hdg-sbcl-common-lisp-jupyter-0.1.0= -4.ba9f0e7.drv' failed (guix/linux-gnu)[sharlatan@guxtil ~/Projects/prj/guix-channel]$: jupyter kernelspec install --name cl-jupyter --prefix /gnu/store/xjqxskiqjlzirlg478gnlp7x6w2jcz63-sbcl-common-lisp-jupyter-0.1.0-= 4.ba9f0e7 /gnu/store/xjqxskiqjlzirlg478gnlp7x6w2jcz63-sbcl-common-lisp-jupyter-0.1.0-= 4.ba9f0e7/share/cl-jupyter/kernelspec Traceback (most recent call last): File "/gnu/store/30ydqwp1xccqzn5s4rcq4clpqzcaz3p1-python-jupyter-client-6= .1.12/bin/.jupyter-kernelspec-real", line 11, in load_entry_point('jupyter-client=3D=3D6.1.12', 'console_scripts', 'jupyter-kernelspec')() File "/gnu/store/ih0jscm3ilqn2r33ms8014ap26jhjfqa-python-traitlets-4.3.3/= lib/python3.8/site-packages/traitlets/config/application.py", line 663, in launch_instance app.initialize(argv) File "", line 2, in initialize File "/gnu/store/ih0jscm3ilqn2r33ms8014ap26jhjfqa-python-traitlets-4.3.3/= lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/gnu/store/ih0jscm3ilqn2r33ms8014ap26jhjfqa-python-traitlets-4.3.3/= lib/python3.8/site-packages/traitlets/config/application.py", line 297, in initialize self.parse_command_line(argv) File "", line 2, in parse_command_line File "/gnu/store/ih0jscm3ilqn2r33ms8014ap26jhjfqa-python-traitlets-4.3.3/= lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/gnu/store/ih0jscm3ilqn2r33ms8014ap26jhjfqa-python-traitlets-4.3.3/= lib/python3.8/site-packages/traitlets/config/application.py", line 515, in parse_command_line return self.initialize_subcommand(subc, subargv) File "", line 2, in initialize_subcommand File "/gnu/store/ih0jscm3ilqn2r33ms8014ap26jhjfqa-python-traitlets-4.3.3/= lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/gnu/store/ih0jscm3ilqn2r33ms8014ap26jhjfqa-python-traitlets-4.3.3/= lib/python3.8/site-packages/traitlets/config/application.py", line 453, in initialize_subcommand self.subapp.initialize(argv) File "", line 2, in initialize File "/gnu/store/ih0jscm3ilqn2r33ms8014ap26jhjfqa-python-traitlets-4.3.3/= lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/gnu/store/yj346rpx2mf1afa6jxl2kh9i335an27y-python-jupyter-core-4.7= .1/lib/python3.8/site-packages/jupyter_core/application.py", line 229, in initialize self.migrate_config() File "/gnu/store/yj346rpx2mf1afa6jxl2kh9i335an27y-python-jupyter-core-4.7= .1/lib/python3.8/site-packages/jupyter_core/application.py", line 155, in migrate_config migrate() File "/gnu/store/yj346rpx2mf1afa6jxl2kh9i335an27y-python-jupyter-core-4.7= .1/lib/python3.8/site-packages/jupyter_core/migrate.py", line 244, in migrate ensure_dir_exists(env['jupyter_config']) File "/gnu/store/yj346rpx2mf1afa6jxl2kh9i335an27y-python-jupyter-core-4.7= .1/lib/python3.8/site-packages/jupyter_core/utils/__init__.py", line 11, in ensure_dir_exists os.makedirs(path, mode=3Dmode) File "/gnu/store/hq7qr7nc2j29z3pivm3azfjy6jq3d7nx-python-3.8.2/lib/python= 3.8/os.py", line 213, in makedirs makedirs(head, exist_ok=3Dexist_ok) File "/gnu/store/hq7qr7nc2j29z3pivm3azfjy6jq3d7nx-python-3.8.2/lib/python= 3.8/os.py", line 213, in makedirs makedirs(head, exist_ok=3Dexist_ok) File "/gnu/store/hq7qr7nc2j29z3pivm3azfjy6jq3d7nx-python-3.8.2/lib/python= 3.8/os.py", line 213, in makedirs makedirs(head, exist_ok=3Dexist_ok) [Previous line repeated 12 more times] File "/gnu/store/hq7qr7nc2j29z3pivm3azfjy6jq3d7nx-python-3.8.2/lib/python= 3.8/os.py", line 223, in makedirs mkdir(name, mode) --8<---------------cut here---------------end--------------->8--- On Wed, 19 May 2021 at 22:23, Sharlatan Hellseher w= rote: > > Hi, > > I've checked the r-irkernel and it's coping existing kernelspec , > which is not useful in this case. > > As Guillaume mentioned we could tweak it before installation phase by > using cl-jupyter:install, so here is my draft: > > --8<---------------cut here---------------start------------->8--- > (arguments > `(#:phases > (modify-phases %standard-phases > (add-before 'install 'generate-kernelspec > (lambda* (#:key outputs #:allow-other-keys) > (let* ((out (assoc-ref outputs "out")) > (kernelspec (string-append out > "/share/cl-jupyter/kernelspec"))) > (mkdir-p kernelspec) > (invoke "sbcl" > "--eval" "\"(require :asdf)\"" > "--eval" "\"(require :common-lisp-jupyter)\"" > "--eval" > (string-append > "\"(cl-jupyter:install" > ":bin-path" (string-append > (assoc-ref %build-inputs "sbcl") > "/bin/sbcl") > ":prefix" out ")\"") > "--eval" "\"(exit)\"")) > #t)) > (add-after 'install 'install-kernelspec > (lambda* (#:key outputs #:allow-other-keys) > (let ((out (assoc-ref outputs "out")) > (kernelspec (string-append out > "/share/cl-jupyter/kernelspec"))) > (invoke "jupyter" "kernelspec" "install" > "--name" "cl-jupyter" > "--prefix" out > kernelspec) > #t)))))) > --8<---------------cut here---------------end--------------->8--- > > But there could be a potential blocking issue with :prefix key > > https://github.com/yitzchak/common-lisp-jupyter/issues/78 > > On Tue, 18 May 2021 at 16:58, Guillaume Le Vaillant wrot= e: > > > > Hi Jack, > > > > I guess it will be easier to just add a phase writing the "kernel.json" > > file in the right place. In this build phase, to know if the package is > > being built for SBCL or ECL, the '(%lisp-type)' function that will > > return "sbcl" or "ecl" can be used. There's an example in the > > sbcl-trivial-backtrace package. > > > > -- > > =E2=80=A6 =D0=BD=D0=B0=D1=88 =D1=80=D0=B0=D0=B7=D1=83=D0=BC - =D0=BF=D1= =80=D0=B5=D0=B2=D0=BE=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=B0=D1=8F =D0=BE=D0= =B1=D1=8A=D1=8F=D1=81=D0=BD=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=B0=D1=8F= =D0=BC=D0=B0=D1=88=D0=B8=D0=BD=D0=B0 =D0=BA=D0=BE=D1=82=D0=BE=D1=80=D0=B0= =D1=8F =D1=81=D0=BF=D0=BE=D1=81=D0=BE=D0=B1=D0=BD=D0=B0 > =D0=BD=D0=B0=D0=B9=D1=82=D0=B8 =D1=81=D0=BC=D1=8B=D1=81=D0=BB =D0=BF=D0= =BE=D1=87=D1=82=D0=B8 =D0=B2 =D1=87=D0=B5=D0=BC =D1=83=D0=B3=D0=BE=D0=B4=D0= =BD=D0=BE, =D0=B8=D1=81=D1=82=D0=BE=D0=BB=D0=BA=D0=BE=D0=B2=D0=B0=D1=82=D1= =8C =D0=BB=D1=8E=D0=B1=D0=BE=D0=B9 =D1=84=D0=B5=D0=BD=D0=BE=D0=BC=D0=B5=D0= =BD, =D0=BD=D0=BE > =D1=81=D0=BE=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD=D0=BD=D0=BE =D0=BD=D0=B5= =D0=B2 =D1=81=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD=D0=B8=D0=B8 =D0=BF=D1=80= =D0=B8=D0=BD=D1=8F=D1=82=D1=8C =D0=BC=D1=8B=D1=81=D0=BB=D1=8C =D0=BE =D0=BD= =D0=B5=D0=BF=D1=80=D0=B5=D0=B4=D1=81=D0=BA=D0=B0=D0=B7=D1=83=D0=B5=D0=BC=D0= =BE=D1=81=D1=82=D0=B8. --=20 =E2=80=A6 =D0=BD=D0=B0=D1=88 =D1=80=D0=B0=D0=B7=D1=83=D0=BC - =D0=BF=D1=80= =D0=B5=D0=B2=D0=BE=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=B0=D1=8F =D0=BE=D0=B1= =D1=8A=D1=8F=D1=81=D0=BD=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=B0=D1=8F = =D0=BC=D0=B0=D1=88=D0=B8=D0=BD=D0=B0 =D0=BA=D0=BE=D1=82=D0=BE=D1=80=D0=B0= =D1=8F =D1=81=D0=BF=D0=BE=D1=81=D0=BE=D0=B1=D0=BD=D0=B0 =D0=BD=D0=B0=D0=B9=D1=82=D0=B8 =D1=81=D0=BC=D1=8B=D1=81=D0=BB =D0=BF=D0=BE= =D1=87=D1=82=D0=B8 =D0=B2 =D1=87=D0=B5=D0=BC =D1=83=D0=B3=D0=BE=D0=B4=D0=BD= =D0=BE, =D0=B8=D1=81=D1=82=D0=BE=D0=BB=D0=BA=D0=BE=D0=B2=D0=B0=D1=82=D1=8C = =D0=BB=D1=8E=D0=B1=D0=BE=D0=B9 =D1=84=D0=B5=D0=BD=D0=BE=D0=BC=D0=B5=D0=BD, = =D0=BD=D0=BE =D1=81=D0=BE=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD=D0=BD=D0=BE =D0=BD=D0=B5 = =D0=B2 =D1=81=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD=D0=B8=D0=B8 =D0=BF=D1=80= =D0=B8=D0=BD=D1=8F=D1=82=D1=8C =D0=BC=D1=8B=D1=81=D0=BB=D1=8C =D0=BE =D0=BD= =D0=B5=D0=BF=D1=80=D0=B5=D0=B4=D1=81=D0=BA=D0=B0=D0=B7=D1=83=D0=B5=D0=BC=D0= =BE=D1=81=D1=82=D0=B8. --0000000000007726ed05c31a161f Content-Type: text/x-patch; charset="US-ASCII"; name="0001-gnu-common-lisp-jupyter-Format-kernelspec.patch" Content-Disposition: attachment; filename="0001-gnu-common-lisp-jupyter-Format-kernelspec.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kp34fh600 RnJvbSBjYmMxN2M3NjcwNjllOGZhNTE3NWYyZjBmMzBmYzk2MWEyYmUzMTlhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTaGFybGF0YW4gSGVsbHNlaGVyIDxzaGFybGF0YW51c0BnbWFp bC5jb20+CkRhdGU6IE1vbiwgMjQgTWF5IDIwMjEgMjI6MTg6MjggKzAxMDAKU3ViamVjdDogW1BB VENIXSBnbnU6IGNvbW1vbi1saXNwLWp1cHl0ZXI6IEZvcm1hdCBrZXJuZWxzcGVjCgotLS0KIGdu dS9wYWNrYWdlcy9saXNwLXh5ei5zY20gfCAzNSArKysrKysrKysrKysrKysrKysrKysrKysrKysr KysrKysrKwogMSBmaWxlIGNoYW5nZWQsIDM1IGluc2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9n bnUvcGFja2FnZXMvbGlzcC14eXouc2NtIGIvZ251L3BhY2thZ2VzL2xpc3AteHl6LnNjbQppbmRl eCA0YTFlOTA2NGQ1Li45MTM3MGM2MmM0IDEwMDY0NAotLS0gYS9nbnUvcGFja2FnZXMvbGlzcC14 eXouc2NtCisrKyBiL2dudS9wYWNrYWdlcy9saXNwLXh5ei5zY20KQEAgLTE0ODk3LDYgKzE0ODk3 LDQxIEBAIGFuZCBAY29kZXtkb3NlcSp9LiIpCiAgICAgICAgICAoc2hhMjU2CiAgICAgICAgICAg KGJhc2UzMiAiMHNpNjl4ZnppNzY5ZHByd2Z5N2dwMXgzYmw3bHh6NmQ0bjk4c2EyNnc5cjQxd3Zh eTVqYSIpKSkpCiAgICAgICAoYnVpbGQtc3lzdGVtIGFzZGYtYnVpbGQtc3lzdGVtL3NiY2wpCisg ICAgICAoYXJndW1lbnRzCisgICAgICAgYCgjOnBoYXNlcworICAgICAgICAgKG1vZGlmeS1waGFz ZXMgJXN0YW5kYXJkLXBoYXNlcworICAgICAgICAgICAoYWRkLWFmdGVyICdjcmVhdGUtYXNkZi1j b25maWd1cmF0aW9uICdnZW5lcmF0ZS1rZXJuZWxzcGVjCisgICAgICAgICAgICAgKGxhbWJkYSog KCM6a2V5IG91dHB1dHMgIzphbGxvdy1vdGhlci1rZXlzKQorICAgICAgICAgICAgICAgKGxldCog KChvdXQgKGFzc29jLXJlZiBvdXRwdXRzICJvdXQiKSkKKyAgICAgICAgICAgICAgICAgICAgICAo a2VybmVsc3BlYyAoc3RyaW5nLWFwcGVuZCBvdXQgIi9zaGFyZS9jbC1qdXB5dGVyL2tlcm5lbHNw ZWMiKSkpCisgICAgICAgICAgICAgICAgIChta2Rpci1wIGtlcm5lbHNwZWMpCisgICAgICAgICAg ICAgICAgIChjb3B5LWZpbGUgKHN0cmluZy1hcHBlbmQgInJlcy8iICglbGlzcC10eXBlKSAiL2xv Z28tNjR4NjQucG5nIikKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAoc3RyaW5nLWFwcGVu ZCBrZXJuZWxzcGVjICIvbG9nby02NHg2NC5wbmciKSkKKyAgICAgICAgICAgICAgICAgKHdpdGgt b3V0cHV0LXRvLWZpbGUgKHN0cmluZy1hcHBlbmQga2VybmVsc3BlYyAiL2tlcm5lbC5qc29uIikK KyAgICAgICAgICAgICAgICAgICAobGFtYmRhICgpCisgICAgICAgICAgICAgICAgICAgICA7OyBG SVhNRTogVXNlIG9mIGd1aWxlLWpzb24gd291bGQgYmVuZWZpY2lhbCBoZXJlCisgICAgICAgICAg ICAgICAgICAgICAoZm9ybWF0ICN0ICJ7IFwiYXJndlwiOiBbIH5zLAorIFwiLS1ldmFsXCIsCitc IihyZXF1aXJlIDphc2RmKVwiLAorIFwiLS1ldmFsXCIsCitcIihhc2RmOmxvYWQtc3lzdGVtIDpj b21tb24tbGlzcC1qdXB5dGVyKVwiLAorIFwiLS1ldmFsXCIsCitcIihqdXB5dGVyOnJ1bi1rZXJu ZWwgJ2NvbW1vbi1saXNwLWp1cHl0ZXI6a2VybmVsKVwiLAorXCJ7Y29ubmVjdGlvbl9maWxlfVwi CitdLAorXCJkaXNwbGF5X25hbWVcIjogXCJDb21tb24gTGlzcFwiLAorXCJsYW5ndWFnZVwiOiBc ImNvbW1vbi1saXNwXCIsCitcImludGVycnVwdF9tb2RlXCI6IFwibWVzc2FnZVwiCit9IgorICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAoc3RyaW5nLWFwcGVuZCAoYXNzb2MtcmVmICVidWls ZC1pbnB1dHMgKCVsaXNwLXR5cGUpKSAiL2Jpbi8iICglbGlzcC10eXBlKSkpKSkpKSkKKyAgICAg IChhZGQtYWZ0ZXIgJ2dlbmVyYXRlLWtlcm5lbHNwZWMgJ2luc3RhbGwta2VybmVsc3BlYworICAg ICAgICAobGFtYmRhKiAoIzprZXkgb3V0cHV0cyAjOmFsbG93LW90aGVyLWtleXMpCisgICAgICAg ICAgKGxldCogKChvdXQgKGFzc29jLXJlZiBvdXRwdXRzICJvdXQiKSkKKyAgICAgICAgICAgICAg ICAoa2VybmVsc3BlYyAoc3RyaW5nLWFwcGVuZCBvdXQgIi9zaGFyZS9jbC1qdXB5dGVyL2tlcm5l bHNwZWMiKSkpCisgICAgICAgICAgICAoaW52b2tlICJqdXB5dGVyIiAia2VybmVsc3BlYyIgImlu c3RhbGwiCisgICAgICAgICAgICAgICAgICAgICItLW5hbWUiICJjbC1qdXB5dGVyIgorICAgICAg ICAgICAgICAgICAgICAiLS1wcmVmaXgiIG91dAorICAgICAgICAgICAgICAgICAgICBrZXJuZWxz cGVjKSkpKSkpKQogICAgICAgKGlucHV0cwogICAgICAgIGAoKCJhbGV4YW5kcmlhIiAsc2JjbC1h bGV4YW5kcmlhKQogICAgICAgICAgKCJiYWJlbCIgLHNiY2wtYmFiZWwpCi0tIAoyLjMxLjEKCg== --0000000000007726ed05c31a161f-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 25 11:41:05 2021 Received: (at 46333) by debbugs.gnu.org; 25 May 2021 15:41:05 +0000 Received: from localhost ([127.0.0.1]:46583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llZB3-0001rj-39 for submit@debbugs.gnu.org; Tue, 25 May 2021 11:41:05 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llZAy-0001r0-70 for 46333@debbugs.gnu.org; Tue, 25 May 2021 11:41:04 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D5F4024002E for <46333@debbugs.gnu.org>; Tue, 25 May 2021 17:40:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1621957253; bh=xDFJJaOY1JBFYmX5e0uxwJvTV5EcE4A0imyN0L4dmfY=; h=From:To:Cc:Subject:Date:From; b=Z2VjpA7+Ny+Kc0Qiwj2GCQ6WhK4fYA+1+iTA8d+tAjKRd1Duw3+8ESVTDCT9tt/un tKQgguTozYO3i5BHi3EJ4pHVXqUWYCOndFyVmerWvi6ApcqdIG/65Rbn0KjVf/k4aB 9YOSmg7y5KCCehEekcMt9tMsmonwnOBRLa0NBlqytAvSkS/QCat7/6Pd74hPgBATLu NLft/B3ZnHllG1jgSSdZXYbn04jvgH/cX1pqf9FAADhXLqw+oZN7+oDmTaKXbAFDmd JobhVaIi81u8Db/3is9wlnE1Mkgpgr7FXd/4jeChdrV3XA13TDrDRrW7FKY47+UZYw r7QuG4vHAFbpw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FqJFZ5xBVz6tmQ; Tue, 25 May 2021 17:40:46 +0200 (CEST) References: <87lf8cugh1.fsf@kitej> From: Guillaume Le Vaillant To: Sharlatan Hellseher Subject: Re: bug#46333: sbcl-common-lisp-jupyter does not install kernel.json In-reply-to: Date: Tue, 25 May 2021 15:40:38 +0000 Message-ID: <877djmddop.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46333 Cc: 46333@debbugs.gnu.org, Jack Hill X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Sharlatan Hellseher skribis: > I played with cl-jupyter:install but it heavily depends on Quicklisp > but what basically does - generates simple JSON with CL implementation > https://github.com/yitzchak/common-lisp-jupyter/issues/78 > > First I tried to do the same during build phase by evaluationg > arbitrary Lisp but could not manged it to work. > Then after checking the kernel.json I just simply formated it with > right %lispt-type path and copied with the same evaluation as R > Jupyter package, but I've got some error during coping into Jupyter > directory: > > --8<---------------cut here---------------start------------->8--- > phase `generate-kernelspec' succeeded after 0.0 seconds > starting phase `install-kernelspec' > command "jupyter" "kernelspec" "install" "--name" "cl-jupyter" > "--prefix" "/gnu/store/xjqxskiqjlzirlg478gnlp7x6w2jcz63-sbcl-common-lisp-jupyter-0.1.0-4.ba9f0e7" > "/gnu/store/xjqxskiqjlzirlg478gnlp7x6w2jcz63-sbcl-common-lisp-jupyter-0.1.0-4.ba9f0e7/share/cl-jupyter/kernelspec" > failed with status 127 > builder for `/gnu/store/azl65q1bl2pv920fmgw6d8k0brsx6hdg-sbcl-common-lisp-jupyter-0.1.0-4.ba9f0e7.drv' > failed with exit code 1 > build of /gnu/store/azl65q1bl2pv920fmgw6d8k0brsx6hdg-sbcl-common-lisp-jupyter-0.1.0-4.ba9f0e7.drv > failed > [...] > --8<---------------cut here---------------end--------------->8--- I think this error comes from the fact that the jupyter package is missing as native input, therefore the 'jupyter ...' command can't work. It lools like the 'install-kernelspec' phase just copies the kernel you generated in "share/cl-jupyter/kernelspec/" to "share/jupyter/kernels/cl-jupyter/". Wouldn't it be easier to generate the kernel in the final directory directly? Then the 'install-kernelspec' phase would not be necessary. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYK0adg8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j8A/AD/cDV+OzQBT3LQ8/UDbyg/nd3o9ta4YWYg0TzV CiwzUSMA/32U1H4BM27HJmBbJL/sZUVpAJMSyCdxiSZJj3UTwOLC =2ml4 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 08 10:52:02 2021 Received: (at 46333) by debbugs.gnu.org; 8 Jun 2021 14:52:02 +0000 Received: from localhost ([127.0.0.1]:59522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqd5G-0001L1-16 for submit@debbugs.gnu.org; Tue, 08 Jun 2021 10:52:02 -0400 Received: from mail-ot1-f47.google.com ([209.85.210.47]:41835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqd1w-0001EU-BQ for 46333@debbugs.gnu.org; Tue, 08 Jun 2021 10:48:37 -0400 Received: by mail-ot1-f47.google.com with SMTP id 36-20020a9d0ba70000b02902e0a0a8fe36so20542886oth.8 for <46333@debbugs.gnu.org>; Tue, 08 Jun 2021 07:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CNYKYSTL+4V0mttQz0rEZmS1iiLctAwphHujRxlChGI=; b=oVhpdHg7SsFZ1z2b+h4HpLXpYAITK5gf1YiuS+xTKvVhR1LXwnWO+CrUfLQcOGv4oL mmH8zEwo4WK04iJSCQUr5eoLZKqYuz8IprtbtIFRul/knmW3AX1j0wOR6POVaPUcLo76 /Wy3SYWs96N+INU1DB3Ya+YQGA2VryEk6OgjQfMV8fuoMTdxIXQnfam+b4z2/dTooFwT +u4jKGknZRkGQE/EicHWjfXpL/gVPV2jaJj2od9lJe3uRsLWQBOWirpgqR3hu/AgOv8N ptmyawX0yMmddI/wLZYO+OWq7TN+Ey8Ru1KNGW9Vg5+VjfV+0eo5aqVv2+0PKFZ2HmTV y0UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CNYKYSTL+4V0mttQz0rEZmS1iiLctAwphHujRxlChGI=; b=pbvU8H6eVOQEmW76QwUkeXNIemFziCCjEnISsd6UkUs50gMDxf/AQRQdq+S58aFZUD 7wp1H44so8R9S+4gAyoJJBcfhfwDHamKf6S9WBiXq4ZPWkMrZ6lqWnPGEpBusG+YUy2s egYPEE5aHCx5Rvyer82qNswgdUqOY4WzP1lW5JV8nhgQojOVcnyEkQU842G46leR7opi HAeBoFgS7TrXhSIw545GUMoBKtn1aMgP4nH4D9Jn2qZyvGC5Pc5aAxR3Ky9FxW1PMlvT edDyQlJYotzXeAA8JYEmWmYYXP0lHYNN/ZqW+vQdkmC8CYJ08HY0IZhXv4mvbccNb6E3 sZug== X-Gm-Message-State: AOAM531MUZHiKthsNjNfsDoQxoekA2dFXHHBWUY6Mjac1XYOt3jBJUs7 vHWENhmtAHy7I7eH6/N6tkckcA8suTF3PAONDk7p0pbeh9gAxQ== X-Google-Smtp-Source: ABdhPJyh0WwxfsIHXZGJiEDEEcx/Mb/1LzO3ndvzdEAi1tXrfvTBzAfHdAUjEVSUuhmZI+qfb7AjLIAwQdFddhDS9jU= X-Received: by 2002:a9d:2ac7:: with SMTP id e65mr1253904otb.220.1623163710254; Tue, 08 Jun 2021 07:48:30 -0700 (PDT) MIME-Version: 1.0 From: Tarn Burton Date: Tue, 8 Jun 2021 10:48:04 -0400 Message-ID: Subject: Install Command Line To: 46333@debbugs.gnu.org Content-Type: multipart/alternative; boundary="0000000000005cb1ce05c44240e1" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46333 X-Mailman-Approved-At: Tue, 08 Jun 2021 10:52:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000005cb1ce05c44240e1 Content-Type: text/plain; charset="UTF-8" The command line that you should be using is sbcl --non-interacive --eval "(require :asdf)" --eval "(asdf:load-system :common-lisp-jupyter)" --eval "(clj:install :use-implementation :prefix \"bla\" :system t)" The sbcl should not have quicklisp installed so that the installer knows that this is not a quicklisp install. If the user's sbcl binary is located in a different place then you may need to add :bin-path https://github.com/yitzchak/common-lisp-jupyter/blob/master/README.md#installing-via-quicklispasdf -Tarn Burton/CLJ Author --0000000000005cb1ce05c44240e1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The command line that you should be using is

sbcl --non-interacive --ev= al "(require :asdf)" --eval &qu= ot;(asdf:load-system :common-lisp-jupyter)" --eval "(clj:install :use-implementation :prefix \"bla\" :s= ystem t)"

The sbcl should not have qui= cklisp installed so that the installer knows that this is not a quicklisp i= nstall. If the user's sbcl binary is located in a different place then = you may need to add :bin-path


-Tarn = Burton/CLJ Author=C2=A0


--0000000000005cb1ce05c44240e1-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 14 11:27:24 2021 Received: (at 46333) by debbugs.gnu.org; 14 Jun 2021 15:27:24 +0000 Received: from localhost ([127.0.0.1]:47476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsoUm-0003uP-LH for submit@debbugs.gnu.org; Mon, 14 Jun 2021 11:27:24 -0400 Received: from mail-oi1-f176.google.com ([209.85.167.176]:38764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsoPJ-0003kr-Mo for 46333@debbugs.gnu.org; Mon, 14 Jun 2021 11:21:46 -0400 Received: by mail-oi1-f176.google.com with SMTP id q10so10518827oij.5 for <46333@debbugs.gnu.org>; Mon, 14 Jun 2021 08:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=vI12mDqelqnksX1oyq2kxf6gAS2TibHxIWAlsCXtLkQ=; b=C1cqOQs/JZjQIk5pl4ZVmahL6hyKLcLaWtCLu1GpqiN+MxhO34VgMhpNT7Zewf5/CD oR3xtlg1baHuOkBxWDpMr8dn04FFQMNla0gv3Gi2PKYLHE+wCP4rsiIQiJZh6850B3bh k00h3ypSK9oSZXYV+EPO/L0mYIx/8aarXuJ1OPMbMFl7b9Fsn/wRFmcPSM9oMlOecBMy bkOincTn9RDjxHeP/3NLCDOQTL0EfFXH/0sb2gy7aSwmju0d0FmEngTgfPXJnJmNKvib OoJzxDCKM6VV5d3aUM6doQQTsuqDfQNjfTdgkGkEOiyztfx/1Q/rfbC33sA8zPtwH9fD KoZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vI12mDqelqnksX1oyq2kxf6gAS2TibHxIWAlsCXtLkQ=; b=NZQ8ru/zSvWMmnXvrtKY13IGMsCtGSK5rRDWilslqKhkvQCJmVlH9awU2K03jubKqu A3Kr+c4Z75gcgaNYQkMQNM0AKb6EK/+jJkWFZHis3yBOTxEezSTG4d6ZPGFu+liPZ0LE eplniOLPt7vOuL04wabkmbrnTKWc68SZo9c6VLlQy7RlFlb/IyiwBRxyZyW38D9Nssgx JqxwMasZ40sJRFMv8//EJ+RjxjexBvMym1a8qIV/NmwdB3lbYXlQeNA27csbHnFaTLkW jIHn5CZ11OrA7R8eEmOZC9gPUpMOF0ZQ7t8cy29HEMptwvlhZk31ZOnKBFYNLAA5Qn+2 rP5A== X-Gm-Message-State: AOAM533GZhF7MlQgo69/r5hWNFsyXgLpvu6pTDYpmiNV2uiPthaXpnpt ETGbSoUfU6QS66IPsJ+JlckZiIx1hqwXqTCGorhI1qGxqR7WVg== X-Google-Smtp-Source: ABdhPJzNzZuyccMmzN3Uuieb2bF7p8lYSjVnSjTuhTFMzQwYEGdrJQUJThBNCBFaTrFtRCQKHza0FtX1DTo7o1XJ3yQ= X-Received: by 2002:a05:6808:9:: with SMTP id u9mr23055442oic.61.1623684099805; Mon, 14 Jun 2021 08:21:39 -0700 (PDT) MIME-Version: 1.0 From: Tarn Burton Date: Mon, 14 Jun 2021 11:21:10 -0400 Message-ID: Subject: Typos To: 46333@debbugs.gnu.org Content-Type: multipart/alternative; boundary="000000000000ff153f05c4bb6928" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46333 X-Mailman-Approved-At: Mon, 14 Jun 2021 11:27:23 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000ff153f05c4bb6928 Content-Type: text/plain; charset="UTF-8" Looks like I had some typos in the command. sbcl --non-interactive --eval "(require :asdf)" --eval "(asdf:load-system:common-lisp-jupyter)" --eval "(clj:install :use-implementation t :prefix\"bla\" :system t)" -Tarn Burton --000000000000ff153f05c4bb6928 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Looks like I had some typos in the command.

sbcl --non-interactive --eval &q= uot;(require :asdf)" --eval "(asdf:load-system:common-lisp-jupyter)" --eval "(clj:install :use-= implementation t :prefix\"bla\"= :system t)"

-Tarn Burton
--000000000000ff153f05c4bb6928--