From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mNdBFxsL42FkfQAAgWs5BA (envelope-from ) for ; Sat, 15 Jan 2022 18:57:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wCyfFBsL42FJUQEA9RJhRA (envelope-from ) for ; Sat, 15 Jan 2022 18:57:47 +0100 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 2E65B2F13F for ; Sat, 15 Jan 2022 18:57:47 +0100 (CET) Received: from localhost ([::1]:59162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8nJB-0001E3-3p for larch@yhetil.org; Sat, 15 Jan 2022 12:57:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8P7T-0004EQ-Hn for bug-guix@gnu.org; Fri, 14 Jan 2022 11:08:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8P7S-0005R0-0L for bug-guix@gnu.org; Fri, 14 Jan 2022 11:08:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8P7R-00059g-St for bug-guix@gnu.org; Fri, 14 Jan 2022 11:08:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53258: Python unable to find modules within a Singularity container created with guix pack Resent-From: Marek =?UTF-8?Q?Fel=C5=A1=C3=B6ci?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 14 Jan 2022 16:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53258 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 53258@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164217642319716 (code B ref -1); Fri, 14 Jan 2022 16:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jan 2022 16:07:03 +0000 Received: from localhost ([127.0.0.1]:37904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8P6S-00057J-El for submit@debbugs.gnu.org; Fri, 14 Jan 2022 11:07:02 -0500 Received: from lists.gnu.org ([209.51.188.17]:60654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8NYr-0007xP-Ao for submit@debbugs.gnu.org; Fri, 14 Jan 2022 09:28:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8NYp-0002jm-Cn for bug-guix@gnu.org; Fri, 14 Jan 2022 09:28:12 -0500 Received: from m1-out-mua-3.websupport.sk ([45.13.137.12]:57778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8NYW-00068b-Vc for bug-guix@gnu.org; Fri, 14 Jan 2022 09:27:55 -0500 Received: from m1-u6-ing.websupport.sk (unknown [10.30.6.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by m1-out-mua-3.websupport.sk (Postfix) with ESMTPS id 4Jb3PF3bStzK3m for ; Fri, 14 Jan 2022 15:20:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felsoci.sk; s=mail; t=1642170049; bh=6JSTRyog3Ai3g06bBjZ6QwNHdFYChWJtU0WlTes5Ih8=; h=To:From:Subject:Date:From; b=l3/eT1MtyarrjO8g1GYPQjmLaud7uKwReuZREEaUyqB9V6LCQ05wDEQ+2nPK0Tvkc kVDyYPlrRuFLjypSSaqEvyGNl8KMUKo+3mhkjMPMUWndQ4XDWFaUt88FZh4mpDxmOL 4ivkiGWUI4v1T5Se6eiEQxuyM07ND3ifecVML198B4IDp3nvjyNMVIVFJP2RV2RYje JvypcrHGMnzKrF/g2vcXl1TUBH7BzTYnOo+kz4IJLJZtMFl3BfE04T/yh1wCuIszOx MofKRhKLta4SUs+LQoC52vWivgs6usNgaDFRPUd7i6MgtDmn169+ZX/YY+oBPl36e4 yTokQZtzRK2tA== Received: from in-2.websupport.sk (pfsense-ha.websupport.sk [37.9.169.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by m1-u6-ing.websupport.sk (Postfix) with ESMTPS id 4Jb3PF2F8HzbCcq for ; Fri, 14 Jan 2022 15:20:49 +0100 (CET) Received: from [10.113.0.135] (unknown [138.199.15.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marek@felsoci.sk) by in-2.websupport.sk (Postfix) with ESMTPSA id 4Jb3PD5MMkz40ZJS for ; Fri, 14 Jan 2022 15:20:48 +0100 (CET) From: Marek =?UTF-8?Q?Fel=C5=A1=C3=B6ci?= Message-ID: <67e7d225-f824-b691-7125-6b37abef8bb0@felsoci.sk> Date: Fri, 14 Jan 2022 15:20:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 SeaMonkey/2.53.10.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Out-Spamd-Result: default: False [-0.10 / 1000.00]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.00)[subject]; ASN(0.00)[asn:60068, ipnet:138.199.14.0/23, country:GB]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ZERO(0.00)[0]; TO_DN_NONE(0.00)[] X-Out-Rspamd-Server: mail-antispam-4 X-Out-Rspamd-Queue-Id: 4Jb3PD5MMkz40ZJS Received-SPF: pass client-ip=45.13.137.12; envelope-from=marek@felsoci.sk; helo=m1-out-mua-3.websupport.sk X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 14 Jan 2022 11:06:59 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 15 Jan 2022 12:57:18 -0500 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642269467; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6JSTRyog3Ai3g06bBjZ6QwNHdFYChWJtU0WlTes5Ih8=; b=LgF5Joe9KdVl+0AZsyScbVu9MVaGCTMbyu+/KHXOq5TKMpzA7n8V25YJXOV011dMR/xy23 FAXW7FG70vGp39AtjwW9RoUkmGiUkvmFmayuH63W1Y7Rh2j74paE5bFiNFiIW4pfBU7HDq 4jS3uetoG8nKZdA62811uD4WuFc6Vw5uzw3mMwjgPbMgX8JjYXDg9+RxMMnQ/EPTc2VLPo jEQ3XFAiizftbdu+KVWb4LXfzjhDxpyg2mDqqA7GMtXF/4nRRhXGH9vrwOnOWgDIegklEK L3WVZdTafswHCl2XSBypPoRQaRoBRFLAnYrAiW8hvv3yW8zm4N+U2bJoKgaqbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642269467; a=rsa-sha256; cv=none; b=jgPgStkrbDA85BgHVsD3N5OinjL8/ZCyDveF6JFzkei2MScos15vfbuvgynBX7ruHAVmeV J03jn3X5ERYqqEfNxIaQbDNu7s9bEMV7dU+a/fPdC1e4KKIXwz09IgMVVR7t0iHTbuu/am w+u4KoXcBLTH8UJNkcyK7gGdBJSab0e3VOSVwiWbo+CJhSaHWdpAX6tlqoUJEL8NThOkRj SwmrxR4A89Fu/8iQkIm7WooVdWLBiOSHDOvKdXkZVQRBbZU1+TfywKrqLseigCRZtDt8x3 Ch6PNNXZ1eBj1/4KuSSr1ssr3DMoglyziRMJQ7TVA2LagAH4i7f5o4UbBefA5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=felsoci.sk header.s=mail header.b="l3/eT1Mt"; dmarc=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.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=felsoci.sk header.s=mail header.b="l3/eT1Mt"; dmarc=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: 2E65B2F13F X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: aBz6G2OlvMUu 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