From: Alexis Simon <alexis.simon@runbox.com>
To: Carlo Zancanaro <carlo@zancanaro.id.au>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Python package with some rust dependency
Date: Sat, 17 Feb 2024 08:46:30 -0800 [thread overview]
Message-ID: <badd97d2-8b48-471b-b80d-80f32cadb13b@runbox.com> (raw)
In-Reply-To: <87il2npawi.fsf@zancanaro.id.au>
On 17/02/2024 03:50, Carlo Zancanaro wrote:
> 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.
Thanks that makes a bit more sense I think.
>
> Also, as an aside, I'm not sure where the 'prepare-python-module phase
> is coming from. Does it actually exist?
This is a very good question I had myself and to which I couldn't find
the answer. I found examples such as those [1] in the repo and couldn't
find where this phase was specified. But it seems to work.
>
> Carlo
Alexis
[1]
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/python-xyz.scm#n3453
next prev parent reply other threads:[~2024-02-17 16:47 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
2024-02-17 16:46 ` Alexis Simon [this message]
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=badd97d2-8b48-471b-b80d-80f32cadb13b@runbox.com \
--to=alexis.simon@runbox.com \
--cc=carlo@zancanaro.id.au \
--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.