From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YIVxK+GzfWFSXwAAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 23:06:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0OgpJ+GzfWFmYwAA1q6Kng (envelope-from ) for ; Sat, 30 Oct 2021 21:06:41 +0000 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 E9ADD6AEE for ; Sat, 30 Oct 2021 23:06:40 +0200 (CEST) Received: from localhost ([::1]:44000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgvYm-0007Y6-3S for larch@yhetil.org; Sat, 30 Oct 2021 17:06:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgvYX-0007Xy-LZ for help-guix@gnu.org; Sat, 30 Oct 2021 17:06:25 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35361) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgvYU-0000wq-EM for help-guix@gnu.org; Sat, 30 Oct 2021 17:06:25 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id BB543240026 for ; Sat, 30 Oct 2021 23:06:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1635627976; bh=wbBOlJNNKt0oXADK9TzyeabZfm40mZU3ak+dnJOS0qI=; h=From:To:Subject:Date:From; b=Mj02ZLdzJbeoC5+bonHPl7hJ8TR2g3UwkqW8H+TyJneCRhcs+OpmYhnnZzZYfszJa Ji7U7FT/3URFpeGNSSDQlLYegSlQB9ttzVxh+nmziy7FvtJzKZCw5zoxJbRJiV43U1 Rzl0NEaQpVWXo/SxFu2xy66Yc7/mvFhyL0Dr8rwX7Q5CIKYCrV4c9NnpvFZdO9/ISy 9D2xhqfBfqKHqW/IIWVgPKYOpZRC8TR7U7TaS6BSs/FtzuJmtdq3Z/eRIW+nS0wfMa pjf5qslE7ypkp7NX7KaUi0huwv0N1qhcT3/8mH+a6f4+kQwQuUZj9DAHENSfEQRzg9 vWh2L1Bm1Bwng== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HhX080GvGz6tm4 for ; Sat, 30 Oct 2021 23:06:15 +0200 (CEST) From: Fredrik Salomonsson To: help-guix Subject: no binary for interpreter `python' found in $PATH Date: Sat, 30 Oct 2021 21:06:13 +0000 Message-ID: <875ytemddm.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=plattfot@posteo.net; helo=mout01.posteo.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, RCVD_IN_MSPIKE_H2=-0.001, 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.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635628001; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nFuGhzZZ0ZY/ehhk7kjeoJsiD+z/P2SRzmsSU/7NMh4=; b=R6lmD9ASIZT5mYszm8ohBuj/Xpcu+4mcmssX42BS8gAOTaj0m/12gwuX/DWyZUsJu71kw8 kYJHlRdtjcD6ISm5b9CVIHfvDCEKX52ndiSR64eTyoM5a9M1w/jDAFzOiyW2CI4o6Vqi8g 90lM8KhsTBCZczGp42uP+ya8fCIKkMU2lqh7CtNyUG5aV07aSu5jokL4IHMdas6AYZ8Fmq 6mVUAEl7RE0r+4MnDdqQIsrWi+fhlrHpK9QNlzpj2Omerrznicf8tR0jR8rUAPJhFT1y7s Qb4ex9e6bp6IfyXufpZZnuqiX1eUPFjts16+Z22RVhhghIanoxipP7KmccXzgw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635628001; a=rsa-sha256; cv=none; b=MtgE0mN2gWm1qXGG8IMgnD+UTZtbPVJWjCGxrNJbTMEVF9IZmekRrZ+KOEj99HOE7Uf+XY g4577gsSbOilK4zzcvZ4ZwtWwIUBtZ3M6+ny4QxgnmYQeOYs5MhcVlmHzPJrJzfBKmr0t6 sg1CT/Gv3IxIimsgYwaQFyIgVgQeQZq6gwA6CyM4JzO6OPf+Kr3hjD/Wtg/JXSTuT3GAEI xpYFWWC2Wlvlt0NeHhqL6aZUO4n/94DqZR8hldMsj3go9lPoesbJXnWy5KDxErg1nz7xK1 3ZN+UOzU7YnMOPVlEf9OG0TpAxKsK02ifNiY1kUlYHu8LdvTYqZ9Qz5bLGHjxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Mj02ZLdz; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Mj02ZLdz; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: E9ADD6AEE X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: hZRLox891Z1j Hi Guix, I'm trying to package up my simple python script for copying images from my camera. But I'm encounter an issue when building, namely the patch-shebangs phase does not find python and therefore skips patching the shebang line. Here's my definition --8<---------------------------------------------------------------------------- (define-module (plt packages photo) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (gnu packages python) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages man) ) (define-public picmover (package (name "picmover") (version "1.2.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/plattfot/picmover") (commit (string-append "v" version)))) (sha256 (base32 "1js9zlg2hzarkqwiadkmj7kk7dxvij2yjwlrf6xdbsa3ckym55yz")) (file-name (git-file-name name version)))) (build-system gnu-build-system) (arguments '(#:tests? #f #:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))) #:phases (modify-phases %standard-phases (delete 'configure)))) (native-inputs `()) (inputs `(("python" ,python) ("man-db" ,man-db))) (propagated-inputs `(("python-pygobject" ,python-pygobject) ("gexiv2" ,gexiv2))) (synopsis "Image and video importer/organizer") (description "Moving pictures and videos from one location to another, using metadata to determine camera maker, model, date and location. Useful for importing files from a camera.") (home-page "https://github.com/plattfot/picmover") (license license:gpl3+))) ---------------------------------------------------------------------------->8-- I ran it with: --8<---------------------------------------------------------------------------- guix build -L ~/projects/plattfot-guix-channel/ picmover ---------------------------------------------------------------------------->8-- (it's in my custom channel at the moment) In the output when building I see: --8<---------------------------------------------------------------------------- ... starting phase `patch-shebangs' patch-shebang: /gnu/store/ddqy6n4br1snnv57cxybdmycgyc2h01f-picmover-1.2.4/bin/picmover: warning: no binary for interpreter `python' found in $PATH phase `patch-shebangs' succeeded after 0.0 seconds ... ---------------------------------------------------------------------------->8-- And double checking with the output and it is indeed unpatched. --8<---------------------------------------------------------------------------- head -1 $(guix build -L ~/projects/plattfot-guix-channel/ picmover)/bin/picmover #! /usr/bin/env python ---------------------------------------------------------------------------->8-- I've probably missed something obvious in my package definition but I cannot see what. Shouldn't the inputs field add python to the $PATH? Does anyone know what I'm missing? Thanks -- s/Fred[re]+i[ck]+/Fredrik/g