From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SNyoI/O6WmMx5QAAbAwnHQ (envelope-from ) for ; Thu, 27 Oct 2022 19:08:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OIWwI/O6WmNpzgAAauVa8A (envelope-from ) for ; Thu, 27 Oct 2022 19:08:03 +0200 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 2EC7B8045 for ; Thu, 27 Oct 2022 19:08:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo6E5-0000bp-8b; Thu, 27 Oct 2022 12:59:29 -0400 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 1oo6E4-0000at-Cm for help-guix@gnu.org; Thu, 27 Oct 2022 12:59:28 -0400 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oo6E2-00049k-UD for help-guix@gnu.org; Thu, 27 Oct 2022 12:59:28 -0400 Received: by mail-qv1-xf2c.google.com with SMTP id n18so1861211qvt.11 for ; Thu, 27 Oct 2022 09:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=UvzX5XH1bp5N3PaiY80ieDzn/GCbRptxhEaKsckmUlM=; b=bDAU0GPsHTDTXRgsnHhVZoKvabIv7T0M025IioOwulIg/AIyxkL5jpoiBFnku0USPK uiajLUjsskLXvQtUiTgLjGlsBFxb4AEnKvEUqcbstmFZTGU6fK1SljGwdIBrAqFLR8UE hZa9iuMbv2azR7NovohsGO36UNRLcUiHYWpBnRd67T51hD5culH+J0zsYCtN6o76qRaH A1xutEI9xWoZ7n1d4b4QsSYhpesaQd5agX/f49XYTyfWNJH3BCLf9zdVMaWNQwwDHOnH /2y/nsJgzs8dG+FIlo7rAtilqOEeXQ6Fegex6UiTVgWplwFWH4fww1gHrvdRJBUF0ko9 ToRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=UvzX5XH1bp5N3PaiY80ieDzn/GCbRptxhEaKsckmUlM=; b=J6rddPE0tM64KPTpkUfK86QjxXZulRl73hSze7bZ29bJF8LRPTqPUOSN3oYdPEaHMS hQ+dhNouVyEbdoMdO0dbwsueL8QYgItHoUQlO0O2YGnJmLL/QJcia9uuFPGnYysfN4K8 HVKtBXdEt15UFLqPMFgxAfzbNcRms3AiTxoNvfBpB2TmJWi/8D4kMmpcl5yXmsHzLhG9 N3SvGtuu4tIUVv9+ElhRefodqQleAqS7x63YDCNXgMV1WlFJA8el5bpYPBOiAou1N/Nf ENrRU4eRz8OAVL0AQXEWHYFn34WeVxBMqnNSMApWxxgx8mRAYz6H2QTqC1hUOYXDAD8d c6Zg== X-Gm-Message-State: ACrzQf2Q/8Huur4QeG8JlA8PPFLGZtd2mYFmJtEkEDea4C6Up2sJiuWu PZzMaU9r/27++ojH3cYTORtRjviDl/P/GA== X-Google-Smtp-Source: AMsMyM61K3Qpz2kh6enCc9lODfivI6R37Vl4DoNWilyWyu9YO0aMzonh94N5iYXJGH0YEEIjG8vS2Q== X-Received: by 2002:a05:6214:d67:b0:4bb:7435:9468 with SMTP id 7-20020a0562140d6700b004bb74359468mr18366619qvs.68.1666889965693; Thu, 27 Oct 2022 09:59:25 -0700 (PDT) Received: from hurd (dsl-152-179.b2b2c.ca. [66.158.152.179]) by smtp.gmail.com with ESMTPSA id z17-20020a05622a061100b00359961365f1sm1109264qta.68.2022.10.27.09.59.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 09:59:25 -0700 (PDT) From: Maxim Cournoyer To: Csepp Cc: Wojtek Kosior , help-guix@gnu.org Subject: Re: program prepared with `guix pack` unusable by end users References: <20221013182027.2044d8ff@koszkonutek-tmp.pl.eu.org> <87czaurh9e.fsf@gmail.com> <20221014110911.66168330@koszkonutek-tmp.pl.eu.org> <87mt9ypt4t.fsf@gmail.com> <20221017153648.7185c235@koszkonutek-tmp.pl.eu.org> <20221026092330.6df3870c@koszkonutek-tmp.pl.eu.org> <87ilk61hpu.fsf@riseup.net> Date: Thu, 27 Oct 2022 12:59:23 -0400 In-Reply-To: <87ilk61hpu.fsf@riseup.net> (Csepp's message of "Wed, 26 Oct 2022 21:55:58 +0200") Message-ID: <877d0ljj84.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f2c; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf2c.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Help-Guix" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org 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=1666890483; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=UvzX5XH1bp5N3PaiY80ieDzn/GCbRptxhEaKsckmUlM=; b=Lm7sIa7QXEsFOCDLbzK0hQOaSurlwul+aAv7tFkcXchR8csd/+/r7OR8Om1fS0z9ELQXNs 4zS3m7VlwHE2kt8lTIB3q3NX5u59CSLU5fXxB2gsAxXk6jzJdgJJPNki89jHHx/g5H9a0k mRfAlOvd8mpOUUfQFJ/BS7oN3R/AfWu8N1gt53RPS1biK5DU4Ec9OEPiepOsTNvBqa5Egu OrgwYvKJ2SwAukq3V8wyXWlrfMsgZkdaMc+AowDYANlOj0jHs9KidHQyUfH1o0S2xsysiI ptfkHjei5hhza5O9frxaLg8yfOTXMrSdiCiK5+Tgljc40c+IylHERs3FQa0eiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666890483; a=rsa-sha256; cv=none; b=oonE8uI2mN5TXqGxwOxQM6NiJqOQqI53t4LMT6jpXfVAA2XO+KuomEyuZNK3z53kH52PV8 8ZqFegIjpWOmRxK8nANn0nRZtRPZioH1kD6aGv+6OPy9fLnECZx3htU8Ip5lpitr4JWrI8 buwRd1c4BBg8tDkRIrZLwVOVO//o9KUoSUJcwAc6EjjwXYWowSVokT7+/kUy1Q+wsbls+r Iymb8PFPBTpl6IF6SIV5WWSasciyeRCZSmzXo/quUkG0Q+zO7FWmxNzaLsqG+FX7aDiGbg G2Gv9Ztj5Qowpv/JAWRtvMZqCbHURpmbCo+pPSJhS4EznCpzWE1CE8tU8nvEEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bDAU0GPs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bDAU0GPs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2EC7B8045 X-Spam-Score: -7.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: gxD7R/bkFJu7 Hi, Csepp writes: > Wojtek Kosior via writes: > >> [[PGP Signed Part:Undecided]] >> My problem has been solved. It turned out the Python interpreter >> contained within the pack was finding an older version of `hydrilla` >> Python package installed in `~/.local/lib/python3.9/site-packages` and >> that older version was missing the `console_scripts` entry point that >> was being loaded. It's worth mentioning that Python interpreter gives >> `~/.local/lib/python3.9/site-packages` priority over the paths that >> Guix adds to GUIX_PYTHONPATH. >> >> The solution was to patch the wrapper script for each of the commands >> my package provides. Definition of PYTHONNOUSERSITE enviroment variable >> stops Python from looking at local site packages. [...] >> It's worth noting that this problem is not exclusive to `guix pack` or >> to my particular package. Users of other Python programs could in some >> circumstances experience similar issues. Which makes me think - >> shouldn't the default behavior be changed? Perhaps by making Python >> give paths from `GUIX_PYTHONPATH` priority over those in user site >> packages directory? Should I report this as a bug to bug-guix@gnu.org? >> >> Best, >> Wojtek [...] > IMHO yes, the pack output does not work as expected. That's the > definition of a bug. I disagree. That Python gives precedence to USERSITE compared to site-packages and GUIX_PYTHONPATH is by design, so that users can override system provided libraries such as those by Guix. It used to be the other way around, and it caused all sort of problems such as virtualenv not working as expected on Guix. -- Thanks, Maxim