From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8BvHGBfj0GVGXAAAe85BDQ:P1 (envelope-from ) for ; Sat, 17 Feb 2024 17:47:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 8BvHGBfj0GVGXAAAe85BDQ (envelope-from ) for ; Sat, 17 Feb 2024 17:47:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector1 header.b="if7/Q7dh"; 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"; dmarc=pass (policy=quarantine) header.from=runbox.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708188439; 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=4G3HqUM4Ztle65lYcCd5cRXhw1r1P2lhr0Utx69oZL4=; b=WUN8onkXwRPaOakpAw7Xg7Ajy47eOQdXokVpgQajxIyiWb/Gm6P4cpUn0bvjZo7aICxlqF L4DS03t5eRHOycZhJOXAtLLBuvcrrsgbuskoc2nqp2bfkEYcEbJOt2kEu86uIQm6Kkjh+1 fZbriOJuXSertToYRjHLZes20NYLez0C4f658M9Y69qDLr7heO+fR2N3OVqXsOROiHLvvb rMdH8LhpklzzeVE+iJFP/hzMG6wGxgkLh9AgAkDVroZaVkWIrTQixAcWsUlCLMLb1LFia7 FBs5RpOHaKmRJSfXljqlQOUTSP5oHV6r2mycknFgl9ny/HmmvtcZqwS6hINE8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector1 header.b="if7/Q7dh"; 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"; dmarc=pass (policy=quarantine) header.from=runbox.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708188439; a=rsa-sha256; cv=none; b=PCyoOOekbsupKIFXd42lbLrouIqrigGuf7e6FP5mZdJly7urPDvK+YPLFE8a68PQGb9gLx KZUGfhKC24zU+71RPatbEjM5hvKui16nG4ww2HITo9iYxhSh045GcyaJy1vJ4IjsPs87oh kvsQBIagZdJM+I5ES/d5dUcdAcRuW3NewzXbzpXRAInu3Xy3kAqKbWP6IPb0Zrjk0uBWj4 2h+oWsFBBSUvEvbQphbUbvVlgTCYoXF0zZ1OtT3t3XGUjdHh9bJgSLZdlyzy0q49hGepOw BKxWIiyUTw1KVHnteGdP8p5mSzZtxuqkj3IIMkCLCQSrDTczmVYKQV06urtIhg== 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 4CEC61955B for ; Sat, 17 Feb 2024 17:47:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbNq1-0005Vp-Cs; Sat, 17 Feb 2024 11:46:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbNpz-0005VL-6V for help-guix@gnu.org; Sat, 17 Feb 2024 11:46:51 -0500 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbNpw-0002mR-Fx for help-guix@gnu.org; Sat, 17 Feb 2024 11:46:50 -0500 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rbNpo-00AyA2-RU for help-guix@gnu.org; Sat, 17 Feb 2024 17:46:40 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=4G3HqUM4Ztle65lYcCd5cRXhw1r1P2lhr0Utx69oZL4=; b=if7/Q7dhB+yiklgRJ1c5QEwhyM f1tbj+Mnvc1sX6yUVCtvAQZNQ7MHWVkFXi9hjTi0WALR29UZ+NsXgobyzg4wKm0o2GGi/37VsEfD5 3wC6BYgyHq1WMrJqFjEAyKgbGCnRJjWUiRqRbBIm+Wdt9ggWz8DkIeDaFzYz9LHCHr7GhdzMTVY+L n5A3TzHNnAqyHdyo+C0EkdqO792siocCsJXfCWqk1hawQ5axmT3QTX9hzfe0NlPzmTnrrz9yX6Do9 eFh/hBZWnjDaCPjAWraL7QchkFVZZb6kusCtKWZPdITjBnRClPN0z8D8qclLS2RJm/oR99JzZ7uuz zBuvS9hA==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rbNpn-00009I-DR; Sat, 17 Feb 2024 17:46:39 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (1174703)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rbNph-003Dfe-Hv; Sat, 17 Feb 2024 17:46:33 +0100 Message-ID: Date: Sat, 17 Feb 2024 08:46:30 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Python package with some rust dependency To: Carlo Zancanaro Cc: help-guix References: <0fdf88c8-1f1a-420b-a27c-aa07cb273059@runbox.com> <875xyt8dna.fsf@zancanaro.id.au> <493a23e1-ab4e-4a29-b937-6b0455db3be0@runbox.com> <87jzn8vxz9.fsf@zancanaro.id.au> <87il2npawi.fsf@zancanaro.id.au> Content-Language: en-US From: Alexis Simon In-Reply-To: <87il2npawi.fsf@zancanaro.id.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a0c:5a00:149::25; envelope-from=alexis.simon@runbox.com; helo=mailtransmit04.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -11.01 X-Spam-Score: -11.01 X-Migadu-Queue-Id: 4CEC61955B X-TUID: iqwF/yrYGAjM 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