From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MJ3gH5wCt2E+DwAAgWs5BA (envelope-from ) for ; Mon, 13 Dec 2021 09:21:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IPl6G5wCt2H8NQAAbx9fmQ (envelope-from ) for ; Mon, 13 Dec 2021 08:21:48 +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 E36392E485 for ; Mon, 13 Dec 2021 09:21:47 +0100 (CET) Received: from localhost ([::1]:58476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwgag-0006Mu-B8 for larch@yhetil.org; Mon, 13 Dec 2021 03:21:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwga6-0006M9-G7 for bug-guix@gnu.org; Mon, 13 Dec 2021 03:21:16 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwgZy-000220-Nr for bug-guix@gnu.org; Mon, 13 Dec 2021 03:21:10 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwgZy-0006Hm-Fq for bug-guix@gnu.org; Mon, 13 Dec 2021 03:21:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52139: jupyter trying to modify /gnu/store Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 13 Dec 2021 08:21:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 52139-submit@debbugs.gnu.org id=B52139.163938365324126 (code B ref 52139); Mon, 13 Dec 2021 08:21:02 +0000 Received: (at 52139) by debbugs.gnu.org; 13 Dec 2021 08:20:53 +0000 Received: from localhost ([127.0.0.1]:53986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwgZp-0006H4-Aa for submit@debbugs.gnu.org; Mon, 13 Dec 2021 03:20:53 -0500 Received: from mout-p-202.mailbox.org ([80.241.56.172]:33174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwgZl-0006Gq-SQ for 52139@debbugs.gnu.org; Mon, 13 Dec 2021 03:20:51 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:105:465:1:3:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4JCDwX0PH0zQjmQ; Mon, 13 Dec 2021 09:20:44 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1639383641; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=BGqZEbW+Sq7Jjn2B5XjaPLn5KNy0ZOhpzoXyStas3b8=; b=xecPWk9dGO6Y9qCg6DbFhWQGrWDBEYUu5qQ5KdCPeZTwLunfGHykoAj+k7wlLJc+qFmkK0 IKvXVhtXkIb5MJqq+pdRkV+6L3OGV54Mvwj8mX+hCfvBTQQbUDMg2gqCXkZOJgN0NkcaOK P2XS6iWl/8CHguRIVCbA4ucVDyDT/sGwl9cpLq030ulEZqNRGD1WomHo4/NCAzr+huzKYH XmOe/0QFgIvpiyp+MhH1nMqDbX/KBZLFEiFlX3/WkJL38oY91SjpIkpzeOsOQEWjPiccoo ZClL8D3wY1JRz0gMPw6ad5ozxh2Q7752nUzpgBaRYtdO/JGAmVxtZnVvliycNg== Date: Mon, 13 Dec 2021 09:20:37 +0100 From: Lars-Dominik Braun Message-ID: References: <87pmqlq4s1.fsf@h-brs.de> <871r318spu.fsf@h-brs.de> <87pmq4a8tm.fsf@gnu.org> <87k0g94i2m.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="m0rvPhIORydFLqs8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87k0g94i2m.fsf@gnu.org> 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639383708; 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=BGqZEbW+Sq7Jjn2B5XjaPLn5KNy0ZOhpzoXyStas3b8=; b=YXQqrsjn1wctq6bkfhyX7VZ5BlRlgAfXFT2xNZ0UZylT9iHV1rEZFRssQ6UPIGO3XieIzl hXROodxEDWsM3PZ3Y10TDTLSR7pGsYWvNuhxqZZrUl2tld+TFagCUC/NjMao9TUIewmonW D9EnrYCneCPqavIXyroVmHDlgm+OlNDn/H0Wv7a3yMm8BaWbdHz+SImzVD7IcKACQBGKh7 Ve4EZr+2BLHvXTJO33kG5mQL9I9T+8bCYZHTnmzt9ldsrSISl9jGx+AUL1ISXxbGMTirWY wIokCHvcm3aDKXK/m9wL4IR/94Pl+i5q4HTgO+X12vksqxAB20jSTao84wWyWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639383708; a=rsa-sha256; cv=none; b=tW7zy+AAIHRGoClaSTtj56rf08QkaM+njDHfCG5tg1Pe8DKAliOfhGsKcX0CDPOmkQ4pbk Ncn04VdUIIwuWXjK99a93JtoGekeIcwg16H+fB7DJU/6oSRL1NbDOLf75plYZQMMiSzOFW GLAjnY9eHud3TrsJ+d6wQtkxUBYa5qmE0ipzpxRKc6B8kkmklKsiSb8MTK7TILyA6m/0m2 zvIFIsAfK0yXhxiUsh+PsmZiuZr8Q15cHxe4HAx9uj7S4zW64sua5uK9og+XnlWvfuz8XR QyCav7F5l0/gVErsy54gQjLIwHINafCfU/P2Pv65mVs1nKlYXfdGoD4v9L44AQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b=xecPWk9d; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none); 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: -1.97 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b=xecPWk9d; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none); 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: E36392E485 X-Spam-Score: -1.97 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8WsXUL+lUbOz --m0rvPhIORydFLqs8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hi Ludo, > 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. > 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→JupyterLab Theme for example: [W 08:10:14.476 LabApp] 500 PUT /lab/api/workspaces/lab?1639383014500 (127.0.0.1): [Errno 30] Read-only file system: '/gnu/store/8q7wdpdddfqh46plbbsa3rwci5092n5y-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’s jupyterlab is simply too old – not sure right now. Cheers, Lars [1] https://jupyter.readthedocs.io/en/latest/use/jupyter-directories.html --m0rvPhIORydFLqs8 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="jupyter-core-config-path.patch" diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index db2ab8e5f0..450d17208f 100644 --- a/gnu/packages/python-xyz.scm +++ 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 entries. (unsetenv "JUPYTER_PATH") + ;; Interferes with tests that check paths. + (unsetenv "JUPYTER_CONFIG_PATH") ;; Some tests need HOME (setenv "HOME" "/tmp") (with-directory-excursion "/tmp" --m0rvPhIORydFLqs8--