GNU bug report logs - #41762
Python's pip works from the store but not from profiles

Previous Next

Package: guix;

Reported by: Pierre Neidhardt <mail <at> ambrevar.xyz>

Date: Mon, 8 Jun 2020 17:09:02 UTC

Severity: normal

Done: Pierre Neidhardt <mail <at> ambrevar.xyz>

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 41762 in the body.
You can then email your comments to 41762 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#41762; Package guix. (Mon, 08 Jun 2020 17:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pierre Neidhardt <mail <at> ambrevar.xyz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 08 Jun 2020 17:09:02 GMT) Full text and rfc822 format available.

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

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: bug-guix <at> gnu.org
Subject: Python's pip works from the store but not from profiles
Date: Mon, 08 Jun 2020 19:08:08 +0200
[Message part 1 (text/plain, inline)]
On Guix fa122ac4ca2bd4c87b216e2f478397bcde2c1d8f.

This works:

--8<---------------cut here---------------start------------->8---
/gnu/store/czfix13276dvibyf0l4lbk92wiinha37-python-pip-20.0.2/bin/pip install -r requirements/dev.txt
--8<---------------cut here---------------end--------------->8---

But this does not:

--8<---------------cut here---------------start------------->8---
$ guix install python-pip
$ pip install -r requirements/dev.txt

