GNU bug report logs - #61967
guix pack error with python packages

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: cayetano.santos@HIDDEN; dated Sat, 4 Mar 2023 19:50:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 61967 <at> debbugs.gnu.org:


Received: (at 61967) by debbugs.gnu.org; 7 Mar 2023 21:09:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 07 16:09:01 2023
Received: from localhost ([127.0.0.1]:47278 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pZeYP-0001hH-8X
	for submit <at> debbugs.gnu.org; Tue, 07 Mar 2023 16:09:01 -0500
Received: from mail-qv1-f43.google.com ([209.85.219.43]:36615)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1pZeYN-0001gy-0N
 for 61967 <at> debbugs.gnu.org; Tue, 07 Mar 2023 16:08:59 -0500
Received: by mail-qv1-f43.google.com with SMTP id m4so9862986qvq.3
 for <61967 <at> debbugs.gnu.org>; Tue, 07 Mar 2023 13:08:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1678223333;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=Mm3inp3IR3tQ6OAqqluo1YsY0HClX6cx5A3CA8LECsY=;
 b=GeYRFfycRJXPORF93nXjcgD3ckPonpiDdaMDd5H77GnM25cGBwcqWhGWDVUheOVdk4
 HnChNvE6JG9rPP6dKwwkehYCTW4sUsiqzALgZj5iN0YlF9q7GNj/BVjbYDTKRKZHsxze
 jm/4KYlF5I3AENGbkqhJ5xl3WhALU17s1i/akjS7X/TxmE2nahRsF3+5WkQpVCATZ3T1
 Kihb/AJ+8UoqK9Mld/qbSThDlznGIjhchFZc6fzsCvOGVjVrNf1gaLZorq9bykSqjexp
 KTQZNwd1w3GzxM6f1TJ3T3aU0G0EAN3rMzHKhbLOez1AcA0MHpW/dvCWTi9be1zibj//
 w2tg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1678223333;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=Mm3inp3IR3tQ6OAqqluo1YsY0HClX6cx5A3CA8LECsY=;
 b=1p8o7frPBfkj2dsUubQl+1UnkMuYKH28usolrsNP+JnlAgfFBQqeWctKw9BUzUYt/J
 WsOjK2XXYvX6KON/Q/yL1119PV052SeI2Lmw+Rff2RUL9q9+obd9ls9uej1c2L+Y7+ks
 NQmn1E2DPXc9nXHbxFBXsgkD3Vbrko8mqT35+CZbhIKm7JKskecCn25c2dv8TTgofzwR
 aLIQnsY7+0uDf4sp/T21lvBIg1tLrHS1VY5aodtBC5KTnN+0ndrA/FBDtt2o+TUW8jds
 SRNKvA5cKbaMTgfsaEZFJFfAWK7+V4P27Ha1oiK4k29BC5PtdUJxWTBVWwIWQiZVkMhu
 Ylew==
X-Gm-Message-State: AO0yUKWRTHlrnFYFI7IRePQsOdeYBRvPRT2XKX5R5ro0oPVAq8MMwUt8
 7X+QNClYz3x7FLSzQW81YVUZBDULyD8EEgFj
X-Google-Smtp-Source: AK7set91YfmMKU72qqT/0+2Suloo/VU0+T9AryGWYfLiAYmmVg+0ksuiM4JENmJ4mVIuOgoKpMgN9w==
X-Received: by 2002:a05:6214:19cb:b0:570:ee5c:2953 with SMTP id
 j11-20020a05621419cb00b00570ee5c2953mr39318005qvc.11.1678223333346; 
 Tue, 07 Mar 2023 13:08:53 -0800 (PST)
Received: from hurd ([2607:fad8:4:3::1000]) by smtp.gmail.com with ESMTPSA id
 s144-20020a374596000000b0073bb4312842sm10110913qka.128.2023.03.07.13.08.52
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 07 Mar 2023 13:08:52 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Josselin Poiret <dev@HIDDEN>
Subject: Re: bug#61967: guix pack error with python packages
References: <87y1occn5t.fsf@HIDDEN> <878rgbqzi0.fsf@HIDDEN>
Date: Tue, 07 Mar 2023 16:08:51 -0500
In-Reply-To: <878rgbqzi0.fsf@HIDDEN> (Josselin Poiret's message of "Sun, 
 05 Mar 2023 11:11:19 +0100")
Message-ID: <87356gw9p8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61967
Cc: 61967 <at> debbugs.gnu.org, cayetano.santos@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Josselin,

Josselin Poiret <dev@HIDDEN> writes:

> Hi Cayetano,
>
> Cayetano Santos via Bug reports for GNU Guix <bug-guix@HIDDEN> writes:
>
>> Hello guix,
>>
>>   I=E2=80=99m trying to deploy a test set of python packages to a remote=
 server,
>>   using the following guix pack command (latest guix, as for now)
>>
>>     guix pack -R --compression=3Dxz --save-provenance \
>>     -S /.guix-profile/bin=3Dbin -S /.guix-profile/share=3Dshare \
>>     -S /.guix-profile/etc=3Detc -S /.guix-profile/lib=3Dlib \
>>     -S /.guix-profile/include=3Dinclude
>>
>>   The resulting file.tar.xz is sent to the server with
>>
>>     scp file.tar.xz server:/dir1/dir2/.
>
> This is most likely [1], which hasn't been fixed yet but I have a patch
> to that effect.  The problem is that it would cause a lot of rebuilds so
> I haven't sent it yet, I'll send it after the core-updates merge.

If you send it *after* the core-updates merge (to core-updates)? It's
going to be quite a while before it lands to master.  Perhaps you could
send it now?  core-updates is the right branch for mass rebuilds.

--=20
Thanks,
Maxim




Information forwarded to bug-guix@HIDDEN:
bug#61967; Package guix. Full text available.

Message received at 61967 <at> debbugs.gnu.org:


Received: (at 61967) by debbugs.gnu.org; 5 Mar 2023 10:11:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 05 05:11:29 2023
Received: from localhost ([127.0.0.1]:38536 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pYlKy-0001BP-T0
	for submit <at> debbugs.gnu.org; Sun, 05 Mar 2023 05:11:29 -0500
Received: from jpoiret.xyz ([206.189.101.64]:56274)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dev@HIDDEN>) id 1pYlKw-0001BG-IL
 for 61967 <at> debbugs.gnu.org; Sun, 05 Mar 2023 05:11:27 -0500
Received: from authenticated-user (jpoiret.xyz [206.189.101.64])
 by jpoiret.xyz (Postfix) with ESMTPA id 07F9F185309;
 Sun,  5 Mar 2023 10:11:23 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim;
 t=1678011084;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=EwxfyyU4ozIn/pbObcBPugDw6a8fgt8hN0RKtq5rxIA=;
 b=sDzYKTt35vjWUeKkRZNqi2jQMcOoCBd4e0OoWb8QMjYZtwJ17/BL7PZ0b2HoMuwpNr5O3m
 AHrIvNF50p1oVdFTIHPVt42ePbSjcOc7Gn+jvn0Rp/jx2nrX43dd1XwQ1ZkDDjtqVhoQd9
 PYVEIzY2hiA3hL+wUUGjP9pjQohOIdmIdAPBMDXprxKrrv+aefkFSjW3QmaD5ffDydkVTy
 NJILWN8+bSUG6Kp8lBlhAQ3csz8dmbFcUaaFkbRsBx5P1rL3Z8+M1zH8SpO0dzaw1Z/jEg
 oLfWtEBZQMrNUprInbBbl85rK+4gVo9pOmPJDxPHYyNyw1fbO9ScOpxaLa+vWg==
From: Josselin Poiret <dev@HIDDEN>
To: cayetano.santos@HIDDEN, 61967 <at> debbugs.gnu.org
Subject: Re: bug#61967: guix pack error with python packages
In-Reply-To: <87y1occn5t.fsf@HIDDEN>
References: <87y1occn5t.fsf@HIDDEN>
Date: Sun, 05 Mar 2023 11:11:19 +0100
Message-ID: <878rgbqzi0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
Authentication-Results: jpoiret.xyz;
 auth=pass smtp.auth=jpoiret@HIDDEN smtp.mailfrom=dev@HIDDEN
X-Spamd-Bar: --
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61967
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Cayetano,

Cayetano Santos via Bug reports for GNU Guix <bug-guix@HIDDEN> writes:

> Hello guix,
>
>   I=E2=80=99m trying to deploy a test set of python packages to a remote =
server,
>   using the following guix pack command (latest guix, as for now)
>
>     guix pack -R --compression=3Dxz --save-provenance \
>     -S /.guix-profile/bin=3Dbin -S /.guix-profile/share=3Dshare \
>     -S /.guix-profile/etc=3Detc -S /.guix-profile/lib=3Dlib \
>     -S /.guix-profile/include=3Dinclude
>
>   The resulting file.tar.xz is sent to the server with
>
>     scp file.tar.xz server:/dir1/dir2/.

This is most likely [1], which hasn't been fixed yet but I have a patch
to that effect.  The problem is that it would cause a lot of rebuilds so
I haven't sent it yet, I'll send it after the core-updates merge.

[1] https://issues.guix.gnu.org/53258
    mid: 67e7d225-f824-b691-7125-6b37abef8bb0@HIDDEN

Best,
=2D-=20
Josselin Poiret

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmQEascQHGRldkBqcG9p
cmV0Lnh5egAKCRBQXkC5FhcaioZvDACjMmQz3d6i+Gc3SNPacn8eKLNWgY+ExL/e
zBseS5TVAn1rPOBnCv3ADwIIBJwOy1RAwHjYENsJ6WLZhg1D5lZOg6ihC3sh6VzJ
by9fMYP6sLasmTZAIsXiXKL6JrRtI3pV5fWtOrD4nISH3E68v4KYIb1WEh3Fu99r
w7GMli+0/oYjPlSZQ2SbgBB5vjIVX+GuBlqYIrwFnxhTttTLcIxHwCwRb+dwx5cC
ia5XlxYoD1MRFK2it359onst6qoB11kVPEb3HqBUtDdyKm3pQSj98H2AlKzc79Ma
Z+hhx4Ym0Q/V5meX0oc7Ttckz/dAbdcXsvGneG/O/UN0gi4sCjZY//4O+zrewdvj
KyhNwRuFdGU/lwEpD2IxS6BcL2r9YAIwMKWboD8FhgwOzE15tJWwNWfPzEpEnccu
ATRSG2Rymw9Dt4V+Bw26gtpHPEe9Y2gT/kdpR6Fr8TRoGSj+HuLsbXi6hykXjZJU
N43Vcsvz0wUpsms0M1fJM27/ORU53VM=
=fZSA
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#61967; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Mar 2023 19:49:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 04 14:49:43 2023
Received: from localhost ([127.0.0.1]:37786 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pYXt1-0002d5-C4
	for submit <at> debbugs.gnu.org; Sat, 04 Mar 2023 14:49:43 -0500
Received: from lists.gnu.org ([209.51.188.17]:39990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cayetano.santos@HIDDEN>) id 1pYXsw-0002cs-Br
 for submit <at> debbugs.gnu.org; Sat, 04 Mar 2023 14:49:42 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <cayetano.santos@HIDDEN>)
 id 1pYXst-0004kW-SB
 for bug-guix@HIDDEN; Sat, 04 Mar 2023 14:49:36 -0500
Received: from confino.investici.org ([93.190.126.19])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <cayetano.santos@HIDDEN>)
 id 1pYXsr-0005Bt-Ow
 for bug-guix@HIDDEN; Sat, 04 Mar 2023 14:49:35 -0500
Received: from mx1.investici.org (unknown [127.0.0.1])
 by confino.investici.org (Postfix) with ESMTP id 4PTb5C6cBzz1113
 for <bug-guix@HIDDEN>; Sat,  4 Mar 2023 19:49:19 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org;
 s=stigmate; t=1677959359;
 bh=t28gxTPl+hI1+/V/EEFCxVfECMnf3e887rAjLZHd3kI=;
 h=From:To:Subject:Date:Reply-To:From;
 b=uUeyRcwBPa0tCOU9q11imuMG6M8ekb81TvxUT+3V5scTm2Vp2Qb/C2BTzBgAzJkUD
 I1vltRb61WsbE1HpXQsnHCzj/Nc/p1JYy5HgoVrsYwek1nvYdGp1Tn0FVQo0tH9WmJ
 QNuQhVXWYXmFMaahsa0bd0oND/fv6ZnB4S3sgf90=
Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19])
 (Authenticated sender: cayetano.santos@HIDDEN) by localhost (Postfix)
 with ESMTPSA id 4PTb5C4qJdz110v
 for <bug-guix@HIDDEN>; Sat,  4 Mar 2023 19:49:19 +0000 (UTC)
