From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0NaTATgPCWKLhwAAgWs5BA (envelope-from ) for ; Sun, 13 Feb 2022 15:01:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KHvRNTcPCWKZhgAAG6o9tA (envelope-from ) for ; Sun, 13 Feb 2022 15:01:27 +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 80DBE1115B for ; Sun, 13 Feb 2022 15:01:22 +0100 (CET) Received: from localhost ([::1]:38714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJFRJ-000474-Cp for larch@yhetil.org; Sun, 13 Feb 2022 09:01:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJFQb-00046f-2U for help-guix@gnu.org; Sun, 13 Feb 2022 09:00:39 -0500 Received: from out2.mail.ruhr-uni-bochum.de ([134.147.42.229]:41133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJFQY-0005YX-4h for help-guix@gnu.org; Sun, 13 Feb 2022 09:00:36 -0500 Received: from mx2.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by out2.mail.ruhr-uni-bochum.de (Postfix mo-ext) with ESMTP id 4JxTWz00mZz8SJj; Sun, 13 Feb 2022 15:00:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1644760831; bh=gdSCSBz6y4U3CgW5eQZS0T1FrItTLjL//fqP7HjZX/8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=CH2D88y7UOaC0+WqBxsu24nIpJ7E3E5A3WHqbDzxNrlqwT9vANT+pbKhAgnj0p0zv 9AQzhl9ONh690rYf6E8ViuCclJiDa+8z30ZwpH5H5Ro1+BHtILyeu/kYiAUxV9/lKN 0aS8EUvV7bW+bcpIDFLKlqqYbO1PPdoIsQn5dgfU= Received: from out2.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by mx2.mail.ruhr-uni-bochum.de (Postfix idis) with ESMTP id 4JxTWy6LBcz8SJ3; Sun, 13 Feb 2022 15:00:30 +0100 (CET) X-Envelope-Sender: X-RUB-Notes: Internal origin=134.147.42.236 Received: from mail2.mail.ruhr-uni-bochum.de (mail2.mail.ruhr-uni-bochum.de [134.147.42.236]) by out2.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTP id 4JxTWy4WG9z8SK4; Sun, 13 Feb 2022 15:00:30 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.1 at mx2.mail.ruhr-uni-bochum.de Received: from think (dslb-002-207-030-240.002.207.pools.vodafone-ip.de [2.207.30.240]) by mail2.mail.ruhr-uni-bochum.de (Postfix) with ESMTPSA id 4JxTWy2hN8zDgyd; Sun, 13 Feb 2022 15:00:30 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.2 at mail2.mail.ruhr-uni-bochum.de From: =?utf-8?Q?Daniel_Mei=C3=9Fner?= To: Jacob MacDonald Cc: help-guix@gnu.org Subject: Re: trash-cli commands fail after upgrade to 0.21.10.24 References: <87k0e2u8w3.fsf@ruhr-uni-bochum.de> Date: Sun, 13 Feb 2022 15:00:29 +0100 In-Reply-To: <87k0e2u8w3.fsf@ruhr-uni-bochum.de> ("Daniel =?utf-8?Q?Mei?= =?utf-8?Q?=C3=9Fner=22's?= message of "Thu, 10 Feb 2022 14:51:56 +0100") Message-ID: <87fsomx3wi.fsf@ruhr-uni-bochum.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=134.147.42.229; envelope-from=daniel.meissner-i4k@ruhr-uni-bochum.de; helo=out2.mail.ruhr-uni-bochum.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-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=1644760882; 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: 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=V3iFprGtjcv2rna9XjhAqng67jYXFYQrJ33D844SgYQ=; b=czXk8fGMH1MCC1OjGRJSC9rclJDiYIThkkIAZriXpHCfh5WvZGCUlOLA73zPLM2s8/J36M i9X6n4eQAIRTt980vnqQ5jtxu7zUS7Z1iTjTZMZfFt0C5DzYZ7rGyPk5Q//3pZe0xzJgJn Ein1/1/OGfRyWtcniBEQ8shLdsahplyZOso8TRk4JmPpVdKAA8PdAKDJaq8QnTf2VfU88q jDKZqsH6tHB0KY4AbKLGLPIHVDEgBZQJGQH/0Rjv/ZZ0pj7CSGtw7XT1h1cduZX0gmpV4M c9BCpOlYZpl6Ds/39o/IxcUZxuQwrIsBzj2bUrUXte7v5DSR2jJA+FREyUI8Sg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644760882; a=rsa-sha256; cv=none; b=rlv5ea0QJHHHP24H4XBdTjPM8rFoNQD3473LkMMuSscIEh3wiRYtmuqnCLG5IsOQg8MI/r cdslRs8IPqyx/iLU0NYon6BloH6cBnopkSaZLejLvHcf4Nk+7GiBPf2Y4OfW69N23aN7ow 1iREt1mvIVjX4oLwW1Ggv5CMc2tFbFb5EKoZcUuBwKH3W18YvKb6XmWnoXD5pvK5Sf/2w2 AnJhhls+tqPf0taikGVuYHiOahXtVbhZTI/VdxZ34Pd8TDEj/dRh3JAWHCXU657z5chrMj sBUV0DZ7sZ9z0bl6YMGL29F51JwDyGrQqxw5vSxf0zNwtUBU23WekjscVnXeNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ruhr-uni-bochum.de header.s=mail-2017 header.b=CH2D88y7; dmarc=pass (policy=quarantine) header.from=ruhr-uni-bochum.de; 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: -5.73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ruhr-uni-bochum.de header.s=mail-2017 header.b=CH2D88y7; dmarc=pass (policy=quarantine) header.from=ruhr-uni-bochum.de; 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: 80DBE1115B X-Spam-Score: -5.73 X-Migadu-Scanner: scn1.migadu.com X-TUID: u5nCFldffFUI Hi, after setting GUIX_PYTHONPATH I was able to get the cli working (see below). This means the package needs a fix. We could either patch the scripts to include something like: --8<---------------cut here---------------start------------->8--- import sys sys.path.insert(0, "@pythondir@") --8<---------------cut here---------------end--------------->8--- or maybe we could use the wrap-program procedure to wrap it with GUIX_PYTHONPATH set correctly. Is either method preferred? Here's how it worked for me: --8<---------------cut here---------------start------------->8--- daniel@think ~$ guix shell trash-cli substitute: Liste der Substitute von =E2=80=9Ehttps://ci.guix.gnu.org=E2=80= =9C wird aktualisiert =E2=80=A6 100.0% 0,4 MB will be downloaded python-psutil-5.8.0 304KiB = 1.8MiB/s 00:00 [##################] 100.0% trash-cli-0.21.10.24 49KiB = 1.0MiB/s 00:00 [##################] 100.0% The following derivation will be built: /gnu/store/fc26wwgy2zbq7k6271w8ksvaf3x10r0h-profile.drv applying 1 graft for /gnu/store/rrchh68lpzrg70mf3awgr4y0ks788bgj-python-psu= til-5.8.0.drv ... applying 1 graft for /gnu/store/3pr2lwjan1i88aqs70bvv3m81z9xvfs3-trash-cli-= 0.21.10.24.drv ... building CA certificate bundle... listing Emacs sub-directories... building fonts directory... building directory of Info manuals... building profile with 1 package... daniel@think ~ [env]$ trash Traceback (most recent call last): File "/gnu/store/kbsw86qqip1p9yzrnm36d71xhk278m1l-profile/bin/trash", lin= e 4, in from trashcli.put import main as main ModuleNotFoundError: No module named 'trashcli' daniel@think ~ [env]$ GUIX_PYTHONPATH=3D$GUIX_ENVIRONMENT/lib/python3.9/sit= e-packages trash Usage: trash [OPTION]... FILE... trash: error: Please specify the files to trash. daniel@think ~ [env]$ --8<---------------cut here---------------end--------------->8--- Best, --=20 Daniel