Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to install python pipx
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
red6
n00b
n00b


Joined: 05 Apr 2024
Posts: 26
Location: Toronto

PostPosted: Wed May 28, 2025 4:01 pm    Post subject: Trying to install python pipx Reply with quote

Code:
All ebuilds that could satisfy "dev-python/pipx" have been masked


My basic understanding is that once I install PIP then I always have to use a virtual environment otherwise I will break emerge.

But I can't even install 'pipx' due to the error shown above.

I am running a cloud build of Gentoo on Linode as supplied via Linode. So far so good. Very good!!!

But I am stumped here.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2206

PostPosted: Wed May 28, 2025 4:10 pm    Post subject: Reply with quote

red6 wrote:
Code:
All ebuilds that could satisfy "dev-python/pipx" have been masked


My basic understanding is that once I install PIP then I always have to use a virtual environment otherwise I will break emerge.

But I can't even install 'pipx' due to the error shown above.

I am running a cloud build of Gentoo on Linode as supplied via Linode. So far so good. Very good!!!

But I am stumped here.

eshowkw pipx:
Keywords for dev-python/pipx:
      |                             |   u   |
      | a   a     p s   a l   r     |   n   |
      | m   r h   p p   l o m i s m | e u s | r
      | d a m p p c a x p o i s 3 6 | a s l | e
      | 6 r 6 p p 6 r 8 h n p c 9 8 | p e o | p
      | 4 m 4 a c 4 c 6 a g s v 0 k | i d t | o
------+-----------------------------+-------+-------
1.7.1 | ~ o o o o o o o o o o o o o | 8 o 0 | gentoo

Because of "~", https://wiki.gentoo.org/wiki/Knowledge_Base:Accepting_a_keyword_for_a_single_package
Back to top
View user's profile Send private message
red6
n00b
n00b


Joined: 05 Apr 2024
Posts: 26
Location: Toronto

PostPosted: Wed May 28, 2025 4:14 pm    Post subject: Thanks for the info Reply with quote

Long time linux and unix veteran but not Gentoo:)

I will try to figure out those commands.
Back to top
View user's profile Send private message
red6
n00b
n00b


Joined: 05 Apr 2024
Posts: 26
Location: Toronto

PostPosted: Wed May 28, 2025 4:20 pm    Post subject: I tried following your link. Reply with quote

I ran...

emerge --ask --autounmask=y --autounmask-write dev-python/pipx

Got this. Am I any further ahead...?

Also, don't seem to have the eshowkw program installed. Not availabe thru emerge.

Code:

NOTE: Use the '--verbose-conflicts' option to display parents omitted above

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by dev-python/pipx (argument)
=dev-python/pipx-1.7.1 ~amd64
# required by dev-python/pipx-1.7.1::gentoo
# required by dev-python/pipx (argument)
=dev-python/userpath-1.9.2 ~amd64

Would you like to add these changes to your config files? [Yes/No] y

Autounmask changes successfully written.

 * IMPORTANT: config file '/etc/portage/package.accept_keywords/zz-autounmask' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

 * In order to avoid wasting time, backtracking has terminated early
 * due to the above autounmask change(s). The --autounmask-backtrack=y
 * option can be used to force further backtracking, but there is no
 * guarantee that it will produce a solution.

!!! The following installed packages are masked:
- sys-libs/glibc-2.39-r6::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Andreas K. Hüttel <[email protected]> (2017-05-21)
# (and others, updated later)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
# these packages can result in build failures (and possible breakage) for
# many packages, and may leave your system vulnerable to known security
# exploits.
# If you still use one of these old toolchain packages, please upgrade (and
# switch the compiler / the binutils) ASAP. If you need them for a specific
# (isolated) use case, feel free to unmask them on your system.

- sys-devel/binutils-2.42-r1::gentoo (masked by: package.mask)
- virtual/rust-1.77.1::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Matt Jolly <[email protected]> (2024-11-09)
# The legacy Rust ebuilds are no longer maintained and have been
# replaced by the new slotted Rust. Removal in 30 days.

- dev-lang/rust-bin-1.77.1::gentoo (masked by: package.mask)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1091
Location: Somewhere in Denmark

PostPosted: Wed May 28, 2025 4:26 pm    Post subject: Reply with quote

Some of the versions shown seems out-of-date, have you done an
Code:
emerge --sync
or similar recently? (what does emerge --info say about repo-timestamps)
Back to top
View user's profile Send private message
red6
n00b
n00b


Joined: 05 Apr 2024
Posts: 26
Location: Toronto

PostPosted: Wed May 28, 2025 4:38 pm    Post subject: Ran an emerge --sync Reply with quote

freke wrote:
Some of the versions shown seems out-of-date, have you done an
Code:
emerge --sync
or similar recently? (what does emerge --info say about repo-timestamps)