User-agent: mu4e 1.8.13; emacs 30.0.50
From: Cayetano Santos <cayetano.santos@HIDDEN>
To: bug-guix@HIDDEN
Subject: guix pack error with python packages
Date: Sat, 04 Mar 2023 20:35:01 +0100
Message-ID: <87y1occn5t.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=93.190.126.19;
 envelope-from=cayetano.santos@HIDDEN; helo=confino.investici.org
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_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: cayetano.santos@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


Hello guix,

  I=E2=80=99m trying to deploy a test set of python packages to a remote se=
rver,
  using the following guix pack command (latest guix, as for now)

    guix pack -R --compression=3Dxz --save-provenance \
    -S /.guix-profile/bin=3Dbin -S /.guix-profile/share=3Dshare \
    -S /.guix-profile/etc=3Detc -S /.guix-profile/lib=3Dlib \
    -S /.guix-profile/include=3Dinclude

  The resulting file.tar.xz is sent to the server with

    scp file.tar.xz server:/dir1/dir2/.

  Then, when I

    ssh server
    cd /dir1/dir2

  I do a

    tar xf file.tar.xz

  At this point, a =E2=80=99ls /dir1/dir2=E2=80=99 shows, as expected

    .guix-profile
    gnu
    file.tar.xz

  Now, when I just (PYTHONPATH is empty at this point)

    /dir1/dir2/.guix-profile/bin/python3 -c \
    "import sys; print(sys.path)"

  I get

    /dir1/dir2/hj...python...
    /dir1/dir2/hj...numpy...
    /dir1/dir2/hj...matplotlib...

  instead of

    /dir1/dir2/gnu/store/hj...python...
    /dir1/dir2/gnu/store/hj...numpy...
    /dir1/dir2/gnu/store/hj...matplotlib...

  so that when I

    /dir1/dir2/.guix-profile/bin/python3 -c "import numpyt"

  I get an error

    ModuleNotFoundError: No module named 'numpy'

  If, however, I

    export GUIX_PROFILE=3D/dir1/dir2/.guix-profile
    source $GUIX_PROFILE/etc/profile
    export PYTHONPATH=3D$GUIX_PYTHONPATH

  and then

    /dir1/dir2/.guix-profile/bin/python3

  I have

    Error processing line 1 of
    /dir1/dir2/.guix-profile/lib/python3.9/site-packages/matplotlib-3.5.2-p=
y3.9-nspkg.pth:

  Trying to =E2=80=99import numpy=E2=80=99 gives

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/dir1/dir2/.guix-profile/lib/python3.9/site-packages/numpy/__in=
it__.py", line 110, in <module>
    import warnings
      ModuleNotFoundError: No module named 'warnings'

  Am I doing something wrong ? Is this a bug ?

Thanks,

Cayetano Santos




Acknowledgement sent to cayetano.santos@HIDDEN:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#61967; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 7 Mar 2023 21:15:02 UTC

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