Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Rpi3 ~arm Python
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Tue Feb 25, 2020 6:28 am    Post subject: [Solved] Rpi3 ~arm Python Reply with quote

I don't understand why I installed both Python3.7 and python3.8 but eselect python list keeps showing me only 2.7 and 3.6.

Last edited by antonellocaroli on Sun Mar 01, 2020 10:27 am; edited 1 time in total
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Wed Feb 26, 2020 8:00 am    Post subject: Reply with quote

what is the result of

Quote:
python-exec2c -l



less /usr/share/eselect/modules/python.eselect
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Wed Feb 26, 2020 5:10 pm    Post subject: Reply with quote

erm67 wrote:
what is the result of

Quote:
python-exec2c -l




Code:

python-exec2c -l
python3.6
python2.7


erm67 wrote:

less /usr/share/eselect/modules/python.eselect


http://dpaste.com/0102KS8
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Wed Feb 26, 2020 7:40 pm    Post subject: Reply with quote

python-exec cannot find the interpreters you have installed, sure they were really installed?
https://wiki.gentoo.org/wiki/Project:Python/python-exec
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Thu Feb 27, 2020 2:38 am    Post subject: Reply with quote

erm67 wrote:
python-exec cannot find the interpreters you have installed, sure they were really installed?


yes

Code:
GentooPlayerRpi32 ~ # emerge -pv dev-lang/python:3.7

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

Calculating dependencies... done!
[ebuild   R    ] dev-lang/python-3.7.6:3.7/3.7m::gentoo  USE="gdbm ipv6 ncurses readline sqlite ssl xml -bluetooth -build -examples (-hardened) -libressl -test -tk -wininst" 0 KiB

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

 * IMPORTANT: 24 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

GentooPlayerRpi32 ~ # emerge -pv dev-lang/python:3.8

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

Calculating dependencies... done!
[ebuild   R    ] dev-lang/python-3.8.1:3.8::gentoo  USE="gdbm ipv6 ncurses readline sqlite ssl xml -bluetooth -build -examples (-hardened) -libressl -test -tk -wininst" 0 KiB

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

 * IMPORTANT: 24 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Code:
ls -l /usr/lib
drwxr-xr-x 24 root root    20480 Dec 30 16:28 python2.7
drwxr-xr-x 33 root root     4096 Dec 31 07:38 python3.6
drwxr-xr-x 33 root root     4096 Feb 25 06:44 python3.7
drwxr-xr-x 33 root root     4096 Feb 25 07:20 python3.8
drwxr-xr-x  6 root root     4096 Feb 25 07:20 python-exec


Code:

/usr/lib/python-exec:
total 20
drwxr-xr-x 2 root root 4096 Feb 12 08:47 python2.7
drwxr-xr-x 2 root root 4096 Feb 12 20:12 python3.6
drwxr-xr-x 2 root root 4096 Feb 25 06:44 python3.7
drwxr-xr-x 2 root root 4096 Feb 25 07:20 python3.8
-rwxr-xr-x 1 root root 2302 Dec 31 08:47 python-exec2
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 647
Location: EU

PostPosted: Thu Feb 27, 2020 7:18 am    Post subject: Reply with quote

did you try to re-emerge python-exec?

I have multiple python installed and in works so it's probably not related to the architecture.

Code:
erm67 /usr/src # python-exec2c -l
python3.7
python3.6
python2.7

_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net


Last edited by erm67 on Thu Feb 27, 2020 8:52 am; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3597

PostPosted: Thu Feb 27, 2020 8:12 am    Post subject: Re: Rpi3 ~arm Python Reply with quote

antonellocaroli wrote:
I don't understand why I installed both Python3.7 and python3.8 but eselect python list keeps showing me only 2.7 and 3.6.

If you put python_targets_python2_7 into /etc/portage/profile/use.mask you would mask the 2.7 too.
For python3_7 see bug 696084
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Fri Feb 28, 2020 3:51 pm    Post subject: Reply with quote

erm67 wrote:
did you try to re-emerge python-exec?


Yes, but I can´t figure out what the problem is...
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Fri Feb 28, 2020 3:53 pm    Post subject: Re: Rpi3 ~arm Python Reply with quote

charles17 wrote:
antonellocaroli wrote:
I don't understand why I installed both Python3.7 and python3.8 but eselect python list keeps showing me only 2.7 and 3.6.

