From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yEm7N1+zuGGiOAEAgWs5BA (envelope-from ) for ; Tue, 14 Dec 2021 16:08:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mE2qM1+zuGEXfwAA1q6Kng (envelope-from ) for ; Tue, 14 Dec 2021 15:08:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9D4492895F for ; Tue, 14 Dec 2021 16:08:15 +0100 (CET) Received: from localhost ([::1]:60112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mx9Pa-0002og-HR for larch@yhetil.org; Tue, 14 Dec 2021 10:08:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mx9PO-0002kx-4o for bug-guix@gnu.org; Tue, 14 Dec 2021 10:08:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mx9PN-0002FQ-SW for bug-guix@gnu.org; Tue, 14 Dec 2021 10:08:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mx9PN-0005AJ-Nc for bug-guix@gnu.org; Tue, 14 Dec 2021 10:08:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52139: jupyter trying to modify /gnu/store Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 14 Dec 2021 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52139 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Lars-Dominik Braun Received: via spool by 52139-submit@debbugs.gnu.org id=B52139.163949442919795 (code B ref 52139); Tue, 14 Dec 2021 15:08:01 +0000 Received: (at 52139) by debbugs.gnu.org; 14 Dec 2021 15:07:09 +0000 Received: from localhost ([127.0.0.1]:59296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mx9OW-00059D-Rs for submit@debbugs.gnu.org; Tue, 14 Dec 2021 10:07:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mx9OV-00058s-LD for 52139@debbugs.gnu.org; Tue, 14 Dec 2021 10:07:08 -0500 Received: from [2001:470:142:3::e] (port=42044 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mx9OP-0002BA-Ay; Tue, 14 Dec 2021 10:07:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Kz4s9hFK6lralcSazYq43yU2gTf14+Yavnc4rBtxy/A=; b=ejqFl/Vm95U/ELpGLzOS hS7Y58p58/M2YF9rLrkfDwqpE04/reEpU8a4uqxjbha8YQTbW6FSIBbxsTCwp4I4oV/uWUfaZl1WI 2+RD+arulqGcF3tAb3Q5eAyhLEIl6IsKx9KKahTqlKblEjh9fsqJiX+RbjNRPAmcCWHoqq+j3TtjG c6Wd62sPYyo2uOGpDQRFEC+7kypQBBK9uTbVKceJ3JvPyRqL9IvA2PWeFLV97tJQEHzrNASiN7Qt5 2dswDC4eNRXfxU8sXqQuz/blWtJsaqfS1oC6GDIwEAudbV1YG8Kzxaa8eUeYZf8MvGWb8d59X+Cye XNERbaTT2cmkpQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:62299 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mx9OP-00071s-9m; Tue, 14 Dec 2021 10:07:01 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87pmqlq4s1.fsf@h-brs.de> <871r318spu.fsf@h-brs.de> <87pmq4a8tm.fsf@gnu.org> <87k0g94i2m.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 Frimaire an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 14 Dec 2021 16:06:58 +0100 In-Reply-To: (Lars-Dominik Braun's message of "Mon, 13 Dec 2021 09:20:37 +0100") Message-ID: <87v8zrz0ml.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Asteroth , 52139@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639494495; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Kz4s9hFK6lralcSazYq43yU2gTf14+Yavnc4rBtxy/A=; b=hH8aL6bULklzOR2v9y9KvQQhqdqvmD2Iwv/AN0NC84qahaXQ2cOaHAGJUfVGGx0uG77n+E iH9hDh8ko/GyeyvJgmyFF8tcWk8LFrVDcVI41hb52KnBMORki6EyFLQwCgQVPsKwBBIMdp yeDnI8vrcNcAmTjdnWGUSM8/HWfAOQPtVprM5YDcaUgiZMg2IKWzhzaamwQiPTxmIA8NIs gYHNj2CfhZkrzPGgi192X+9QZjZpZCmlb/z63mrNIp42LkI6GqSvWLhSRucuXYmY/YTdT3 XcbVblAi3rwkI+wnwh27Kx3wN+Tgg9e9kw/9VLXJwOiuh4IUJm5I4y4ydZXIzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639494495; a=rsa-sha256; cv=none; b=PvqZpDNStIEZwb1HdyuNGQ3Mw0ZyGD8YaYGYhkHF5wNwh62tgGHR3D3KxxFTbHLj8U2w7+ OOME75jM3TRK497z1dGk4Fg+4SwABFggv1s+4g17jvn0yqFYryNZ95uSqBE6wy763pgx8o UEWWy3vFx8IGdw85tdGfIWlj2GsrHSd8i9HFlN5eVYvQYSd9IEB9lPQCkn7qIAbvtZHvEr D5S7Swk7w27r3bkqFRmZzpLP6riLaNTd3AvFCtU+5soz79gvHzcH9b0XbIVut1fm7ROzSi evS15dGG4AHeuZDmZFJG4gwkUoXckLh6vV9oubFY4asJMCOgK+Niut8f6jjqyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="ejqFl/Vm"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="ejqFl/Vm"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9D4492895F X-Spam-Score: -3.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: DaW2MaMwi/IE Hi Lars, Lars-Dominik Braun skribis: >> But precisely: as Alexander wrote, when JUPYTER_CONFIG_DIR points to the >> store, jupyterlab cannot drop a config file there. Or am I missing >> something? > sorry, my message was unclear here. The config file is written at > build time. Oh I see. >> BTW, if JUPYTER_CONFIG_DIR is meant to contain a directory name, as >> opposed to a colon-separated search path, we should make this change: > Looking at the documentation[1] again this is correct, but I feel we > should use JUPYTER_CONFIG_PATH instead, because it supports > colon-delimited entries, see attached patch. However that does not get > rid of error messages like these, when trying to use Settings=E2=86=92Jup= yterLab > Theme for example: > > [W 08:10:14.476 LabApp] 500 PUT /lab/api/workspaces/lab?1639383014500 (12= 7.0.0.1): [Errno 30] Read-only file system: '/gnu/store/8q7wdpdddfqh46plbbs= a3rwci5092n5y-profile/etc/jupyter/lab' > > So it seems that JUPYTER_CONFIG_PATH overrides the default > JUPYTER_CONFIG_DIR, when the latter is not set. Or maybe guix-science=E2= =80=99s > jupyterlab is simply too old =E2=80=93 not sure right now. OK. > +++ b/gnu/packages/python-xyz.scm > @@ -8478,7 +8478,7 @@ (define-public python-jupyter-core > ;; search paths. > (native-search-paths > (list (search-path-specification > - (variable "JUPYTER_CONFIG_DIR") > + (variable "JUPYTER_CONFIG_PATH") > (files '("etc/jupyter"))) > (search-path-specification > (variable "JUPYTER_PATH") > @@ -12145,8 +12145,6 @@ (define-public python-nbconvert > (when tests? > ;; Some tests invoke the installed nbconvert binary. > (add-installed-pythonpath inputs outputs) > - ;; Tries to write to this path. > - (unsetenv "JUPYTER_CONFIG_DIR") > ;; Tests depend on templates installed to output. > (setenv "JUPYTER_PATH" > (string-append > @@ -12254,6 +12252,8 @@ (define-public python-notebook > ;; Some tests do not expect all files to be installed in = the > ;; same directory, but JUPYTER_PATH contains multiple ent= ries. > (unsetenv "JUPYTER_PATH") > + ;; Interferes with tests that check paths. > + (unsetenv "JUPYTER_CONFIG_PATH") > ;; Some tests need HOME > (setenv "HOME" "/tmp") > (with-directory-excursion "/tmp" If that works for you, go for it. Thanks, Ludo=E2=80=99.