all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#41762: Python's pip works from the store but not from profiles
@ 2020-06-08 17:08 Pierre Neidhardt
  2020-06-08 17:33 ` zimoun
  0 siblings, 1 reply; 9+ messages in thread
From: Pierre Neidhardt @ 2020-06-08 17:08 UTC (permalink / raw)
  To: 41762

[-- Attachment #1: Type: text/plain, Size: 1885 bytes --]

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/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#41762: Python's pip works from the store but not from profiles
  2020-06-08 17:08 bug#41762: Python's pip works from the store but not from profiles Pierre Neidhardt
@ 2020-06-08 17:33 ` zimoun
  2020-06-10  8:31   ` Pierre Neidhardt
  0 siblings, 1 reply; 9+ messages in thread
From: zimoun @ 2020-06-08 17:33 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 41762

Hi Pierre,

On Mon, 8 Jun 2020 at 19:09, Pierre Neidhardt <mail@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




^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#41762: Python's pip works from the store but not from profiles
  2020-06-08 17:33 ` zimoun
@ 2020-06-10  8:31   ` Pierre Neidhardt
  2020-06-10  9:17     ` zimoun
  0 siblings, 1 reply; 9+ messages in thread
From: Pierre Neidhardt @ 2020-06-10  8:31 UTC (permalink / raw)
  To: zimoun; +Cc: 41762

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

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/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#41762: Python's pip works from the store but not from profiles
  2020-06-10  8:31   ` Pierre Neidhardt
@ 2020-06-10  9:17     ` zimoun
  2020-06-10  9:37       ` Pierre Neidhardt
  0 siblings, 1 reply; 9+ messages in thread
From: zimoun @ 2020-06-10  9:17 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 41762

On Wed, 10 Jun 2020 at 10:31, Pierre Neidhardt <mail@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?




^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#41762: Python's pip works from the store but not from profiles
  2020-06-10  9:17     ` zimoun
@ 2020-06-10  9:37       ` Pierre Neidhardt
  2020-09-11 14:13         ` zimoun
  0 siblings, 1 reply; 9+ messages in thread
From: Pierre Neidhardt @ 2020-06-10  9:37 UTC (permalink / raw)
  To: zimoun; +Cc: 41762

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

Oooh!  Didn't know that!
And indeed, `pip3' is a command of python@3, so the package description
is accurate.
Should we mention `pip` nonetheless in `python-wrapper's description?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#41762: Python's pip works from the store but not from profiles
  2020-06-10  9:37       ` Pierre Neidhardt
@ 2020-09-11 14:13         ` zimoun
  2020-09-12 10:18           ` Pierre Neidhardt
  0 siblings, 1 reply; 9+ messages in thread
From: zimoun @ 2020-09-11 14:13 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 41762

Hi Pierre,

On Wed, 10 Jun 2020 at 11:37, Pierre Neidhardt <mail@ambrevar.xyz> wrote:
> Oooh!  Didn't know that!
> And indeed, `pip3' is a command of python@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




^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#41762: Python's pip works from the store but not from profiles
  2020-09-11 14:13         ` zimoun
@ 2020-09-12 10:18           ` Pierre Neidhardt
  2020-09-13  6:30             ` Efraim Flashner
  0 siblings, 1 reply; 9+ messages in thread
From: Pierre Neidhardt @ 2020-09-12 10:18 UTC (permalink / raw)
  To: zimoun; +Cc: 41762

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

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/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#41762: Python's pip works from the store but not from profiles
  2020-09-12 10:18           ` Pierre Neidhardt
@ 2020-09-13  6:30             ` Efraim Flashner
  2020-09-14  8:35               ` Pierre Neidhardt
  0 siblings, 1 reply; 9+ messages in thread
From: Efraim Flashner @ 2020-09-13  6:30 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 41762

[-- Attachment #1: Type: text/plain, Size: 666 bytes --]

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@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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#41762: Python's pip works from the store but not from profiles
  2020-09-13  6:30             ` Efraim Flashner
@ 2020-09-14  8:35               ` Pierre Neidhardt
  0 siblings, 0 replies; 9+ messages in thread
From: Pierre Neidhardt @ 2020-09-14  8:35 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 41762

[-- Attachment #1: Type: text/plain, Size: 109 bytes --]


Done in 24244f3fbff8cd107162803ab9c4392912ce6546, thanks!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-09-14  8:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-08 17:08 bug#41762: Python's pip works from the store but not from profiles Pierre Neidhardt
2020-06-08 17:33 ` zimoun
2020-06-10  8:31   ` Pierre Neidhardt
2020-06-10  9:17     ` zimoun
2020-06-10  9:37       ` Pierre Neidhardt
2020-09-11 14:13         ` zimoun
2020-09-12 10:18           ` Pierre Neidhardt
2020-09-13  6:30             ` Efraim Flashner
2020-09-14  8:35               ` Pierre Neidhardt

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.