If you put python_targets_python2_7 into /etc/portage/profile/use.mask you would mask the 2.7 too.
For python3_7 see bug 696084


The problem is, he can't see me in 3.7 or 3.8.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3597

PostPosted: Fri Feb 28, 2020 5:00 pm    Post subject: Re: Rpi3 ~arm Python Reply with quote

antonellocaroli wrote:
The problem is, he can't see me in 3.7 or 3.8.

Maybe masked? What are you getting from this?
Code:
grep -nr 'python3_7\|python3_8' /var/db/repos/gentoo/profiles/
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Fri Feb 28, 2020 5:07 pm    Post subject: Re: Rpi3 ~arm Python Reply with quote

charles17 wrote:
antonellocaroli wrote:
The problem is, he can't see me in 3.7 or 3.8.

Maybe masked? What are you getting from this?
Code:
grep -nr 'python3_7\|python3_8' /var/db/repos/gentoo/profiles/


Code:
/var/db/repos/gentoo/profiles/base/package.use.force:115:dev-lang/python-exec python_targets_python3_7
/var/db/repos/gentoo/profiles/base/package.use.force:116:dev-lang/python-exec python_targets_python3_8
/var/db/repos/gentoo/profiles/prefix/windows/cygwin/use.mask:8:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:13:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:14:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:15:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:16:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:7:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:8:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:9:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:10:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/powerpc/use.mask:20:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/use.mask:21:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:17:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:18:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:19:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:20:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/alpha/use.mask:20:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.mask:21:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:9:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:10:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:11:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:12:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/x86/package.use.stable.mask:35:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/x86/use.mask:15:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.mask:16:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/base/use.mask:7:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/base/use.mask:8:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:24:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:25:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:26:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:27:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/sparc/use.mask:24:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/sparc/use.mask:25:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:25:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:26:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:27:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:28:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:9:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:10:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:11:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:12:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/package.use.stable.mask:36:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/use.mask:11:-python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/use.mask:12:-python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:13:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:14:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:15:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:16:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/ia64/use.mask:20:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/ia64/use.mask:21:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/make.defaults:41:PYTHON_TARGETS="python3_7"
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/make.defaults:42:PYTHON_SINGLE_TARGET="python3_7"
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/use.force:8:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/use.force:9:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:17:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:18:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:19:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:20:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/arm/use.mask:19:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.mask:20:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/hppa/use.mask:23:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/hppa/use.mask:24:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/s390/use.mask:27:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/s390/use.mask:28:python_single_target_python3_7
/var/db/repos/gentoo/profiles/desc/python_single_target.desc:8:python3_7 - Build for Python 3.7 only
/var/db/repos/gentoo/profiles/desc/python_single_target.desc:9:python3_8 - Build for Python 3.8 only
/var/db/repos/gentoo/profiles/desc/python_targets.desc:8:python3_7 - Build with Python 3.7
/var/db/repos/gentoo/profiles/desc/python_targets.desc:9:python3_8 - Build with Python 3.8
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3597

PostPosted: Sat Feb 29, 2020 8:32 am    Post subject: Re: Rpi3 ~arm Python Reply with quote

Looking for package.use.stable.mask in that output should tell you.
Quote:
...
/var/db/repos/gentoo/profiles/arch/x86/package.use.stable.mask:35:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
...
/var/db/repos/gentoo/profiles/arch/amd64/package.use.stable.mask:36:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8

There is no such unmask for dev-lang/python-exec on arm.
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Sat Feb 29, 2020 8:50 am    Post subject: Re: Rpi3 ~arm Python Reply with quote

charles17 wrote:
Looking for package.use.stable.mask in that output should tell you.
Quote:
...
/var/db/repos/gentoo/profiles/arch/x86/package.use.stable.mask:35:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
...
/var/db/repos/gentoo/profiles/arch/amd64/package.use.stable.mask:36:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8

There is no such unmask for dev-lang/python-exec on arm.


so it's normal that eselect python list doesn't see them?

Is that right?

I don't really understand much.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3597

PostPosted: Sat Feb 29, 2020 9:02 am    Post subject: Reply with quote

You can check yourself by unmasking it with your /etc/portage/profile/package.use.stable.mask file.
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Sat Feb 29, 2020 9:42 am    Post subject: Reply with quote

charles17 wrote:
You can check yourself by unmasking it with your /etc/portage/profile/package.use.stable.mask file.


