bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#53258: Python unable to find modules within a Singularity container


From: Ludovic Courtès
Subject: bug#53258: Python unable to find modules within a Singularity container created with guix pack
Date: Mon, 07 Mar 2022 09:25:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hi Josselin,

Josselin Poiret <dev@jpoiret.xyz> skribis:

> After the IRC investigation, it turned out the use of abspath in
> Lib/site.py was in fact the culprit. Replacing all its uses with
> realpath and doing `./pre-inst-env guix pack -RR python python-numpy -S
> /bin=bin -S /etc=etc` did in fact resolve the issue!
>
> I've raised the issue upstream at [1].  The fix itself is pretty simple,
> but it's theoretically a breaking change, so we'll see how Python
> maintainers want to move forward with it.  We could backport this fix
> for the next core-updates cycle, whether or not it gets accepted
> upstream, and we will also need to modify sitecustomize.py as well to
> call os.path.realpath on python_site.

> [1] https://bugs.python.org/issue46653

Thanks for the investigation and for reporting it upstream!

Is there a workaround we could apply locally, ideally one that does not
lead to a world rebuild?

Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]