Results of emerge --sync
Code:

Number of files: 152,925 (reg: 125,647, dir: 27,278)
Number of created files: 782 (reg: 755, dir: 27)
Number of deleted files: 783 (reg: 762, dir: 21)
Number of regular files transferred: 7,358
Total file size: 221.30M bytes
Total transferred file size: 23.41M bytes
Literal data: 23.41M bytes
Matched data: 0 bytes
File list size: 3.85M
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 172.29K
Total bytes received: 27.65M

sent 172.29K bytes  received 27.65M bytes  598.31K bytes/sec
total size is 221.30M  speedup is 7.95
 * Manifest timestamp: 2025-05-28 15:11:09 UTC
 * Valid OpenPGP signature found:
 * - primary key: DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D
 * - subkey: E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
 * - timestamp: 2025-05-28 15:11:09 UTC
 * Verifying /var/db/repos/gentoo/.tmp-unverified-download-quarantine ...                                                                              [ ok ]
=== Sync completed for gentoo

Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
/var/db/repos/gentoo/profiles/updates/4Q-2024....................................................................................
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1091
Location: Somewhere in Denmark

PostPosted: Wed May 28, 2025 5:02 pm    Post subject: Re: I tried following your link. Reply with quote

red6 wrote:
I ran...

emerge --ask --autounmask=y --autounmask-write dev-python/pipx

Got this. Am I any further ahead...?

Also, don't seem to have the eshowkw program installed. Not availabe thru emerge.

Code:

NOTE: Use the '--verbose-conflicts' option to display parents omitted above

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by dev-python/pipx (argument)
=dev-python/pipx-1.7.1 ~amd64
# required by dev-python/pipx-1.7.1::gentoo
# required by dev-python/pipx (argument)
=dev-python/userpath-1.9.2 ~amd64

Would you like to add these changes to your config files? [Yes/No] y

Autounmask changes successfully written.

 * IMPORTANT: config file '/etc/portage/package.accept_keywords/zz-autounmask' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

 * In order to avoid wasting time, backtracking has terminated early
 * due to the above autounmask change(s). The --autounmask-backtrack=y
 * option can be used to force further backtracking, but there is no
 * guarantee that it will produce a solution.

!!! The following installed packages are masked:
- sys-libs/glibc-2.39-r6::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Andreas K. Hüttel <[email protected]> (2017-05-21)
# (and others, updated later)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
# these packages can result in build failures (and possible breakage) for
# many packages, and may leave your system vulnerable to known security
# exploits.
# If you still use one of these old toolchain packages, please upgrade (and
# switch the compiler / the binutils) ASAP. If you need them for a specific
# (isolated) use case, feel free to unmask them on your system.

- sys-devel/binutils-2.42-r1::gentoo (masked by: package.mask)
- virtual/rust-1.77.1::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Matt Jolly <[email protected]> (2024-11-09)
# The legacy Rust ebuilds are no longer maintained and have been
# replaced by the new slotted Rust. Removal in 30 days.

- dev-lang/rust-bin-1.77.1::gentoo (masked by: package.mask)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


I don't know if eshowkw is a local alias? it seems to be app-portage/gentoolkit
Code:
ns ~ # equery y pipx
Keywords for dev-python/pipx:
      |                             |   u   |
      | a   a     p s   a l   r     |   n   |
      | m   r h   p p   l o m i s m | e u s | r
      | d a m p p c a x p o i s 3 6 | a s l | e
      | 6 r 6 p p 6 r 8 h n p c 9 8 | p e o | p
      | 4 m 4 a c 4 c 6 a g s v 0 k | i d t | o
------+-----------------------------+-------+-------
1.7.1 | ~ o o o o o o o o o o o o o | 8 o 0 | gentoo
ns ~ # emerge -va1 /usr/bin/equery

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 6.42 s (backtrack: 0/20).

[ebuild   R    ] app-portage/gentoolkit-0.6.8::gentoo  USE="-test" PYTHON_TARGETS="python3_13 -pypy3_11 -python3_11 -python3_12" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


What is the output of
Code:
emerge --ask --autounmask=y --autounmask-write dev-python/pipx
after the emerge --sync?
Keywording a single package might need a plethora of other packages keyworded, too
Back to top
View user's profile Send private message
red6
n00b
n00b


Joined: 05 Apr 2024
Posts: 26
Location: Toronto

PostPosted: Thu May 29, 2025 3:28 pm    Post subject: Best way to install Python PIP Reply with quote

Discovered this method that works. It also seems to be the way to do it on FreeBSD 14.2.

Download get-pip.py from https://pip.pypa.io/en/stable/installation/#get-pip-py

Then run the script in a "venv".

Then you can test it with "pip install Flask" as an example.

End of nightmare:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



OSZAR »