so I should create the /etc/protage/profile folder

and in the /etc/portage/profile/package.use.stable.mask file put

python-exec -python_targets_python3_7 -python_targets_python3_8

?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3597

PostPosted: Sat Feb 29, 2020 9:49 am    Post subject: Reply with quote

Yep. Just try it and then re-check your eselect python list to see if it changes
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Sat Feb 29, 2020 10:16 am    Post subject: Reply with quote

charles17 wrote:
Yep. Just try it and then re-check your eselect python list to see if it changes


Code:
/var/db/repos/gentoo/profiles/prefix/windows/cygwin/use.mask:8:python_targets_python3_7
/var/db/repos/gentoo/profiles/desc/python_single_target.desc:8:python3_7 - Build for Python 3.7 only
/var/db/repos/gentoo/profiles/desc/python_single_target.desc:9:python3_8 - Build for Python 3.8 only
/var/db/repos/gentoo/profiles/desc/python_targets.desc:8:python3_7 - Build with Python 3.7
/var/db/repos/gentoo/profiles/desc/python_targets.desc:9:python3_8 - Build with Python 3.8
/var/db/repos/gentoo/profiles/arch/hppa/use.mask:23:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/hppa/use.mask:24:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:17:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:18:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:19:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:20:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/alpha/use.mask:20:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.mask:21:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:9:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:10:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:11:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:12:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/x86/package.use.stable.mask:35:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/x86/use.mask:15:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.mask:16:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:9:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:10:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:11:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:12:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/package.use.stable.mask:36:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/use.mask:11:-python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/use.mask:12:-python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:24:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:25:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:26:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:27:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/sparc/use.mask:24:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/sparc/use.mask:25:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/base/use.mask:7:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/base/use.mask:8:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:13:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:14:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:15:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:16:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/ia64/use.mask:20:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/ia64/use.mask:21:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/s390/use.mask:27:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/s390/use.mask:28:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/use.mask:20:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/use.mask:21:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:13:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:14:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:15:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:16:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:7:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:8:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:9:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:10:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:17:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:18:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:19:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:20:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/arm/use.mask:19:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.mask:20:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:25:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:26:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:27:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:28:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/use.force:8:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/use.force:9:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/make.defaults:41:PYTHON_TARGETS="python3_7"
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/make.defaults:42:PYTHON_SINGLE_TARGET="python3_7"
/var/db/repos/gentoo/profiles/base/package.use.force:115:dev-lang/python-exec python_targets_python3_7
/var/db/repos/gentoo/profiles/base/package.use.force:116:dev-lang/python-exec python_targets_python3_8


but eselect still doesn't show them

Code:
eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3597

PostPosted: Sat Feb 29, 2020 10:42 am    Post subject: Reply with quote

antonellocaroli wrote:
charles17 wrote:
Yep. Just try it and then re-check your eselect python list to see if it changes

