unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12@thebird.nl>
Cc: 26949@debbugs.gnu.org
Subject: bug#26949: Python path conflict
Date: Wed, 17 May 2017 15:08:05 +0200	[thread overview]
Message-ID: <878tlvy6kq.fsf@gnu.org> (raw)
In-Reply-To: <20170516100008.GA8723@thebird.nl> (Pjotr Prins's message of "Tue, 16 May 2017 12:00:08 +0200")

Hi,

Pjotr Prins <pjotr.public12@thebird.nl> skribis:

> Note that I do most of my buiding with --no-grafts.

This is an unsafe thing to do.

> Using the Guix tree from source 4a3495d57c08dff9287fe559482a6d2009109304
>
>   ./pre-inst-env guix package -i python@2.7.13 
>
> renders

[...]

> In unknown file:
>    ?: 0 [# # #<procedure dependency-grafts (item)> #]
>
> ERROR: In procedure #<syntax-transformer mapm>:
> ERROR: Wrong type to apply: #<syntax-transformer mapm>

This is due to an ABI change a few weeks ago.  Just run “make clean-go
&& make”.

> and
>
>   ./pre-inst-env guix package --no-grafts -i python@2.7.13
>
> renders
>
> The following package will be downgraded:
>    python	3.5.2 -> 2.7.13	/gnu/store/q5kdj7gpawi94pqd15x3wizjq0nx4zhx-python-2.7.13
>
> The following derivation will be built:
>    /gnu/store/hrl55dd3m9v8jqwf3jn5g0j36ix5n1n5-profile.drv

[...]

> In ./guix/build/union.scm:
>   50: 1 [file-is-directory? "/gnu/store/q5kdj7gpawi94pqd15x3wizjq0nx4zhx-python-2.7.13/share/man/man1/python.1"]
> In unknown file:
>    ?: 0 [stat "/gnu/store/q5kdj7gpawi94pqd15x3wizjq0nx4zhx-python-2.7.13/share/man/man1/python.1" ...]
>
> ERROR: In procedure stat:
> ERROR: In procedure stat: No such file or directory: "/gnu/store/q5kdj7gpawi94pqd15x3wizjq0nx4zhx-python-2.7.13/share/man/man1/python.1"
> builder for `/gnu/store/hrl55dd3m9v8jqwf3jn5g0j36ix5n1n5-profile.drv' failed with exit code 1
> guix package: error: build failed: build of `/gnu/store/hrl55dd3m9v8jqwf3jn5g0j36ix5n1n5-profile.drv' failed

I can’t seem to reproduce it:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix package -p foo -i python@2.7
The following package will be installed:
   python	2.7.13	/gnu/store/p0ygwmwspjpn4pwnla3p26n0xrypzdxv-python-2.7.13

substitute: updating list of substitutes from 'https://bayfront.guixsd.org'... 100.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
The following derivations will be built:
   /gnu/store/x0pffs6dzzzrajvhajicwgw6aj0g34zl-profile.drv
   /gnu/store/xi5js16n6f9v5vr4cdqsqnh9vcm3yppn-manual-database.drv
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
Creating manual page database for 1 packages... done in 0.015 s
find-files: /gnu/store/p0ygwmwspjpn4pwnla3p26n0xrypzdxv-python-2.7.13/share/man/man1/python.1: No such file or directory
1 package in profile
The following environment variable definitions may be needed:
   export PATH="foo/bin${PATH:+:}$PATH"
   export PYTHONPATH="foo/lib/python2.7/site-packages${PYTHONPATH:+:}$PYTHONPATH"
$ git describe
v0.12.0-3905-g516bfed7a
--8<---------------cut here---------------end--------------->8---

Could you check if the problem occurs with current Guix, and if it does,
whether the above command is easy to reproduce it?

Thanks for reporting it!

Ludo’.

  parent reply	other threads:[~2017-05-17 13:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-16 10:00 bug#26949: Python path conflict Pjotr Prins
2017-05-17 10:42 ` Pjotr Prins
2017-05-17 13:08 ` Ludovic Courtès [this message]
2017-05-17 13:23   ` Pjotr Prins
2017-05-17 19:54     ` Ludovic Courtès
2017-05-18  8:36       ` Pjotr Prins
2017-05-18  9:43 ` Ludovic Courtès
2017-05-19  6:33   ` Pjotr Prins

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tlvy6kq.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=26949@debbugs.gnu.org \
    --cc=pjotr.public12@thebird.nl \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).