From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uEAnOutXc2XWNQAA9RJhRA:P1 (envelope-from ) for ; Fri, 08 Dec 2023 18:52:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uEAnOutXc2XWNQAA9RJhRA (envelope-from ) for ; Fri, 08 Dec 2023 18:52:44 +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 D6F676B79A for ; Fri, 8 Dec 2023 18:52:43 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fVAx64b2; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702057963; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Q/CSSOlGdXCZxJFlVgCIxcbSPALhtoZknVIhZgb8kR4=; b=U04Np0lgu0w22GRQJ8VxAIA0M+6YXzDD9TpYO+RTmBa2t9Kjoni5ehepZ8x1b1fTC80Sv3 ozp+yr5x33Pt3bHwTEn6rsoCWQtOuVLF3/o67VsStoc4ztZdMhiauYw5Xmxdz6u8z0b/80 ptG2GDgIijHKIEfg2zaQhi4f0hckImVVXaS9SW85kE0P1/It2E8F2WKfeDPHyH/chbFZ1o Fo9KzGXZFuwBauA88LT698DVHO7RjlthcxIdc6YkjOApaYv/J8pCMYCfbd44+gRCrE0bD0 FNCW+Li65GyksWhzX+TZAVLMJHssPEgtQNm8ZSseITvGw0lE7mGj8pOhMap/Gg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fVAx64b2; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702057963; a=rsa-sha256; cv=none; b=WG92Tp1Np5d1HK7Of/gIhHhiVA55M6/8KrD0kLoUuTSdgluKPw3nCURHTthG4ACLY6Bmsv pGnj2PVlpT2aC5jsxpjxhbU7aZTauEETxUSmAWnvpr/0VBHo5aAvbZ/wsffd0DXBvBdBxi oG6i35eg0G549N8FWXr/EHbAxY/Ej6XN+Q4RM9Pn/j5GbSbCnxUTBB2i0kHJf79RuKtYE0 SSjcPXvg0okoLxJ+HBIbcI0+PzOa30ZMTUIt0xhmUwYxGbvjPdX3/yCmEpohUzQ7GoGR8v 9hOzb+tU6DKtg1QCPTeeBC8XaPSl2b/vnn+zbmT6OWokJx3WAqyqEz1wyW26+Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBf0h-0001jX-12; Fri, 08 Dec 2023 12:51:35 -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 ) id 1rBf0a-0001hZ-NX for guix-devel@gnu.org; Fri, 08 Dec 2023 12:51:28 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBf0U-0003pI-T0 for guix-devel@gnu.org; Fri, 08 Dec 2023 12:51:28 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40c2655da63so2637105e9.1 for ; Fri, 08 Dec 2023 09:51:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702057881; x=1702662681; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Q/CSSOlGdXCZxJFlVgCIxcbSPALhtoZknVIhZgb8kR4=; b=fVAx64b2k2Hgsgwwb9ZXliONkKLC9mfSsBE2/vCc7y51UKeDHtVaqbKaQidIWs8j15 WdEsp5IVhnwXH0GAob7dFc97Tr6mIBP1DBNrBzsszsmEEDo4ApXpxavRXpUPf2D/LARn QzRF/d9OCg1ZCKzb8GKww/slreJRBczDj4e0slLVtvhf6agaoEfGNC8sZqLb5WACdHaQ YsA+j/3QknpT4CJQq4nF5bgamoqzy9y5BdZoE9Ja+DUsIqLFOBhYTrD7LgQ/RjkaESY6 PBUcJ5o1ue+F7lPSZvCO+nKuUG2nCyeJ6hR+2cmqPAL94SJbAzZXcczOeHhX/7HLC4i4 MqtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702057881; x=1702662681; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Q/CSSOlGdXCZxJFlVgCIxcbSPALhtoZknVIhZgb8kR4=; b=Rgx36VeQmWqGA5R7MF350xOuwYULbHrD/USf/MKNcF5ye5Y3j4viCXpHjv29/+mCiH 9bB3oEKxk9AVVYXslWUlt7QjcIgHrzfDV1kEeyHnoqPZ1jnNJN/QHPKLo0vv7PUnHenC sfwd/L+6VWvLqJ5FgB7+xwv5wXImxjejEtCQpzCnnKZhDxQG+oTdi4NWwRxL+jy12RYA 8pBJVuYRGCKCPjhPjUL/nzjYqk3karox3htjhOkXMissFZguu02RXeXiAjiYZwEfkf42 PVSPQIdysFZ8l7VXJOprQ1RaqDlxyt6JstbxH4v6Zl341DfGtbU7tb9uOl73iG2PCWSn yp7Q== X-Gm-Message-State: AOJu0Yy2VGsky3wtWFPyhTBakQZTkPC6zcvU0/7TWhAZmdPMQSvdczdm nmD/ts2YbGzF5LXVBmM0MtiWrpVImFE= X-Google-Smtp-Source: AGHT+IGJNOgdrkF2Z6THfd2Si4j2DPw43kPpFLi25wBzY1fC4uo2hVUe3M06AgbVS04Xy7zMZDg3DQ== X-Received: by 2002:a05:600c:35d6:b0:405:358c:ba75 with SMTP id r22-20020a05600c35d600b00405358cba75mr461941wmq.0.1702057881263; Fri, 08 Dec 2023 09:51:21 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id bg38-20020a05600c3ca600b0040b540ff0a5sm3519669wmb.19.2023.12.08.09.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 09:51:20 -0800 (PST) From: Simon Tournier To: Konrad Hinsen , Guix Devel Subject: Re: What's the difference between a shell environment and a profile? In-Reply-To: References: Date: Fri, 08 Dec 2023 18:35:54 +0100 Message-ID: <8734wc7g1x.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32b.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.46 X-Spam-Score: -8.46 X-Migadu-Queue-Id: D6F676B79A X-Migadu-Scanner: mx10.migadu.com X-TUID: xIi/ggVZeP3j Hi Konrad, On Fri, 08 Dec 2023 at 17:24, Konrad Hinsen wr= ote: > First, I tested some Python 2 scripts in a shell environment: > > guix time-machine -C ./channels.scm \ > -- shell --container \ > python2 python2-mmtk python2-matplotlib \ > --with-input=3Dpython2-numpy=3Dpython2-numpy@1.8.2 \ > -- python > > Works fine. Next, I wanted to create a Guix profile with the same > software, mainly to keep it in the store for long-term future use, > surviving garbage collection: > > guix time-machine -C ./channels.scm \ > -- package -p ./python2-profile \ > -i python2 python2-mmtk python2-matplotlib \ > --with-input=3Dpython2-numpy=3Dpython2-numpy@1.8.2 > > Guix wasn't happy at all with this: Guix is not happy with =E2=80=99shell=E2=80=99 but pass silently the collis= ion; from my understanding. Somehow, then the Python script works but by chance, I guess. > guix package: error: profile contains conflicting entries for glib > guix package: error: first entry: glib@2.70.2 /gnu/store/64bdjb3nwdka= dmy5z2wph9cgqr0bwijm-glib-2.70.2 > guix package: error: ... propagated from cairo@1.16.0 > guix package: error: ... propagated from python2-pycairo@1.18.2 > guix package: error: ... propagated from python2-matplotlib@2.2.5 > guix package: error: second entry: glib@2.73.3 /gnu/store/kf488k7v0lc= 48ylbs4xxpam0dbl3r4jl-glib-2.73.3 > guix package: error: ... propagated from gobject-introspection@1.73.1 > guix package: error: ... propagated from python2-matplotlib@2.2.5 > hint: You cannot have two different versions or variants of `python2-ma= tplotlib' in > the same profile. > > In the end I did: > > guix time-machine -C ./channels.scm \ > -- shell --container -r ./python2-profile \ > python2 python2-mmtk python2-matplotlib \ > --with-input=3Dpython2-numpy=3Dpython2-numpy@1.8.2 \ > -- python > > which should have the effect I am looking for, but I don't understand > how this differs from the "guix package" attempt that failed. The > difference seems to be related to the =E2=80=93with-input transform, beca= use > I don't see what else could cause the "two different versions of > python2-matplotlib" to be around. It does not differ. What differs is that =E2=80=9Cguix shell=E2=80=9D rais= es nothing for the collision =E2=80=93 maybe =E2=80=9Cguix shell=E2=80=9D does not che= ck the collision, I do not remember =E2=80=93 when =E2=80=9Cguix package=E2=80=9D raises an err= or for the same collision. Well, since it is a past Guix revision provided by the file channels.scm, I do not know if this collision could now be fixed. Cheers, simon