Please verify
Code:
grep -nr 'dev-lang/python-exec' /etc/portage/*
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Sat Feb 29, 2020 10:43 am    Post subject: Reply with quote

charles17 wrote:
antonellocaroli wrote:
charles17 wrote:
Yep. Just try it and then re-check your eselect python list to see if it changes

Please verify
Code:
grep -nr 'dev-lang/python-exec' /etc/portage/*


Code:
grep -nr 'dev-lang/python-exec' /etc/portage/*
/etc/portage/profile/package.use.stable.mask:1:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3597

PostPosted: Sat Feb 29, 2020 11:07 am    Post subject: Reply with quote

Yes, something is still missing (or too much).
Code:
/var/db/repos/gentoo/profiles/arch/arm/use.mask:19:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.mask:20:python_single_target_python3_7

Try to minus them in /etc/portage/profile/use.mask

Also see bug 696084
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Sat Feb 29, 2020 11:33 am    Post subject: Reply with quote

charles17 wrote:
Yes, something is still missing (or too much).
Code:
/var/db/repos/gentoo/profiles/arch/arm/use.mask:19:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.mask:20:python_single_target_python3_7

Try to minus them in /etc/portage/profile/use.mask

Also see bug 696084


Code:
/var/db/repos/gentoo/profiles/prefix/windows/cygwin/use.mask:8:python_targets_python3_7
/var/db/repos/gentoo/profiles/desc/python_single_target.desc:8:python3_7 - Build for Python 3.7 only
/var/db/repos/gentoo/profiles/desc/python_single_target.desc:9:python3_8 - Build for Python 3.8 only
/var/db/repos/gentoo/profiles/desc/python_targets.desc:8:python3_7 - Build with Python 3.7
/var/db/repos/gentoo/profiles/desc/python_targets.desc:9:python3_8 - Build with Python 3.8
/var/db/repos/gentoo/profiles/arch/hppa/use.mask:23:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/hppa/use.mask:24:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:17:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:18:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:19:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/alpha/use.stable.mask:20:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/alpha/use.mask:20:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/alpha/use.mask:21:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:9:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:10:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:11:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/x86/use.stable.mask:12:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/x86/package.use.stable.mask:35:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/x86/use.mask:15:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/x86/use.mask:16:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:9:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:10:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:11:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/use.stable.mask:12:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/package.use.stable.mask:36:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/use.mask:11:-python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/amd64/use.mask:12:-python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:24:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:25:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:26:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/sparc/use.stable.mask:27:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/sparc/use.mask:24:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/sparc/use.mask:25:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/base/use.mask:7:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/base/use.mask:8:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:13:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:14:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:15:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/ia64/use.stable.mask:16:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/ia64/use.mask:20:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/ia64/use.mask:21:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/s390/use.mask:27:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/s390/use.mask:28:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/use.mask:20:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/use.mask:21:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:13:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:14:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:15:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/powerpc/ppc64/use.stable.mask:16:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:7:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:8:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:9:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/powerpc/ppc32/use.stable.mask:10:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:17:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:18:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:19:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/arm/use.stable.mask:20:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/arm/use.mask:19:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm/use.mask:20:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:25:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:26:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:27:python_targets_python3_8
/var/db/repos/gentoo/profiles/arch/arm64/use.stable.mask:28:python_single_target_python3_8
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/use.force:8:python_targets_python3_7
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/use.force:9:python_single_target_python3_7
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/make.defaults:41:PYTHON_TARGETS="python3_7"
/var/db/repos/gentoo/profiles/arch/riscv/rv64gc/make.defaults:42:PYTHON_SINGLE_TARGET="python3_7"
/var/db/repos/gentoo/profiles/base/package.use.force:115:dev-lang/python-exec python_targets_python3_7
/var/db/repos/gentoo/profiles/base/package.use.force:116:dev-lang/python-exec python_targets_python3_8


still not going


Code:
grep -nr 'dev-lang/python-exec' /etc/portage/*
/etc/portage/profile/package.use.stable.mask:1:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
/etc/portage/profile/use.mask:1:dev-lang/python-exec -python_targets_python3_7 -python_targets_python3_8
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3597

PostPosted: Sat Feb 29, 2020 12:40 pm    Post subject: Reply with quote

Have a look in man 5 portage.

Content should be similar to /var/db/repos/gentoo/profiles/arch/arm/use.mask but with leading minus sign

Here what I use for USE-masking python:2.7
/etc/portage/profile/use.mask :
python_targets_python2_7
python_single_target_python2_7

But you want to unmask, so prepend minus sign
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 394

PostPosted: Sat Feb 29, 2020 2:33 pm    Post subject: Reply with quote

charles17 wrote:
Have a look in man 5 portage.

Content should be similar to /var/db/repos/gentoo/profiles/arch/arm/use.mask but with leading minus sign

Here what I use for USE-masking python:2.7
/etc/portage/profile/use.mask :
python_targets_python2_7
python_single_target_python2_7

But you want to unmask, so prepend minus sign


ok!

It works now.

But now the question is:

Why do we have to do this? How come it's not in the standard/test profile?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3597

PostPosted: Sat Feb 29, 2020 3:02 pm    Post subject: Reply with quote

antonellocaroli wrote:
Why do we have to do this? How come it's not in the standard/test profile?

The question is: Why do you want to use dev-lang/python:3.7 or even dev-lang/python:3.8 while is's still masked?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 16472

PostPosted: Sat Feb 29, 2020 4:56 pm    Post subject: Reply with quote

Usually, packages are masked out for good reason. In this case, if I were to guess, I would say that the package either is insufficiently tested, or has known problems, on the masked out architecture. It will be unmasked when its maintainers decide that it is suitable for general consumption. If you want to use it early, you need to go through the work above to advise Portage that you want the package in its potentially unfinished state.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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