From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Cannot package a PyPI tool Date: Sun, 16 Feb 2020 15:56:28 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36348) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3LLf-0001xG-JZ for help-guix@gnu.org; Sun, 16 Feb 2020 09:56:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3LLe-0003oB-4v for help-guix@gnu.org; Sun, 16 Feb 2020 09:56:43 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:45131) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3LLd-0003mi-UP for help-guix@gnu.org; Sun, 16 Feb 2020 09:56:42 -0500 Received: by mail-wr1-x42f.google.com with SMTP id g3so16557692wrs.12 for ; Sun, 16 Feb 2020 06:56:41 -0800 (PST) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: lainiwa@cock.li Cc: help-guix Hello, ezt =C3=ADrta (id=C5=91pont: 2020. febr. 16., Vas 15:31): > Hello! > > I was playing around with Guix and I tried to package a termtosvg tool > just for an exercise. > > I have a > export GUIX_PACKAGE_PATH=3D~/guix-packages > setting and I create my *.scm files in that directory. > > my-hello.scm from the documentation worked fine, however when I tried to > package a more "real-world" example I got an error: > > ------------------------------ > name: python-termtosvg > version: 1.1.0 > outputs: out > Backtrace: > 1 (primitive-load "/home/lain/.config/guix/current/bin/gu=E2= =80=A6") > In guix/ui.scm: > 1824:12 0 (run-guix-command _ . _) > > guix/ui.scm:1824:12: In procedure run-guix-command: > error: python-lxml: unbound variable > ------------------------------ > > My python-termtosvg.scm content: https://pastebin.com/cenixFh7 > > Can I somehow make Guix see python-lxml from the main channel (or maybe > solve the problem in some other way)? > You should add the package modules providing the inputs into the define-module form. I.e. something like (gnu packages python). You can find out the module of the package using guix package -s packagename. It reports the location, and file names are mapped to the modules. I hope that helps. Best regards, g_bor >