GNU bug report logs - #52139
jupyter trying to modify /gnu/store

Previous Next

Package: guix;

Reported by: Alexander Asteroth <alexander.asteroth <at> h-brs.de>

Date: Sat, 27 Nov 2021 10:21:01 UTC

Severity: normal

Merged with 52159

Done: Lars-Dominik Braun <lars <at> 6xq.net>

Bug is archived. No further changes may be made.

Full log


Message #27 received at 52139 <at> debbugs.gnu.org (full text, mbox):

From: Alexander Asteroth <alexander.asteroth <at> h-brs.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Lars-Dominik Braun <lars <at> 6xq.net>, 52139 <at> debbugs.gnu.org
Subject: Re: bug#52139: jupyter trying to modify /gnu/store
Date: Fri, 10 Dec 2021 14:59:44 +0100
[Message part 1 (text/plain, inline)]
Hi Ludovic,

On Fri, Dec 10 2021, 14:27:49, Ludovic Courtès <ludo <at> gnu.org> wrote:

> Hi Alexander,
>
> Alexander Asteroth <alexander.asteroth <at> 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’.

[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.