From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: "no code for module" Date: Sat, 28 Dec 2019 23:57:56 +0100 Message-ID: <87imm0njm3.fsf@elephly.net> 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]:56495) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilL27-0002Ga-Na for help-guix@gnu.org; Sat, 28 Dec 2019 17:58:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilL25-0005Z8-A8 for help-guix@gnu.org; Sat, 28 Dec 2019 17:58:07 -0500 Received: from sender3-of-o51.zoho.com ([136.143.189.51]:21196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ilL24-0005MW-Ry for help-guix@gnu.org; Sat, 28 Dec 2019 17:58:05 -0500 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.org@gnu.org Sender: "Help-Guix" To: Nathan Dehnel Cc: help-guix@gnu.org Nathan Dehnel writes: > I made a package which is basically a clone of the "hello" package exampl= e. > > (use-modules (guix packages) > (guix download) > (guix build-system gnu) > (guix licenses)) > (define-public deadbeef > (package > (name "deadbeef") > (version "1.8.2") > (source (origin > (method url-fetch) > (uri (string-append > "https://github.com/DeaDBeeF-Player/deadbeef/archive/" version > ".tar.gz")) > (sha256 > (base32 > "1wsx62gi1bfd9rx5br2gprq4q3sfp7iqj1inxhhiqjasbm85vg50")))) > (build-system gnu-build-system) > (synopsis "A music player for *nix-like systems and OS X") > (description > "GNU Hello prints the message \"Hello, world!\" and then exits. It > serves as an example of standard GNU coding practices. As such, it suppo= rts > command-line arguments, multiple languages, and so on.") > (home-page "https://deadbeef.sourceforge.io/") > (license gpl2))) > > I added it to a channel, and added the channel, then ran guix pull. I > got this error: > > (repl-version 0 0) > (exception misc-error (value #f) (value "~A ~S") (value ("no code for > module" (deadbeef))) (value #f)) You are not showing us how you are refering to this file. =E2=80=9Cdeadbee= f=E2=80=9D is a variable, but something in your channel specification treats it as a module. The easiest way to fix this is to turn the above code into a proper module, i.e. a file with a define-module expression at the top and a matching name. Can you show us the rest of your code? -- Ricardo