GNU bug report logs - #41059
Contributing section from manual does not work when I'm working on some patches

Previous Next

Package: guix;

Reported by: Josh Marshall <joshua.r.marshall.1991 <at> gmail.com>

Date: Sun, 3 May 2020 18:53:02 UTC

Severity: normal

Done: Marius Bakke <mbakke <at> fastmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41059 in the body.
You can then email your comments to 41059 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#41059; Package guix. (Sun, 03 May 2020 18:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Josh Marshall <joshua.r.marshall.1991 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 03 May 2020 18:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Josh Marshall <joshua.r.marshall.1991 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Contributing section from manual does not work when I'm working on
 some patches
Date: Sun, 3 May 2020 14:08:09 -0400
[Message part 1 (text/plain, inline)]
Hello all,

So I'm trying to get individual patches for the django overhaul I've been
working on polished up and ready for submission.  Trying to follow the
steps in the manual for running and testing builds of these is not
working.  lfam from IRC suggested that guile-gcrypt might be missing, but
that implies that required dependencies are missing.

Working off of commit 223e920abc023be91fe1e6747c599d547ad12bc5

with patch
```
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 2cfaddbc5f..e2f90c1240 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois <at> gmx.com>
 ;;; Copyright © 2019 Chris Marusich <cmmarusich <at> gmail.com>
 ;;; Copyright © 2020 Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
+;;; Copyright © 2020 Josh Marshall <joshua.r.marshall.1991 <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1398,6 +1399,32 @@ executed.")
 (define-public python2-coverage
   (package-with-python2 python-coverage))

+(define-public python-pytest-asyncio
+  (package
+    (name "python-pytest-asyncio")
+    (version "0.10.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "pytest-asyncio" version))
+        (sha256
+          (base32
"1bysy4nii13bm7h345wxf8fxcjhab7l374pqdv7vwv3izl053b4z"))))
+  (build-system python-build-system)
+  (propagated-inputs
+   `(("python-pytest" ,python-pytest)))
+  (native-inputs
+   `(("python-coverage" ,python-coverage)
+     ("python-async-generator" ,python-async-generator)
+     ("python-hypothesis" ,python-hypothesis)))
+  (home-page "https://github.com/pytest-dev/pytest-asyncio")
+  (synopsis "Pytest support for asyncio.")
+  (description "Python asyncio code is usually written in the form of
+coroutines, which makes it slightly more difficult to test using normal
+testing tools. pytest-asyncio provides useful fixtures and markers to make
+testing easier.")
+  (license license:asl2.0)))
+
+
 (define-public python-cov-core
   (package
     (name "python-cov-core")
```

has the following results from various invocations:

```
anadon <at> goodadvicemallard:~/documents/code/guix$ ./pre-inst-env guix
guile: warning: failed to install locale
Backtrace:
In ice-9/threads.scm:
    390:8 19 (_ _)
In ice-9/boot-9.scm:
  2994:20 18 (_)
   2312:4 17 (save-module-excursion _)
  3014:26 16 (_)
In unknown file:
          15 (primitive-load-path "guix/store" #<procedure 7fa451b4a?>)
In guix/store.scm:
     22:0 14 (_)
In ice-9/boot-9.scm:
   2874:4 13 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
  2887:24 12 (_)
   222:29 11 (map1 (((guix utils)) ((guix config)) ((guix #)) ((?)) ?))
   222:29 10 (map1 (((guix config)) ((guix deprecation)) ((guix ?)) ?))
   222:29  9 (map1 (((guix deprecation)) ((guix memoization)) ((?)) ?))
   222:29  8 (map1 (((guix memoization)) ((guix serialization)) (#) ?))
   222:29  7 (map1 (((guix serialization)) ((guix monads)) ((# #)) ?))
   222:29  6 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) ?))
   222:29  5 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) ?))
   222:29  4 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # ?))
   222:29  3 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) ?))
   222:17  2 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # ?))
   2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ?)
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("no code for modu?" ?) ?)

ERROR: In procedure scm-error:
no code for module (gcrypt hash)
```

```
anadon <at> goodadvicemallard:~/documents/code/guix$ guix environment guix --
./pre-inst-env guix
guile: warning: failed to install locale
guix environment: error: failed to connect to
`/var/guix/daemon-socket/socket': Connection refused
```

```
anadon <at> goodadvicemallard:~/documents/code/guix$ guix environment guix --
./pre-inst-env guix build python-pytest-asyncio
guile: warning: failed to install locale
guix build: error: failed to connect to
`/usr/local/var/guix/daemon-socket/socket': Connection refused
```

The daemon has been run via systemd and
`anadon <at> goodadvicemallard:~/documents/code/guix$
sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild` to
similar effect.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41059; Package guix. (Mon, 04 May 2020 14:44:02 GMT) Full text and rfc822 format available.

Message #8 received at 41059 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: Josh Marshall <joshua.r.marshall.1991 <at> gmail.com>, 41059 <at> debbugs.gnu.org
Subject: Re: bug#41059: Contributing section from manual does not work when
 I'm working on some patches
Date: Mon, 04 May 2020 16:43:24 +0200
[Message part 1 (text/plain, inline)]
Josh Marshall <joshua.r.marshall.1991 <at> gmail.com> writes:

> has the following results from various invocations:
>
> ```
> anadon <at> goodadvicemallard:~/documents/code/guix$ ./pre-inst-env guix
> guile: warning: failed to install locale
> Backtrace:
> In ice-9/threads.scm:
>     390:8 19 (_ _)
> In ice-9/boot-9.scm:
>   2994:20 18 (_)
>    2312:4 17 (save-module-excursion _)
>   3014:26 16 (_)
> In unknown file:
>           15 (primitive-load-path "guix/store" #<procedure 7fa451b4a?>)
> In guix/store.scm:
>      22:0 14 (_)
> In ice-9/boot-9.scm:
>    2874:4 13 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
>   2887:24 12 (_)
>    222:29 11 (map1 (((guix utils)) ((guix config)) ((guix #)) ((?)) ?))
>    222:29 10 (map1 (((guix config)) ((guix deprecation)) ((guix ?)) ?))
>    222:29  9 (map1 (((guix deprecation)) ((guix memoization)) ((?)) ?))
>    222:29  8 (map1 (((guix memoization)) ((guix serialization)) (#) ?))
>    222:29  7 (map1 (((guix serialization)) ((guix monads)) ((# #)) ?))
>    222:29  6 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) ?))
>    222:29  5 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) ?))
>    222:29  4 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # ?))
>    222:29  3 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) ?))
>    222:17  2 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # ?))
>    2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ?)
> In unknown file:
>            0 (scm-error misc-error #f "~A ~S" ("no code for modu?" ?) ?)
>
> ERROR: In procedure scm-error:
> no code for module (gcrypt hash)
> ```

You should use 'guix environment guix' to ensure the dependencies are
available.

> ```
> anadon <at> goodadvicemallard:~/documents/code/guix$ guix environment guix --
> ./pre-inst-env guix
> guile: warning: failed to install locale
> guix environment: error: failed to connect to
> `/var/guix/daemon-socket/socket': Connection refused
> ```

This means the daemon is not running, or configured with a faulty
--localstatedir.

> ```
> anadon <at> goodadvicemallard:~/documents/code/guix$ guix environment guix --
> ./pre-inst-env guix build python-pytest-asyncio
> guile: warning: failed to install locale
> guix build: error: failed to connect to
> `/usr/local/var/guix/daemon-socket/socket': Connection refused
> ```

Pass "--localstatedir=/var" when running the configure script to provide
the correct daemon state directory.

> The daemon has been run via systemd and
> `anadon <at> goodadvicemallard:~/documents/code/guix$
> sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild` to
> similar effect.

You don't need to run the daemon manually unless you want to hack on the
daemon itself.  However if you do, make sure that it has been configured
with the correct "--localstatedir" and "--sysconfdir".

HTH,
Marius
[signature.asc (application/pgp-signature, inline)]

Reply sent to Marius Bakke <mbakke <at> fastmail.com>:
You have taken responsibility. (Mon, 04 May 2020 15:38:02 GMT) Full text and rfc822 format available.

Notification sent to Josh Marshall <joshua.r.marshall.1991 <at> gmail.com>:
bug acknowledged by developer. (Mon, 04 May 2020 15:38:02 GMT) Full text and rfc822 format available.

Message #13 received at 41059-done <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: Josh Marshall <joshua.r.marshall.1991 <at> gmail.com>
Cc: 41059-done <at> debbugs.gnu.org
Subject: Re: bug#41059: Contributing section from manual does not work when
 I'm working on some patches
Date: Mon, 04 May 2020 17:37:45 +0200
[Message part 1 (text/plain, inline)]
Josh Marshall <joshua.r.marshall.1991 <at> gmail.com> writes:

> Close fixed

OK, closing by adding -done to the bug email address.

Thanks!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41059; Package guix. (Mon, 04 May 2020 16:02:02 GMT) Full text and rfc822 format available.

Message #16 received at 41059 <at> debbugs.gnu.org (full text, mbox):

From: Josh Marshall <joshua.r.marshall.1991 <at> gmail.com>
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: 41059 <at> debbugs.gnu.org
Subject: Re: bug#41059: Contributing section from manual does not work when
 I'm working on some patches
Date: Mon, 4 May 2020 11:31:16 -0400
[Message part 1 (text/plain, inline)]
Close fixed

On Mon, May 4, 2020, 10:43 Marius Bakke <mbakke <at> fastmail.com> wrote:

> Josh Marshall <joshua.r.marshall.1991 <at> gmail.com> writes:
>
> > has the following results from various invocations:
> >
> > ```
> > anadon <at> goodadvicemallard:~/documents/code/guix$ ./pre-inst-env guix
> > guile: warning: failed to install locale
> > Backtrace:
> > In ice-9/threads.scm:
> >     390:8 19 (_ _)
> > In ice-9/boot-9.scm:
> >   2994:20 18 (_)
> >    2312:4 17 (save-module-excursion _)
> >   3014:26 16 (_)
> > In unknown file:
> >           15 (primitive-load-path "guix/store" #<procedure 7fa451b4a?>)
> > In guix/store.scm:
> >      22:0 14 (_)
> > In ice-9/boot-9.scm:
> >    2874:4 13 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
> >   2887:24 12 (_)
> >    222:29 11 (map1 (((guix utils)) ((guix config)) ((guix #)) ((?)) ?))
> >    222:29 10 (map1 (((guix config)) ((guix deprecation)) ((guix ?)) ?))
> >    222:29  9 (map1 (((guix deprecation)) ((guix memoization)) ((?)) ?))
> >    222:29  8 (map1 (((guix memoization)) ((guix serialization)) (#) ?))
> >    222:29  7 (map1 (((guix serialization)) ((guix monads)) ((# #)) ?))
> >    222:29  6 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) ?))
> >    222:29  5 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) ?))
> >    222:29  4 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # ?))
> >    222:29  3 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) ?))
> >    222:17  2 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # ?))
> >    2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ?)
> > In unknown file:
> >            0 (scm-error misc-error #f "~A ~S" ("no code for modu?" ?) ?)
> >
> > ERROR: In procedure scm-error:
> > no code for module (gcrypt hash)
> > ```
>
> You should use 'guix environment guix' to ensure the dependencies are
> available.
>
> > ```
> > anadon <at> goodadvicemallard:~/documents/code/guix$ guix environment guix --
> > ./pre-inst-env guix
> > guile: warning: failed to install locale
> > guix environment: error: failed to connect to
> > `/var/guix/daemon-socket/socket': Connection refused
> > ```
>
> This means the daemon is not running, or configured with a faulty
> --localstatedir.
>
> > ```
> > anadon <at> goodadvicemallard:~/documents/code/guix$ guix environment guix --
> > ./pre-inst-env guix build python-pytest-asyncio
> > guile: warning: failed to install locale
> > guix build: error: failed to connect to
> > `/usr/local/var/guix/daemon-socket/socket': Connection refused
> > ```
>
> Pass "--localstatedir=/var" when running the configure script to provide
> the correct daemon state directory.
>
> > The daemon has been run via systemd and
> > `anadon <at> goodadvicemallard:~/documents/code/guix$
> > sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild` to
> > similar effect.
>
> You don't need to run the daemon manually unless you want to hack on the
> daemon itself.  However if you do, make sure that it has been configured
> with the correct "--localstatedir" and "--sysconfdir".
>
> HTH,
> Marius
>
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 02 Jun 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.