From: "Marek Felšöci" <marek@felsoci.sk>
To: 53258@debbugs.gnu.org
Subject: bug#53258: Python unable to find modules within a Singularity container created with guix pack
Date: Fri, 14 Jan 2022 15:20:46 +0100 [thread overview]
Message-ID: <67e7d225-f824-b691-7125-6b37abef8bb0@felsoci.sk> (raw)
Hello folks,
Recently, I have come around this issue. I created a Singularity container using
the following `guix pack` command:
`guix pack -f squashfs bash coreutils python python-numpy`
Then, I run a bash shell within the container:
`singularity exec test.gz.squashfs bash`
Now, if I want to use numpy,
`python3 -m numpy`
it gives me the following error and the numpy module IS NOT found:
Error in sitecustomize; set PYTHONVERBOSE for traceback:
ValueError:
'/gnu/store/2dyd6rlcc9m68k3mvkw86k8dygkbg025-profile/bin/../../p5fgysbcnnp8b1d91mrvjvababmczga0-python-3.9.6/lib/python3.9/site-packages'
is not in list
/gnu/store/2dyd6rlcc9m68k3mvkw86k8dygkbg025-profile/bin/python3: No module named
numpy
However, if I do,
`export PYTHONPATH=$GUIX_PYTHONPATH`
the numpy module IS found:
Error in sitecustomize; set PYTHONVERBOSE for traceback:
ValueError:
'/gnu/store/2dyd6rlcc9m68k3mvkw86k8dygkbg025-profile/bin/../../p5fgysbcnnp8b1d91mrvjvababmczga0-python-3.9.6/lib/python3.9/site-packages'
is not in list
/gnu/store/2dyd6rlcc9m68k3mvkw86k8dygkbg025-profile/bin/python3: No module named
numpy.__main__; 'numpy' is a package and cannot be directly executed
Still, the sitecustomize error persists.
See the output of `guix describe` below (only the guix channel):
Pokolenie 3 14. január 2022 14:33:06 (súčasné)
guix 5c5d9e5
zdroj repozitára: https://git.savannah.gnu.org/git/guix.git
vetva: master
úprava: 5c5d9e5a3208fa51351c6ad8267eba3d96fa2232
Thanks,
Marek
next reply other threads:[~2022-01-15 17:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-14 14:20 Marek Felšöci [this message]
2022-01-14 17:45 ` bug#53258: Python unable to find modules within a Singularity container created with guix pack Ludovic Courtès
2022-02-04 20:50 ` Ludovic Courtès
2022-02-05 22:28 ` Josselin Poiret via Bug reports for GNU Guix
2022-02-05 22:30 ` Josselin Poiret via Bug reports for GNU Guix
2022-03-07 8:25 ` Ludovic Courtès
2023-02-02 14:44 ` Josselin Poiret via Bug reports for GNU Guix
2023-02-02 15:40 ` Maxim Cournoyer
2023-02-06 17:34 ` Simon Tournier
2024-01-04 12:35 ` Konrad Hinsen
2024-01-04 13:01 ` Konrad Hinsen
2024-01-05 15:23 ` Konrad Hinsen
2024-01-21 18:31 ` Maxim Cournoyer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=67e7d225-f824-b691-7125-6b37abef8bb0@felsoci.sk \
--to=marek@felsoci.sk \
--cc=53258@debbugs.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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.