From: Phil <phil@beadling.co.uk>
To: zimoun <zimon.toutoune@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Channel details of profile generation
Date: Mon, 04 Jan 2021 17:29:05 +0000 [thread overview]
Message-ID: <85mtxor4pq.fsf@beadling.co.uk> (raw)
In-Reply-To: <86o8ibs95q.fsf@gmail.com>
Hi Simon,
I'll specifically elaborate on the guix pull error in this e-mail, I
follow-up on other items later (apologies my first e-mail as perhaps too
busy!).
zimoun writes:
> Hi,
>
> On Mon, 28 Dec 2020 at 17:52, Phil <phil@beadling.co.uk> wrote:
>
>> guix pull -p my-profile -l
>>
>> But this seems to crash:
>
> I am surprised.
> Could you share how you generated the profile ’my-profile’?
>
Yes - the issue here appears to be the inclusion of a package from a
private channel in the manifest.
If I create a manifest only using Guix packages - everything looks OK - eg:
ubuntu@test-image:~/guix-manifests$ cat test-manifest.scm
(packages->manifest
(list (specification->package "python@3.8.2")))
ubuntu@test-image:~/guix-manifests$ guix package -m test-manifest.scm -p ~/guix-profiles/test-profile
The following package will be installed:
python 3.8.2
The following derivation will be built:
/gnu/store/yd7093md8q5xa1s3zn3nwmh9qcpnwpjr-profile.drv
building CA certificate bundle...
building fonts directory...
building directory of Info manuals...
building database for manual pages...
building profile with 1 package...
hint: Consider setting the necessary environment variables by running:
GUIX_PROFILE="/home/ubuntu/guix-profiles/test-profile"
. "$GUIX_PROFILE/etc/profile"
Alternately, see `guix package --search-paths -p "/home/ubuntu/guix-profiles/test-profile"'.
ubuntu@test-image:~/guix-manifests$ GUIX_PROFILE="/home/ubuntu/guix-profiles/test-profile"
ubuntu@test-image:~/guix-manifests$ . "$GUIX_PROFILE/etc/profile"
ubuntu@test-image:~/guix-manifests$ guix pull -p ~/guix-profiles/test-profile -l
\Generation 1 Jan 04 2021 17:00:58\ (current)
python 3.8.2
ubuntu@test-image:~/guix-manifests$
But if I now also add a package from my private channel to the manifest:
ubuntu@test-image:~/guix-manifests$ cat test-manifest-2.scm
(packages->manifest
(list (specification->package "python@3.8.2")
(@ (py-test-pkg) py-test-pkg-develop)))
ubuntu@test-image:~/guix-manifests$ guix package -m test-manifest-2.scm -p ~/guix-profiles/test-profile
The following packages will be installed:
py-test-pkg 4.72-0.2aa0874
python 3.8.2
updating checkout of 'ssh://git@my-bitbucket/foo/py-test-pkg.git'...
retrieved commit 2aa08749a7b7ab7995f9cdb7bb1842e9889a09d
substitute: updating substitutes from 'http://my-substitutes:8080'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivation will be built:
/gnu/store/qw745mdvy81ym9mwnx4khxafg2spclyw-py-test-pkg-4.72-0.2aa0874.drv
building /gnu/store/qw745mdvy81ym9mwnx4khxafg2spclyw-py-test-pkg-4.72-0.2aa0874.drv...
The following derivation will be built:
/gnu/store/d0bzs0aly5bjy6lhwc7asc4m4s2lxlki-profile.drv
building CA certificate bundle...
building fonts directory...
building directory of Info manuals...
building database for manual pages...
building profile with 2 packages...
It installs OK but the same guix pull comamnd now fails:
ubuntu@test-image:~/guix-manifests$ guix pull -p ~/guix-profiles/test-profile -l
\Generation 1 Jan 04 2021 17:00:58\
python 3.8.2
\Generation 2 Jan 04 2021 17:03:48\ (current)
py-test-pkg 4.72-0.2aa0874
python 3.8.2
Backtrace:
11 (primitive-load "/home/ubuntu/.config/guix/current/bin/…")
In guix/ui.scm:
2127:12 10 (run-guix-command _ . _)
In ice-9/boot-9.scm:
1736:10 9 (with-exception-handler _ _ #:unwind? _ # _)
1731:15 8 (with-exception-handler #<procedure 7f1e86b4f900 at ic…> …)
1731:15 7 (with-exception-handler #<procedure 7f1e86b4f8d0 at ic…> …)
1731:15 6 (with-exception-handler #<procedure 7f1e8877d480 at ic…> …)
In guix/scripts/pull.scm:
636:4 5 (_)
In guix/memoization.scm:
100:0 4 (_ #<hash-table 7f1e86b141c0 0/31> "/home/ubuntu/guix-…" …)
In guix/scripts/pull.scm:
538:21 3 (_)
In guix/inferior.scm:
256:2 2 (inferior-available-packages #f)
251:13 1 (send-inferior-request (defined? (quote #)) #f)
In ice-9/boot-9.scm:
1669:16 0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
ubuntu@test-image:~/guix-manifests$
Despite this the test package did install correctly (py-test-pkg
installs module example_project):
ubuntu@test-image:~/guix-manifests$ which python3
/home/ubuntu/guix-profiles/test-profile/bin/python3
ubuntu@test-image:~/guix-manifests$ python3 -m example_project --myparam testing
The parameter was: testing
> Hope that helps,
> simon
next prev parent reply other threads:[~2021-01-04 17:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-28 17:52 Channel details of profile generation Phil
2020-12-30 13:41 ` zimoun
2021-01-04 17:29 ` Phil [this message]
2021-01-05 17:01 ` zimoun
2021-01-09 13:34 ` Phil
2021-01-11 17:34 ` zimoun
2021-01-12 19:16 ` Phil
2021-01-13 14:28 ` Phil
2021-01-13 20:15 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85mtxor4pq.fsf@beadling.co.uk \
--to=phil@beadling.co.uk \
--cc=help-guix@gnu.org \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.