Traceback (most recent call last):
  File "/path/to/myprofile/bin/pip", line 6, in <module>
    from pip._internal import main
  File "/path/to/myprofile/lib/python3.8/site-packages/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/path/to/myprofile/lib/python3.8/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/path/to/myprofile/lib/python3.8/site-packages/pip/_internal/cli/main_parser.py", line 11, in <module>
    from pip._internal.commands import (
  File "/path/to/myprofile/lib/python3.8/site-packages/pip/_internal/commands/__init__.py", line 6, in <module>
    from pip._internal.commands.completion import CompletionCommand
  File "/path/to/myprofile/lib/python3.8/site-packages/pip/_internal/commands/completion.py", line 6, in <module>
    from pip._internal.cli.base_command import Command
  File "/path/to/myprofile/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 26, in <module>
    from pip._internal.index import PackageFinder
ImportError: cannot import name 'PackageFinder' from 'pip._internal.index' (/path/to/myprofile/lib/python3.8/site-packages/pip/_internal/index/__init__.py)
--8<---------------cut here---------------end--------------->8---

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41762; Package guix. (Mon, 08 Jun 2020 17:34:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 41762 <at> debbugs.gnu.org
Subject: Re: bug#41762: Python's pip works from the store but not from profiles
Date: Mon, 8 Jun 2020 19:33:28 +0200
Hi Pierre,

On Mon, 8 Jun 2020 at 19:09, Pierre Neidhardt <mail <at> ambrevar.xyz> wrote:
>
> On Guix fa122ac4ca2bd4c87b216e2f478397bcde2c1d8f.

With e78275608065ef073775fabb9f1a757da65851f2 it works.


> This works:
>
> --8<---------------cut here---------------start------------->8---
> /gnu/store/czfix13276dvibyf0l4lbk92wiinha37-python-pip-20.0.2/bin/pip install -r requirements/dev.txt
> --8<---------------cut here---------------end--------------->8---


What do you have in 'requirements/dev.txt'?

--8<---------------cut here---------------start------------->8---
$ guix install pip
$ echo sentinelhub > /tmp/req.txt
$ pip install -r /tmp/req.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting sentinelhub
  Using cached sentinelhub-3.0.3.tar.gz (176 kB)
Collecting wheel
  Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Requirement already satisfied: requests>=2.5.0 in
/gnu/store/qzkgxkivp99ql828sx891hi49asamm3m-profile/lib/python3.8/site-packages
(from sentinelhub->-r /tmp/req.txt (line 1)) (2.22.0)
Collecting click
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Requirement already satisfied: numpy in
/gnu/store/qzkgxkivp99ql828sx891hi49asamm3m-profile/lib/python3.8/site-packages
(from sentinelhub->-r /tmp/req.txt (line 1)) (1.17.3)
Collecting tifffile
[...]
--8<---------------cut here---------------end--------------->8---


> Traceback (most recent call last):
>   File "/path/to/myprofile/bin/pip", line 6, in <module>

Have you modified the path?  Looks weird.


Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#41762; Package guix. (Wed, 10 Jun 2020 08:32:02 GMT) Full text and rfc822 format available.

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

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 41762 <at> debbugs.gnu.org
Subject: Re: bug#41762: Python's pip works from the store but not from profiles
Date: Wed, 10 Jun 2020 10:31:42 +0200
[Message part 1 (text/plain, inline)]
I've found out what's going on: pip fails if `python-wrapper' is
installed in the same profile.

Interestingly, it works if python-wrapper is in another profile.

Any clue why that is?

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41762; Package guix. (Wed, 10 Jun 2020 09:18:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 41762 <at> debbugs.gnu.org
Subject: Re: bug#41762: Python's pip works from the store but not from profiles
Date: Wed, 10 Jun 2020 11:17:02 +0200
On Wed, 10 Jun 2020 at 10:31, Pierre Neidhardt <mail <at> ambrevar.xyz> wrote:
>
> I've found out what's going on: pip fails if `python-wrapper' is
> installed in the same profile.
>
> Interestingly, it works if python-wrapper is in another profile.
>
> Any clue why that is?

Well, python-wrapper' already provides 'pip', isn't it?
So maybe a conflict?




Information forwarded to bug-guix <at> gnu.org:
bug#41762; Package guix. (Wed, 10 Jun 2020 09:38:02 GMT) Full text and rfc822 format available.

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

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 41762 <at> debbugs.gnu.org
Subject: Re: bug#41762: Python's pip works from the store but not from profiles
Date: Wed, 10 Jun 2020 11:37:13 +0200
[Message part 1 (text/plain, inline)]
Oooh!  Didn't know that!
And indeed, `pip3' is a command of python <at> 3, so the package description
is accurate.
Should we mention `pip` nonetheless in `python-wrapper's description?

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41762; Package guix. (Fri, 11 Sep 2020 14:15:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 41762 <at> debbugs.gnu.org
Subject: Re: bug#41762: Python's pip works from the store but not from profiles
Date: Fri, 11 Sep 2020 16:13:54 +0200
Hi Pierre,

On Wed, 10 Jun 2020 at 11:37, Pierre Neidhardt <mail <at> ambrevar.xyz> wrote:
> Oooh!  Didn't know that!
> And indeed, `pip3' is a command of python <at> 3, so the package description
> is accurate.
> Should we mention `pip` nonetheless in `python-wrapper's description?

Well, I do not know.  If you feel it can help.
Otherwise, do you agree to close this bug?

Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#41762; Package guix. (Sat, 12 Sep 2020 10:19:02 GMT) Full text and rfc822 format available.

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

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 41762 <at> debbugs.gnu.org
Subject: Re: bug#41762: Python's pip works from the store but not from profiles
Date: Sat, 12 Sep 2020 12:18:11 +0200
[Message part 1 (text/plain, inline)]
Yes, I will update the package description.
Updating python-wrapper rebuilds the world though.
Does an edit to the package description count as a reason to rebuild all dependants?

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41762; Package guix. (Sun, 13 Sep 2020 06:31:01 GMT) Full text and rfc822 format available.

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

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 41762 <at> debbugs.gnu.org, zimoun <zimon.toutoune <at> gmail.com>
Subject: Re: bug#41762: Python's pip works from the store but not from profiles
Date: Sun, 13 Sep 2020 09:30:12 +0300
[Message part 1 (text/plain, inline)]
On Sat, Sep 12, 2020 at 12:18:11PM +0200, Pierre Neidhardt wrote:
> Yes, I will update the package description.
> Updating python-wrapper rebuilds the world though.
> Does an edit to the package description count as a reason to rebuild all dependants?
> 

Editing the description (or synopsis, license, or other non-code bits)
shouldn't cause a world rebuild. Even updating the source uri shouldn't
cause a rebuild unless the hash changes.



-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41762; Package guix. (Mon, 14 Sep 2020 08:36:01 GMT) Full text and rfc822 format available.

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

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 41762 <at> debbugs.gnu.org, zimoun <zimon.toutoune <at> gmail.com>
Subject: Re: bug#41762: Python's pip works from the store but not from profiles
Date: Mon, 14 Sep 2020 10:35:20 +0200
[Message part 1 (text/plain, inline)]
Done in 24244f3fbff8cd107162803ab9c4392912ce6546, thanks!

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

bug closed, send any further explanations to 41762 <at> debbugs.gnu.org and Pierre Neidhardt <mail <at> ambrevar.xyz> Request was from Pierre Neidhardt <mail <at> ambrevar.xyz> to control <at> debbugs.gnu.org. (Mon, 14 Sep 2020 08:36:02 GMT) Full text and rfc822 format available.

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

This bug report was last modified 3 years and 189 days ago.

Previous Next


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