From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ABDNDuG5YWJtkgAAbAwnHQ (envelope-from ) for ; Thu, 21 Apr 2022 22:09:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GKOfDuG5YWKQnwAAauVa8A (envelope-from ) for ; Thu, 21 Apr 2022 22:09:05 +0200 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 ADFD82C302 for ; Thu, 21 Apr 2022 22:09:04 +0200 (CEST) Received: from localhost ([::1]:45586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhd6t-0001Ys-8q for larch@yhetil.org; Thu, 21 Apr 2022 16:09:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhd6p-0001V4-UM for gwl-devel@gnu.org; Thu, 21 Apr 2022 16:08:59 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:37078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhd6n-0002Rj-J1 for gwl-devel@gnu.org; Thu, 21 Apr 2022 16:08:59 -0400 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 23LK8nfX002396 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Apr 2022 16:08:54 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 23LK8nfX002396 To: Ricardo Wurmus Cc: gwl-devel@gnu.org Subject: Re: Guile code snippet In-Reply-To: <87ee1qs3qf.fsf@elephly.net> References: <87h76oo26s.fsf@laura> <87r15srshn.fsf@elephly.net> <87ee1rohrk.fsf@laura> <87ilr3sawb.fsf@elephly.net> <874k2mo0vk.fsf@laura> <87ee1qs3qf.fsf@elephly.net> Date: Thu, 21 Apr 2022 16:08:49 -0400 Message-ID: <87pmlaurla.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Thu, 21 Apr 2022 20:08:49 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: gwl-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gwl-devel-bounces+larch=yhetil.org@gnu.org Sender: "gwl-devel" Reply-to: Olivier Dion From: Olivier Dion via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650571745; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=bKWjEuNVVpV1l8wvGnSmCaVAuU3OrlQn8SwgK3mePHI=; b=VKahkdwhPTIHbPavykth9FvS6A15THv4NdiBOIq2XwD472ovX6jg1+gsqZmwpT9lInYFP9 M7c+/UtWCpOHOEbn2YOWhxFUZRono568GrPB6XRGvUk705h4hygC5sgcwOQmXAr3U/hEpW iYmcNUIE9LR/e+b7/lfwotroIz7sdrsKK+EGU7A3Pz3bRuKgxXXBeraxiYQJtGLSft2/5L MwPucBJIRvDxrf6Gw9TkMyOODBhKI9IN7yrjwBDgECoTbYLUedGpyGVwCnuksK/s4a149Q SoZbEOtLHdKFwCzahdZWpNsnRgxvtrdKQIjLBGL6BXhTJuTPCwi8+/c2vRtWvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650571745; a=rsa-sha256; cv=none; b=pz+EcC/wKnAPZZn5Rhuasb+i/GU3r3aMTPhWThjMJuqPle4EJXmH8VBhSUQYPo5gaFw5EJ 2BWEXaveSlIS+5MreVzLD2ZPh3EWLYSVARf9ATJVRfEpwpx0shMcJELZZ/0QzjPxSIV0JP Nm5KTCbcMhbfNCl2tz3N2xmOkdK5JPQ+D4SwVHVBlmU5iHSG8M4v3vsadwnY1bAPaTmRY3 rJEyOBJGgY8yCMwSYVLZc4xp7RNQ8drsN0H5TJXDkfoXhkJhc27f/QqegBHnMV0eSTzeO6 qZHIkzSrjmW1RwVa+u9L+cn9sO0Zi0SVWgFQz9dckuC2YAqkW7yL6QK+Bk/Ybg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: ADFD82C302 X-Spam-Score: -4.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: VyBzB6jH6o0e On Thu, 21 Apr 2022, Ricardo Wurmus wrote: >>> This is now fixed with commit >>> dceec9ecb9e24252ab9130f7a3626c00b2ff1a68. I tried this: --8<---------------cut here---------------start------------->8--- process foo packages "guile" "guile-fibers" # /bin/guile { (use-modules (fibers)) } workflow bar processes foo --8<---------------cut here---------------end--------------->8--- and got: #v+ info: .07 Loading workflow file `test.w'... info: .75 Computing workflow `bar'... run: 1.35 Executing: /bin/sh -c /gnu/store/4a49gb4b2ha7hms9jddkzf0d4hj5wqj5-gwl-foo.scm '((inputs) (outputs) (values) (name . "foo"))' ;;; Stat of /home/old/softwares/gwl/ (use-modules (fibers)) failed: ;;; In procedure stat: No such file or directory: "/home/old/softwares/gwl/ (use-modules (fibers)) " Backtrace: 0 (primitive-load "/home/old/softwares/gwl/ (use-modules ?") ERROR: In procedure primitive-load: In procedure open-file: No such file or directory: "/home/old/softwares/gwl/ (use-modules (fibers)) " #v- seems like the interpreter is trying to stat the concatenation of /bin/guile and the code. Also tried this: --8<---------------cut here---------------start------------->8--- process foo packages "guile" "guile-fibers" procedure . `(begin (use-modules (fibers))) workflow bar processes foo --8<---------------cut here---------------end--------------->8--- and got: #v+ info: .08 Loading workflow file `test.w'... info: .75 Computing workflow `bar'... run: 1.35 Executing: /bin/sh -c /gnu/store/fp7fi4ksr16mlgwncdl38w9nw5a9kn15-gwl-foo.scm '((inputs) (outputs) (values) (name . "foo"))' Backtrace: 5 (primitive-load "/gnu/store/fp7fi4ksr16mlgwncdl38w9nw5a?") In ice-9/eval.scm: 619:8 4 (_ #(#(#(#(#(#(#(# ?) ?) ?) ?) ?) ?) ?)) In ice-9/boot-9.scm: 3935:20 3 (process-use-modules _) 222:17 2 (map1 (((fibers)))) 3936:31 1 (_ ((fibers))) 3330:6 0 (resolve-interface (fibers) #:select _ #:hide _ #:prefix ?) ice-9/boot-9.scm:3330:6: In procedure resolve-interface: no code for module (fibers) error: 1.39 process `foo' failed with return value 1. #v- Looks like GUILE_LOAD_PATH is not set. -- Olivier Dion oldiob.dev