From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id WA9lLqVaQmYrfQAAqHPOHw:P1 (envelope-from ) for ; Mon, 13 May 2024 20:23:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WA9lLqVaQmYrfQAAqHPOHw (envelope-from ) for ; Mon, 13 May 2024 20:23:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=NUPmNTIQ; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715624613; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uHR8mFdGM+YkhGFAhwT7G+LtTdTIeuCX882+ZqWfGN4=; b=e7/1lWiZ96eAEaJDu1TGBJd44uqcNFX9RhsT3N1PD+tr9c8eHg222p6To2WBU1Pw67CeSk rzFu9IJKtwDw6WO5gToPMEJ2YNEJOdY5aGpJjF3eQy3fSdDv89gAuU815gryggsx4/srKH jdcHqaOxL7mRDhmcC2BQcq6w/6ZkP9Zaj54W57dhtnpDJSphxiTFkRheMVNaiqxLsaKRop KED4J3LuOhBcmS1uc75j5MU/pleETYQMJ0yS/oZ4cwduNqm5CZtw3k3sSAwK70HS3QDloD 94nKNC4b5SXoynnB5/QiBN439HEIEUXhENnK765d+iCZZ3ujO05zdu6PIeI53g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=NUPmNTIQ; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715624613; a=rsa-sha256; cv=none; b=dW1x25P6BEKaNaYt/FjAx4DIlk9cyVehq63QFJvuAXPxTIyZ5Y03Raqz3K9t0XO0fOUPSz A19sHk8Z+TwdelGISe7ssrbjMfw5O0pHRU2ACtHwuKjM3e0dTcYL3wL+rjdHcsG8z2Nw8x wqNCELP8av5K4bt1EtbcUs0s9vEbW/XSF6ffKulatw/t6bqMt4P3gbKeFORgmCBfBJaLOp 3UhwI48F/NDtbVTtRYgHRJ7D3ve/bfluw0SvqQX8rZJG95iGNt01IfE49cXvFOADLrUtnF gkSDukj2KJMARd4w6kwwuydRyv122SIeT/IK18ey/lZtrfut4CrXV9/Baq8mbw== 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 7F012268BC for ; Mon, 13 May 2024 20:23:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6aKA-0005Xf-PN; Mon, 13 May 2024 14:22:58 -0400 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 1s6Lvk-0003To-Ml for help-guix@gnu.org; Sun, 12 May 2024 23:00:48 -0400 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6Lvi-0007Uw-Qm for help-guix@gnu.org; Sun, 12 May 2024 23:00:48 -0400 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6f0df7adaf3so2571915a34.2 for ; Sun, 12 May 2024 20:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715569245; x=1716174045; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=vYbEzoboL7Gr42hSoEOXfXFA7DrjG3+vyKgq9W2ETV0=; b=NUPmNTIQU45D3TrIAH4nkkXVmgvqFpbCFw/03JaW/HObeLH6rdAaKaudS0vxZNYRhh +rClswlABOhr9r8BvmiQHfJ10ukCfgtjxz6HCudzujPcDiZL5/LHErWUrkPytHu/sk49 VfImnKNKyUgVh1Wu+pGwr4YVQannN9QV9gFWxZ4Tr6oxCc3bORhsq3IeixSL2KdymOUB HRWsZ2X5emzI5Hea44wHBueLOfpBFC6sIID0piApfuB6TCbSfwHu3/tnXxQMq69iN/X0 HwbOoT+goTgFlr6+igIyseD3qmLSHcLYzi/kGyhvHoczsNxcCBK1OCHATRPVv5pOeeIn GhMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715569245; x=1716174045; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vYbEzoboL7Gr42hSoEOXfXFA7DrjG3+vyKgq9W2ETV0=; b=WGoWFRmN+Ck6gyIKsb5rDRaYp+M8JLzH/hSfDDruZ0pd428oIY+TLEuDar/TNeC+4g EnfhN1Ns4x17ifZvKVvqeItdglVEbGDWQktAh0hlnxAoCTUOhffM8HNEk7el6a+BTYBT hxOlvnFxMy0XxQ3l+tTr9Jye3be/bzpLjp3M4k/Svw5eoltCpS6c1r3k4gyaVtyA3pii ZAFsqgWwbG8GeJBdYJ9ol1cc/OJrBOy5ApTOQN0FZeXTv1Iist3i4vFS47vAuJ++LNCB nLEmSWSiFnQMWCzIdM8TQRYMeO/WomoE9cprhTBvRMJVtGPB4aVVknrh9GbYmMohmrL9 Me/w== X-Gm-Message-State: AOJu0YxFEiKlwc4lUzd3bQ4d33004BNaVXgdMOLsdr2rC56/t08lrxzA go6GTqY8Fv3yVkyz5rixaMFUmiuPmVAbWpsGulTZbTcY3UcwvmXuFMlOvbGsUiDOTlWZ+bm0iqM 84RapmCxaxeZgIo8t/MPSN0Ab3qEiVnaClm8= X-Google-Smtp-Source: AGHT+IErnQV2fKokCvLb3yMc3Vb47cxS1yDkUogqGaH8+4nqvWQrhKR827Q7/HUFYTih6UbtY0SesYcDKa0JsWlsMLI= X-Received: by 2002:a05:6870:f146:b0:221:1c2f:23ee with SMTP id 586e51a60fabf-24172a88a0emr10900593fac.22.1715569244661; Sun, 12 May 2024 20:00:44 -0700 (PDT) MIME-Version: 1.0 From: Zain Jabbar Date: Sun, 12 May 2024 17:00:33 -1000 Message-ID: Subject: Pytorch Versions To: help-guix@gnu.org Received-SPF: pass client-ip=2607:f8b0:4864:20::336; envelope-from=zaijab2000@gmail.com; helo=mail-ot1-x336.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 13 May 2024 14:22:57 -0400 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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-Spam-Score: 2.63 X-Migadu-Queue-Id: 7F012268BC X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 2.63 X-TUID: t5xGDgJXDnSV Aloha Guix Help, After a few years I decided to really want to sit down and learn Guix deeply. In this email, I wish to understand the difference between using Guile Scheme to interact with Guix and using Bash to interact with Guix. QUESTION: Why does Guile Scheme not find some package symbols that the command line can? BACKGROUND: Firstly, the output of =guix describe= ``` zjabbar@tao ~/code/leetcode$ guix describe Generation 628 May 12 2024 14:46:41 (current) guix 6ba29e0 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 6ba29e02108ed144da1234b4b5512ee03865dcf6 ``` When I use =guix search python-pytorch= or use the Emacs Guix interface and =M-x guix p n python-pytorch= I get three different versions of =python-pytorch=: 1.13.1, 2.0.1, and 2.2.1. They are all defined in =gnu/packages/machine-learning.scm= Using =guix build python-pytorch= will build the latest version 2.2.1. However, in Scheme, ``` (use-modules (gnu packages)) (specification->package "python-pytorch") ``` Returns the package 2.0.1. To my knowledge, we should be able to import the Scheme module and use the symbol if it is exported directly or defined using define-public. Hence, I expect the following, ``` (use-modules (gnu packages) (gnu packages machine-learning)) (specification->package "python-pytorch") ;; 2.2.1 python-pytorch ;; 1.13.1 python-pytorch2 ;; 2.2.1 python-pytorch-for-r-torch ;; 2.0.1 ``` Instead I get, ``` (use-modules (gnu packages) (gnu packages machine-learning)) (specification->package "python-pytorch") ;; 2.0.1 python-pytorch ;; 1.13.1 python-pytorch2 ;; Unbound variable: python-pytorch2 python-pytorch-for-r-torch ;; 2.0.1 ``` This means that the following code does not work because Guile does not find version 2.2.1, ``` (use-modules (gnu packages) (guix transformations)) ((options->transformation '((with-input . "python-pytorch@1.13.1 =python-pytorch@2.2.1"))) (specification->package "python-torchvision")) ``` The following does also does not work, ``` (use-modules (gnu packages) (guix packages)) ((package-input-rewriting `((,python-pytorch . ,python-pytorch2))) (specification->package "python-torchvision")) ``` -- Mahalo, Zain Jabbar