From unknown Fri Aug 15 04:06:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40891: import crate: Traceback when package not found Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 27 Apr 2020 06:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40891 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 40891@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.158797002614947 (code B ref -1); Mon, 27 Apr 2020 06:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Apr 2020 06:47:06 +0000 Received: from localhost ([127.0.0.1]:35413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSxXm-0003t0-0a for submit@debbugs.gnu.org; Mon, 27 Apr 2020 02:47:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:41640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSxXj-0003ss-Sw for submit@debbugs.gnu.org; Mon, 27 Apr 2020 02:47:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34092) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSxXj-0000Cs-8b for bug-guix@gnu.org; Mon, 27 Apr 2020 02:47:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSxXi-00058p-8u for bug-guix@gnu.org; Mon, 27 Apr 2020 02:47:02 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:36539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSxXh-0004om-NH for bug-guix@gnu.org; Mon, 27 Apr 2020 02:47:01 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 499b0y6R2Hz1s1Vc for ; Mon, 27 Apr 2020 08:46:58 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 499b0y6CMgz1qrjg for ; Mon, 27 Apr 2020 08:46:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id ysqWNOB-Dhik for ; Mon, 27 Apr 2020 08:46:58 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-55-44.dynamic.mnet-online.de [188.174.55.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 27 Apr 2020 08:46:58 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.fritz.box [192.168.110.28]) by hermia.goebel-consult.de (Postfix) with ESMTP id 9F481600B0 for ; Mon, 27 Apr 2020 08:47:25 +0200 (CEST) From: Hartmut Goebel Organization: crazy-compilers.com Message-ID: <05f83233-d033-8e71-2982-090b10cf9d53@crazy-compilers.com> Date: Mon, 27 Apr 2020 08:46:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: none client-ip=212.18.0.10; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/27 02:46:58 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 212.18.0.10 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) If "import crate" does not find the package, a traceback is shown (see below) I would expect an error message stating that the package was nor found (or whatever crates.io error message is) $ guix import crate non-exeisti[hartmut@lenashee [1] guix (HG-sequoia-as-rust-pkgs)]$ guix import crate non-exeisting-package Backtrace:            4 (primitive-load "/usr/local/bin/guix") In guix/ui.scm:   1936:12  3 (run-guix-command _ . _) In guix/scripts/import.scm:    116:11  2 (guix-import . _) In guix/scripts/import/crate.scm:    104:23  1 (guix-import-crate . _) In guix/import/crate.scm:     205:8  0 (crate->guix-package "non-exeisting-package" _) guix/import/crate.scm:205:8: In procedure crate->guix-package: In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | From unknown Fri Aug 15 04:06:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Hartmut Goebel Subject: bug#40891: closed (Re: bug#40891: import crate: Traceback when package not found) Message-ID: References: <87k120vcph.fsf@gnu.org> <05f83233-d033-8e71-2982-090b10cf9d53@crazy-compilers.com> X-Gnu-PR-Message: they-closed 40891 X-Gnu-PR-Package: guix Reply-To: 40891@debbugs.gnu.org Date: Mon, 27 Apr 2020 21:31:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1588023062-4429-1" This is a multi-part message in MIME format... ------------=_1588023062-4429-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #40891: import crate: Traceback when package not found which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 40891@debbugs.gnu.org. --=20 40891: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40891 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1588023062-4429-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 40891-done) by debbugs.gnu.org; 27 Apr 2020 21:30:29 +0000 Received: from localhost ([127.0.0.1]:38267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTBKe-00018Z-Og for submit@debbugs.gnu.org; Mon, 27 Apr 2020 17:30:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTBKd-00018J-5Y for 40891-done@debbugs.gnu.org; Mon, 27 Apr 2020 17:30:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45054) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTBKX-0003iG-BW; Mon, 27 Apr 2020 17:30:21 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=54528 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jTBKV-0003gu-UJ; Mon, 27 Apr 2020 17:30:20 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Hartmut Goebel Subject: Re: bug#40891: import crate: Traceback when package not found References: <05f83233-d033-8e71-2982-090b10cf9d53@crazy-compilers.com> Date: Mon, 27 Apr 2020 23:30:18 +0200 In-Reply-To: <05f83233-d033-8e71-2982-090b10cf9d53@crazy-compilers.com> (Hartmut Goebel's message of "Mon, 27 Apr 2020 08:46:54 +0200") Message-ID: <87k120vcph.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40891-done Cc: 40891-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Hartmut Goebel skribis: > If "import crate" does not find the package, a traceback is shown (see > below) Fixed in 5fbc753ab524809cd81e3e5c54b3d0acbe33792d. Thanks, Ludo=E2=80=99. ------------=_1588023062-4429-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Apr 2020 06:47:06 +0000 Received: from localhost ([127.0.0.1]:35413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSxXm-0003t0-0a for submit@debbugs.gnu.org; Mon, 27 Apr 2020 02:47:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:41640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSxXj-0003ss-Sw for submit@debbugs.gnu.org; Mon, 27 Apr 2020 02:47:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34092) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSxXj-0000Cs-8b for bug-guix@gnu.org; Mon, 27 Apr 2020 02:47:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSxXi-00058p-8u for bug-guix@gnu.org; Mon, 27 Apr 2020 02:47:02 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:36539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSxXh-0004om-NH for bug-guix@gnu.org; Mon, 27 Apr 2020 02:47:01 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 499b0y6R2Hz1s1Vc for ; Mon, 27 Apr 2020 08:46:58 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 499b0y6CMgz1qrjg for ; Mon, 27 Apr 2020 08:46:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id ysqWNOB-Dhik for ; Mon, 27 Apr 2020 08:46:58 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-55-44.dynamic.mnet-online.de [188.174.55.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 27 Apr 2020 08:46:58 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.fritz.box [192.168.110.28]) by hermia.goebel-consult.de (Postfix) with ESMTP id 9F481600B0 for ; Mon, 27 Apr 2020 08:47:25 +0200 (CEST) To: bug-guix From: Hartmut Goebel Subject: import crate: Traceback when package not found Organization: crazy-compilers.com Message-ID: <05f83233-d033-8e71-2982-090b10cf9d53@crazy-compilers.com> Date: Mon, 27 Apr 2020 08:46:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: none client-ip=212.18.0.10; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/27 02:46:58 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 212.18.0.10 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) If "import crate" does not find the package, a traceback is shown (see below) I would expect an error message stating that the package was nor found (or whatever crates.io error message is) $ guix import crate non-exeisti[hartmut@lenashee [1] guix (HG-sequoia-as-rust-pkgs)]$ guix import crate non-exeisting-package Backtrace:            4 (primitive-load "/usr/local/bin/guix") In guix/ui.scm:   1936:12  3 (run-guix-command _ . _) In guix/scripts/import.scm:    116:11  2 (guix-import . _) In guix/scripts/import/crate.scm:    104:23  1 (guix-import-crate . _) In guix/import/crate.scm:     205:8  0 (crate->guix-package "non-exeisting-package" _) guix/import/crate.scm:205:8: In procedure crate->guix-package: In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | ------------=_1588023062-4429-1--