From: Fredrik Salomonsson <plattfot@posteo.net>
To: help-guix <help-guix@gnu.org>
Subject: no binary for interpreter `python' found in $PATH
Date: Sat, 30 Oct 2021 21:06:13 +0000 [thread overview]
Message-ID: <875ytemddm.fsf@posteo.net> (raw)
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
next reply other threads:[~2021-10-30 21:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-30 21:06 Fredrik Salomonsson [this message]
2021-10-30 21:35 ` no binary for interpreter `python' found in $PATH Ricardo Wurmus
2021-10-30 22:57 ` Fredrik Salomonsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875ytemddm.fsf@posteo.net \
--to=plattfot@posteo.net \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).