From: Alexander Asteroth <alexander.asteroth@h-brs.de>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Lars-Dominik Braun <lars@6xq.net>, 52139@debbugs.gnu.org
Subject: bug#52139: jupyter trying to modify /gnu/store
Date: Fri, 10 Dec 2021 14:59:44 +0100 [thread overview]
Message-ID: <875yrwftj3.fsf@h-brs.de> (raw)
In-Reply-To: <87pmq4a8tm.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1629 bytes --]
Hi Ludovic,
On Fri, Dec 10 2021, 14:27:49, Ludovic Courtès <ludo@gnu.org> wrote:
> Hi Alexander,
>
> Alexander Asteroth <alexander.asteroth@h-brs.de> skribis:
>
>> I found the cause:
>>
>> in ~/.guix-profile/etc/profile environment variables are set for jupyter:
>>
>>> export JUPYTER_PATH="${GUIX_PROFILE:-/gnu/store/ichrcarq2k4lhdmm2izc3f1xjbziz49v-profile}/share/jupyter${JUPYTER_PATH:+:}$JUPYTER_PATH"
>>> export JUPYTER_CONFIG_DIR="${GUIX_PROFILE:-/gnu/store/ichrcarq2k4lhdmm2izc3f1xjbziz49v-profile}/etc/jupyter${JUPYTER_CONFIG_DIR:+:}$JUPYTER_CONFIG_DIR"
>>
>> The jupyter config path causes the problem, since jupyter tries to write
>> into it (and it is located in a read only filesystem). Unsetting the
>> environment variable solves the issue.
>
> I can’t reproduce it with:
>
> $ guix describe
> Generacio 196 Dec 06 2021 11:23:08 (nuna)
> guix 9478a25
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: 9478a252509a93f3e7f486cbc549631185ba071d
> $ guix shell jupyter -CN --no-cwd -- jupyter notebook
>
> Perhaps that’s because I didn’t trigger actions that would cause Jupyter
> to attempt to write to $JUPYTER_CONFIG_DIR?
Yes. I happes for also only if I used jupyter once. At the second attempt
the error occured.
The problem is easily solved by setting the config dir to (e.g.)
~/.config/jupyter.
Cheers,
Alex
>
> The JUPYTER_CONFIG_DIR search path was added to ‘python-jupyter-core’ in
> commit 1683e9d9677d54f695a54fc44ed309287989fc34. Lars, what are you
> thoughts?
>
> Thanks,
> Ludo’.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]
next prev parent reply other threads:[~2021-12-10 14:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-27 10:14 bug#52139: jupyter trying to modify /gnu/store Alexander Asteroth
2021-11-27 16:31 ` Alexander Asteroth
2021-12-10 13:27 ` Ludovic Courtès
2021-12-10 13:59 ` Alexander Asteroth [this message]
2021-12-11 9:36 ` Lars-Dominik Braun
2021-12-11 12:46 ` Alexander Asteroth
2021-12-12 21:41 ` Ludovic Courtès
2021-12-13 8:20 ` Lars-Dominik Braun
2021-12-14 15:06 ` Ludovic Courtès
2021-12-16 9:16 ` Lars-Dominik Braun
[not found] ` <8735mzpaep.fsf@h-brs.de>
2021-12-21 13:48 ` Lars-Dominik Braun
2021-11-28 1:08 ` bug#52139: (no subject) jgart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875yrwftj3.fsf@h-brs.de \
--to=alexander.asteroth@h-brs.de \
--cc=52139@debbugs.gnu.org \
--cc=lars@6xq.net \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).