From: Carlo Zancanaro <carlo@zancanaro.id.au>
To: Alexis Simon <alexis.simon@runbox.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Python package with some rust dependency
Date: Sat, 17 Feb 2024 22:50:37 +1100 [thread overview]
Message-ID: <87il2npawi.fsf@zancanaro.id.au> (raw)
In-Reply-To: <f5bf57b4-fbc3-4763-a88c-2f44f77439cb@runbox.com> (Alexis Simon's message of "Fri, 16 Feb 2024 16:02:45 -0800")
Hi Alexis,
On Fri, Feb 16 2024, Alexis Simon wrote:
> ```
> error: in phase 'check-python-module': uncaught exception:
> wrong-type-arg "apply" "Apply to non-list: ~S" (#f) (#f)
> phase `check-python-module' failed after 0.0 seconds
> ...
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure apply: Apply to non-list: #f
> ```
This error sounds like you're trying to call #f as a function. Since
this is happening in the 'check-python-module phase, we can look at this
code:
> (add-after 'install-python-module 'check-python-module
> (lambda* (#:key inputs #:allow-other-keys #:rest args)
> (apply (assoc-ref py:%standard-phases 'check) args)))
I assume that (assoc-ref py:%standard-phases 'check) is returning #f,
which is causing the error. Given you don't use inputs, you could try
the same thing as you've done for the other phases like:
(add-after 'install-python-module 'check-python-module
(assoc-ref py:%standard-phases 'check))
But I'm not sure that will help you if the assoc-ref is really returning
#f. I guess in the worst case you could just leave out the check phase
entirely.
Also, as an aside, I'm not sure where the 'prepare-python-module phase
is coming from. Does it actually exist?
Carlo
next prev parent reply other threads:[~2024-02-17 11:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-12 1:49 Python package with some rust dependency Alexis Simon
2024-02-12 23:29 ` Carlo Zancanaro
2024-02-13 19:36 ` Alexis Simon
2024-02-13 21:46 ` Carlo Zancanaro
2024-02-13 21:55 ` Alexis Simon
2024-02-16 6:08 ` Alexis Simon
2024-02-17 0:02 ` Alexis Simon
2024-02-17 11:50 ` Carlo Zancanaro [this message]
2024-02-17 16:46 ` Alexis Simon
2024-02-17 19:25 ` Alexis Simon
2024-02-18 3:03 ` Carlo Zancanaro
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87il2npawi.fsf@zancanaro.id.au \
--to=carlo@zancanaro.id.au \
--cc=alexis.simon@runbox.com \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.