public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Python-3.9 and emerge problems
@ 2021-06-18  9:46 Jacques Montier
  2021-06-18 11:20 ` John Covici
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Jacques Montier @ 2021-06-18  9:46 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 2469 bytes --]

Hello all,

This morning :

#emerge --sync
#emerge --oneshot sys-apps/portage
#emerge -auvDN --with-bdeps=y --keep-going world

I get these errors :

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.9/emerge", line 51, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.9/site-packages/_emerge/main.py", line 1319, in
emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line 3392, in
run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line 354, in
action_build
    success, mydepgraph, favorites = backtrack_depgraph(
  File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line 10005,
in backtrack_depgraph
    return _backtrack_depgraph(settings, trees, myopts, myparams,
  File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line 10043,
in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line 4055,
in select_files
    return self._select_files(args)
  File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line 4189,
in _select_files
    set_atoms = root_config.setconfig.getSetAtoms(s)
  File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py", line
271, in getSetAtoms
    myatoms.update(self.getSetAtoms(s,
  File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py", line
271, in getSetAtoms
    myatoms.update(self.getSetAtoms(s,
  File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py", line
260, in getSetAtoms
    myatoms = myset.getAtoms()
  File "/usr/lib/python3.9/site-packages/portage/_sets/base.py", line 58,
in getAtoms
    self._load()
  File "/usr/lib/python3.9/site-packages/portage/_sets/base.py", line 53,
in _load
    self.load()
  File "/usr/lib/python3.9/site-packages/portage/_sets/dbapi.py", line 111,
in load
    self._setAtoms(self.mapPathsToAtoms(self._files,
  File "/usr/lib/python3.9/site-packages/portage/_sets/dbapi.py", line 83,
in mapPathsToAtoms
    for p in exclude_paths:
TypeError: 'NoneType' object is not iterable

And i can't do anything else...

I see that python-3.8 has gone away
# eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.9

emerge --info file attached

I don't really know what to do.
Any idea ?

Thanks a lot in advance,

Regards,

*--*
*Jacques*

[-- Attachment #1.2: Type: text/html, Size: 3423 bytes --]

[-- Attachment #2: emerge_info.txt --]
[-- Type: text/plain, Size: 6150 bytes --]

Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1/desktop, gcc-10.3.0, glibc-2.33, 5.10.27-gentoo x86_64)
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-glibc2.33
KiB Mem:    18428432 total,  12898428 free
KiB Swap:   18874364 total,  18874364 free
Timestamp of repository gentoo: Fri, 18 Jun 2021 09:00:01 +0000
Head commit of repository gentoo: e760f88d937bcf1db534f3294831835e9e45203e
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.9.5_p2::gentoo
dev-lang/rust-bin:        1.52.1::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

overlay_local
    location: /var/db/repos/gentoo/local
    masters: gentoo
    priority: 0

Installed sets: @kernels
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
INSTALL_MASK="/lib/systemd/system /usr/lib/systemd/system"
LANG="fr_FR.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gtk+extra gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc linguas_fr mad mmx mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt5 readline sdl seccomp spell split-usr sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6 python3_9" PYTHON_TARGETS="python2_7 python3_6 python3_9" RUBY_TARGETS="ruby26" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS


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

* Re: [gentoo-user] Python-3.9 and emerge problems
  2021-06-18  9:46 [gentoo-user] Python-3.9 and emerge problems Jacques Montier
@ 2021-06-18 11:20 ` John Covici
  2021-06-18 11:45 ` Wols Lists
  2021-06-18 12:07 ` Neil Bothwick
  2 siblings, 0 replies; 11+ messages in thread
From: John Covici @ 2021-06-18 11:20 UTC (permalink / raw
  To: gentoo-user

On Fri, 18 Jun 2021 05:46:27 -0400,
Jacques Montier wrote:
> 
> [1  <multipart/alternative (7bit)>]
> [1.1  <text/plain; UTF-8 (7bit)>]
> Hello all,
> 
> This morning :
> 
> #emerge --sync
> #emerge --oneshot sys-apps/portage
> #emerge -auvDN --with-bdeps=y --keep-going world
> 
> I get these errors :
> 
> Traceback (most recent call last):
>   File "/usr/lib/python-exec/python3.9/emerge", line 51, in <module>
>     retval = emerge_main()
>   File "/usr/lib/python3.9/site-packages/_emerge/main.py", line 1319, in
> emerge_main
>     return run_action(emerge_config)
>   File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line 3392, in
> run_action
>     retval = action_build(emerge_config, spinner=spinner)
>   File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line 354, in
> action_build
>     success, mydepgraph, favorites = backtrack_depgraph(
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line 10005,
> in backtrack_depgraph
>     return _backtrack_depgraph(settings, trees, myopts, myparams,
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line 10043,
> in _backtrack_depgraph
>     success, favorites = mydepgraph.select_files(myfiles)
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line 4055,
> in select_files
>     return self._select_files(args)
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line 4189,
> in _select_files
>     set_atoms = root_config.setconfig.getSetAtoms(s)
>   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py", line
> 271, in getSetAtoms
>     myatoms.update(self.getSetAtoms(s,
>   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py", line
> 271, in getSetAtoms
>     myatoms.update(self.getSetAtoms(s,
>   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py", line
> 260, in getSetAtoms
>     myatoms = myset.getAtoms()
>   File "/usr/lib/python3.9/site-packages/portage/_sets/base.py", line 58,
> in getAtoms
>     self._load()
>   File "/usr/lib/python3.9/site-packages/portage/_sets/base.py", line 53,
> in _load
>     self.load()
>   File "/usr/lib/python3.9/site-packages/portage/_sets/dbapi.py", line 111,
> in load
>     self._setAtoms(self.mapPathsToAtoms(self._files,
>   File "/usr/lib/python3.9/site-packages/portage/_sets/dbapi.py", line 83,
> in mapPathsToAtoms
>     for p in exclude_paths:
> TypeError: 'NoneType' object is not iterable
> 
> And i can't do anything else...
> 
> I see that python-3.8 has gone away
> # eselect python list
> Available Python interpreters, in order of preference:
>   [1]   python3.9
> 
> emerge --info file attached
> 
> I don't really know what to do.
> Any idea ?
> 
> Thanks a lot in advance,

...

I got a similar error -- I have a strange idea  about this -- see if
you have any instances ofthread.isAlive( in portage or anywhere else
in your python3.9 -- if you do you need to change them to
thread.is_alive( ... python changed the name and I don't think some
people got the message -- apparently it has been depricated for quite
a while now.

Just a wild guess.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com


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

* Re: [gentoo-user] Python-3.9 and emerge problems
  2021-06-18  9:46 [gentoo-user] Python-3.9 and emerge problems Jacques Montier
  2021-06-18 11:20 ` John Covici
@ 2021-06-18 11:45 ` Wols Lists
  2021-06-18 12:07 ` Neil Bothwick
  2 siblings, 0 replies; 11+ messages in thread
From: Wols Lists @ 2021-06-18 11:45 UTC (permalink / raw
  To: gentoo-user

On 18/06/21 10:46, Jacques Montier wrote:
> Hello all,
> 
> This morning :
> 
> #emerge --sync
> #emerge --oneshot sys-apps/portage
> #emerge -auvDN --with-bdeps=y --keep-going world

You can't try just updating python? When I tried to emerge portage it
blew up with loads of stuff about 3.8 and 3.9, so I just did an "emerge
-uDN python" and everything started working (well, emerge at least ... :-)

Cheers,
Wol
> 
> I get these errors :
> 
> Traceback (most recent call last):
>   File "/usr/lib/python-exec/python3.9/emerge", line 51, in <module>
>     retval = emerge_main()
>   File "/usr/lib/python3.9/site-packages/_emerge/main.py", line 1319, in
> emerge_main
>     return run_action(emerge_config)
>   File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line 3392,
> in run_action
>     retval = action_build(emerge_config, spinner=spinner)
>   File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line 354,
> in action_build
>     success, mydepgraph, favorites = backtrack_depgraph(
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> 10005, in backtrack_depgraph
>     return _backtrack_depgraph(settings, trees, myopts, myparams,
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> 10043, in _backtrack_depgraph
>     success, favorites = mydepgraph.select_files(myfiles)
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> 4055, in select_files
>     return self._select_files(args)
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> 4189, in _select_files
>     set_atoms = root_config.setconfig.getSetAtoms(s)
>   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py",
> line 271, in getSetAtoms
>     myatoms.update(self.getSetAtoms(s,
>   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py",
> line 271, in getSetAtoms
>     myatoms.update(self.getSetAtoms(s,
>   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py",
> line 260, in getSetAtoms
>     myatoms = myset.getAtoms()
>   File "/usr/lib/python3.9/site-packages/portage/_sets/base.py", line
> 58, in getAtoms
>     self._load()
>   File "/usr/lib/python3.9/site-packages/portage/_sets/base.py", line
> 53, in _load
>     self.load()
>   File "/usr/lib/python3.9/site-packages/portage/_sets/dbapi.py", line
> 111, in load
>     self._setAtoms(self.mapPathsToAtoms(self._files,
>   File "/usr/lib/python3.9/site-packages/portage/_sets/dbapi.py", line
> 83, in mapPathsToAtoms
>     for p in exclude_paths:
> TypeError: 'NoneType' object is not iterable
> 
> And i can't do anything else...
> 
> I see that python-3.8 has gone away
> # eselect python list
> Available Python interpreters, in order of preference:
>   [1]   python3.9
> 
> emerge --info file attached
> 
> I don't really know what to do.
> Any idea ?
> 
> Thanks a lot in advance,
> 
> Regards,
> 
> /--/
> /Jacques/



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

* Re: [gentoo-user] Python-3.9 and emerge problems
  2021-06-18  9:46 [gentoo-user] Python-3.9 and emerge problems Jacques Montier
  2021-06-18 11:20 ` John Covici
  2021-06-18 11:45 ` Wols Lists
@ 2021-06-18 12:07 ` Neil Bothwick
  2021-06-18 13:11   ` Neil Bothwick
  2021-06-18 13:26   ` John Covici
  2 siblings, 2 replies; 11+ messages in thread
From: Neil Bothwick @ 2021-06-18 12:07 UTC (permalink / raw
  To: gentoo-user

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

On Fri, 18 Jun 2021 11:46:27 +0200, Jacques Montier wrote:

> #emerge --sync
> #emerge --oneshot sys-apps/portage
> #emerge -auvDN --with-bdeps=y --keep-going world
> 
> I get these errors :
> 
> Traceback (most recent call last):
>   File "/usr/lib/python-exec/python3.9/emerge", line 51, in <module>
>     retval = emerge_main()
>   File "/usr/lib/python3.9/site-packages/_emerge/main.py", line 1319, in
> emerge_main
>     return run_action(emerge_config)
>   File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line
> 3392, in run_action
>     retval = action_build(emerge_config, spinner=spinner)
>   File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line 354,
> in action_build
>     success, mydepgraph, favorites = backtrack_depgraph(
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> 10005, in backtrack_depgraph
>     return _backtrack_depgraph(settings, trees, myopts, myparams,
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> 10043, in _backtrack_depgraph
>     success, favorites = mydepgraph.select_files(myfiles)
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> 4055, in select_files
>     return self._select_files(args)
>   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> 4189, in _select_files
>     set_atoms = root_config.setconfig.getSetAtoms(s)
>   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py",
> line 271, in getSetAtoms
>     myatoms.update(self.getSetAtoms(s,
>   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py",
> line 271, in getSetAtoms
>     myatoms.update(self.getSetAtoms(s,
>   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py",
> line 260, in getSetAtoms
>     myatoms = myset.getAtoms()
>   File "/usr/lib/python3.9/site-packages/portage/_sets/base.py", line
> 58, in getAtoms
>     self._load()
>   File "/usr/lib/python3.9/site-packages/portage/_sets/base.py", line
> 53, in _load
>     self.load()
>   File "/usr/lib/python3.9/site-packages/portage/_sets/dbapi.py", line
> 111, in load
>     self._setAtoms(self.mapPathsToAtoms(self._files,
>   File "/usr/lib/python3.9/site-packages/portage/_sets/dbapi.py", line
> 83, in mapPathsToAtoms
>     for p in exclude_paths:
> TypeError: 'NoneType' object is not iterable
> 
> And i can't do anything else...
> 
> I see that python-3.8 has gone away
> # eselect python list
> Available Python interpreters, in order of preference:
>   [1]   python3.9

I has the same a couple of days ago and had to downgrade portage from
3.0.20 to 3.0.18, by untarring the binary package to /. However, that
needed python 3.8, so I also had to untar the binary package for that.
Then I re-emerged portage-3.0.18 and python-3.8 and masked
portage-3.0.20. Once I had re-emerged portage-3.0.18, it worked with
python 3.9.

I see that portage 3.0.20-r3 is here now, so I'll try emerging that on
one system and see what happens.


-- 
Neil Bothwick

C Error #011: First C Program, huh?

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

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

* Re: [gentoo-user] Python-3.9 and emerge problems
  2021-06-18 12:07 ` Neil Bothwick
@ 2021-06-18 13:11   ` Neil Bothwick
  2021-06-18 13:54     ` John Covici
  2021-06-18 13:26   ` John Covici
  1 sibling, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2021-06-18 13:11 UTC (permalink / raw
  To: gentoo-user

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

On Fri, 18 Jun 2021 13:07:10 +0100, Neil Bothwick wrote:

> I had the same a couple of days ago and had to downgrade portage from
> 3.0.20 to 3.0.18, by untarring the binary package to /. However, that
> needed python 3.8, so I also had to untar the binary package for that.
> Then I re-emerged portage-3.0.18 and python-3.8 and masked
> portage-3.0.20. Once I had re-emerged portage-3.0.18, it worked with
> python 3.9.
> 
> I see that portage 3.0.20-r3 is here now, so I'll try emerging that on
> one system and see what happens.


Same problem with 3.0.20-r3 but then I found
https://bugs.gentoo.org/796584, changing sets.conf got rid of the issue.


-- 
Neil Bothwick

Of all the people I've met you're certainly one of them.

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

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

* Re: [gentoo-user] Python-3.9 and emerge problems
  2021-06-18 12:07 ` Neil Bothwick
  2021-06-18 13:11   ` Neil Bothwick
@ 2021-06-18 13:26   ` John Covici
  1 sibling, 0 replies; 11+ messages in thread
From: John Covici @ 2021-06-18 13:26 UTC (permalink / raw
  To: gentoo-user

On Fri, 18 Jun 2021 08:07:10 -0400,
Neil Bothwick wrote:
> 
> [1  <text/plain; US-ASCII (quoted-printable)>]
> On Fri, 18 Jun 2021 11:46:27 +0200, Jacques Montier wrote:
> 
> > #emerge --sync
> > #emerge --oneshot sys-apps/portage
> > #emerge -auvDN --with-bdeps=y --keep-going world
> > 
> > I get these errors :
> > 
> > Traceback (most recent call last):
> >   File "/usr/lib/python-exec/python3.9/emerge", line 51, in <module>
> >     retval = emerge_main()
> >   File "/usr/lib/python3.9/site-packages/_emerge/main.py", line 1319, in
> > emerge_main
> >     return run_action(emerge_config)
> >   File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line
> > 3392, in run_action
> >     retval = action_build(emerge_config, spinner=spinner)
> >   File "/usr/lib/python3.9/site-packages/_emerge/actions.py", line 354,
> > in action_build
> >     success, mydepgraph, favorites = backtrack_depgraph(
> >   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> > 10005, in backtrack_depgraph
> >     return _backtrack_depgraph(settings, trees, myopts, myparams,
> >   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> > 10043, in _backtrack_depgraph
> >     success, favorites = mydepgraph.select_files(myfiles)
> >   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> > 4055, in select_files
> >     return self._select_files(args)
> >   File "/usr/lib/python3.9/site-packages/_emerge/depgraph.py", line
> > 4189, in _select_files
> >     set_atoms = root_config.setconfig.getSetAtoms(s)
> >   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py",
> > line 271, in getSetAtoms
> >     myatoms.update(self.getSetAtoms(s,
> >   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py",
> > line 271, in getSetAtoms
> >     myatoms.update(self.getSetAtoms(s,
> >   File "/usr/lib/python3.9/site-packages/portage/_sets/__init__.py",
> > line 260, in getSetAtoms
> >     myatoms = myset.getAtoms()
> >   File "/usr/lib/python3.9/site-packages/portage/_sets/base.py", line
> > 58, in getAtoms
> >     self._load()
> >   File "/usr/lib/python3.9/site-packages/portage/_sets/base.py", line
> > 53, in _load
> >     self.load()
> >   File "/usr/lib/python3.9/site-packages/portage/_sets/dbapi.py", line
> > 111, in load
> >     self._setAtoms(self.mapPathsToAtoms(self._files,
> >   File "/usr/lib/python3.9/site-packages/portage/_sets/dbapi.py", line
> > 83, in mapPathsToAtoms
> >     for p in exclude_paths:
> > TypeError: 'NoneType' object is not iterable
> > 
> > And i can't do anything else...
> > 
> > I see that python-3.8 has gone away
> > # eselect python list
> > Available Python interpreters, in order of preference:
> >   [1]   python3.9
> 
> I has the same a couple of days ago and had to downgrade portage from
> 3.0.20 to 3.0.18, by untarring the binary package to /. However, that
> needed python 3.8, so I also had to untar the binary package for that.
> Then I re-emerged portage-3.0.18 and python-3.8 and masked
> portage-3.0.20. Once I had re-emerged portage-3.0.18, it worked with
> python 3.9.
> 
> I see that portage 3.0.20-r3 is here now, so I'll try emerging that on
> one system and see what happens.

No joy  on doing that here -- last time  I had to restore the whole
3.8 site-packages directory from before I did the emerge -- just
restoring 3.0.18 still gives me the traceback -- this is major
annoyance.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com


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

* Re: [gentoo-user] Python-3.9 and emerge problems
  2021-06-18 13:11   ` Neil Bothwick
@ 2021-06-18 13:54     ` John Covici
  2021-06-18 14:00       ` Neil Bothwick
  0 siblings, 1 reply; 11+ messages in thread
From: John Covici @ 2021-06-18 13:54 UTC (permalink / raw
  To: gentoo-user

On Fri, 18 Jun 2021 09:11:29 -0400,
Neil Bothwick wrote:
> 
> [1  <text/plain; US-ASCII (quoted-printable)>]
> On Fri, 18 Jun 2021 13:07:10 +0100, Neil Bothwick wrote:
> 
> > I had the same a couple of days ago and had to downgrade portage from
> > 3.0.20 to 3.0.18, by untarring the binary package to /. However, that
> > needed python 3.8, so I also had to untar the binary package for that.
> > Then I re-emerged portage-3.0.18 and python-3.8 and masked
> > portage-3.0.20. Once I had re-emerged portage-3.0.18, it worked with
> > python 3.9.
> > 
> > I see that portage 3.0.20-r3 is here now, so I'll try emerging that on
> > one system and see what happens.
> 
> 
> Same problem with 3.0.20-r3 but then I found
> https://bugs.gentoo.org/796584, changing sets.conf got rid of the issue.

hmmm, I don't have a file like that at all, what should be in that
file -- I don't even have a /usr/portage at all.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com


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

* Re: [gentoo-user] Python-3.9 and emerge problems
  2021-06-18 13:54     ` John Covici
@ 2021-06-18 14:00       ` Neil Bothwick
  2021-06-18 14:26         ` Jacques Montier
  2021-06-18 15:55         ` John Covici
  0 siblings, 2 replies; 11+ messages in thread
From: Neil Bothwick @ 2021-06-18 14:00 UTC (permalink / raw
  To: gentoo-user

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

On Fri, 18 Jun 2021 09:54:09 -0400, John Covici wrote:

> > Same problem with 3.0.20-r3 but then I found
> > https://bugs.gentoo.org/796584, changing sets.conf got rid of the
> > issue.  
> 
> hmmm, I don't have a file like that at all, what should be in that
> file -- I don't even have a /usr/portage at all.
> 
The system sets are in /usr/share/portage/config/sets, but they all had
exclude-files where needed. The culprits were my user-defined sets in
/etc/sets.conf. For example:

[kernels]
class = portage.sets.dbapi.OwnerSet
world-candidate = False
files = /usr/src
exclude-files = ''

Adding that last line stopped the breakage. This sort of change should
have been accompanied by an einfo message at the very least, preferable a
news item.


-- 
Neil Bothwick

Top Oxymorons Number 43: Genuine imitation

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

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

* Re: [gentoo-user] Python-3.9 and emerge problems
  2021-06-18 14:00       ` Neil Bothwick
@ 2021-06-18 14:26         ` Jacques Montier
  2021-06-18 15:55         ` John Covici
  1 sibling, 0 replies; 11+ messages in thread
From: Jacques Montier @ 2021-06-18 14:26 UTC (permalink / raw
  To: gentoo-user

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

* <https://sites.google.com/site/jacquesfr35/>*


Le ven. 18 juin 2021 à 16:00, Neil Bothwick <neil@digimed.co.uk> a écrit :

> On Fri, 18 Jun 2021 09:54:09 -0400, John Covici wrote:
>
> > > Same problem with 3.0.20-r3 but then I found
> > > https://bugs.gentoo.org/796584, changing sets.conf got rid of the
> > > issue.
> >
> > hmmm, I don't have a file like that at all, what should be in that
> > file -- I don't even have a /usr/portage at all.
> >
> The system sets are in /usr/share/portage/config/sets, but they all had
> exclude-files where needed. The culprits were my user-defined sets in
> /etc/sets.conf. For example:
>
> [kernels]
> class = portage.sets.dbapi.OwnerSet
> world-candidate = False
> files = /usr/src
> exclude-files = ''
>
> Adding that last line stopped the breakage. This sort of change should
> have been accompanied by an einfo message at the very least, preferable a
> news item.
>
>
> --
> Neil Bothwick
>
> Top Oxymorons Number 43: Genuine imitation
>


Hello again,

Yes Neil, that did the trick ! 👍
Thanks a lot to all of you !

--
Jacques

[-- Attachment #2: Type: text/html, Size: 2193 bytes --]

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

* Re: [gentoo-user] Python-3.9 and emerge problems
  2021-06-18 14:00       ` Neil Bothwick
  2021-06-18 14:26         ` Jacques Montier
@ 2021-06-18 15:55         ` John Covici
  2021-06-19 12:35           ` Jacques Montier
  1 sibling, 1 reply; 11+ messages in thread
From: John Covici @ 2021-06-18 15:55 UTC (permalink / raw
  To: gentoo-user

On Fri, 18 Jun 2021 10:00:17 -0400,
Neil Bothwick wrote:
> 
> [1  <text/plain; US-ASCII (quoted-printable)>]
> On Fri, 18 Jun 2021 09:54:09 -0400, John Covici wrote:
> 
> > > Same problem with 3.0.20-r3 but then I found
> > > https://bugs.gentoo.org/796584, changing sets.conf got rid of the
> > > issue.  
> > 
> > hmmm, I don't have a file like that at all, what should be in that
> > file -- I don't even have a /usr/portage at all.
> > 
> The system sets are in /usr/share/portage/config/sets, but they all had
> exclude-files where needed. The culprits were my user-defined sets in
> /etc/sets.conf. For example:
> 
> [kernels]
> class = portage.sets.dbapi.OwnerSet
> world-candidate = False
> files = /usr/src
> exclude-files = ''
> 
> Adding that last line stopped the breakage. This sort of change should
> have been accompanied by an einfo message at the very least, preferable a
> news item.

Thanks much -- that seems to have fixed it.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com


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

* Re: [gentoo-user] Python-3.9 and emerge problems
  2021-06-18 15:55         ` John Covici
@ 2021-06-19 12:35           ` Jacques Montier
  0 siblings, 0 replies; 11+ messages in thread
From: Jacques Montier @ 2021-06-19 12:35 UTC (permalink / raw
  To: gentoo-user

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

Le ven. 18 juin 2021 à 17:55, John Covici <covici@ccs.covici.com> a écrit :

> On Fri, 18 Jun 2021 10:00:17 -0400,
> Neil Bothwick wrote:
> >
> > [1  <text/plain; US-ASCII (quoted-printable)>]
> > On Fri, 18 Jun 2021 09:54:09 -0400, John Covici wrote:
> >
> > > > Same problem with 3.0.20-r3 but then I found
> > > > https://bugs.gentoo.org/796584, changing sets.conf got rid of the
> > > > issue.
> > >
> > > hmmm, I don't have a file like that at all, what should be in that
> > > file -- I don't even have a /usr/portage at all.
> > >
> > The system sets are in /usr/share/portage/config/sets, but they all had
> > exclude-files where needed. The culprits were my user-defined sets in
> > /etc/sets.conf. For example:
> >
> > [kernels]
> > class = portage.sets.dbapi.OwnerSet
> > world-candidate = False
> > files = /usr/src
> > exclude-files = ''
> >
> > Adding that last line stopped the breakage. This sort of change should
> > have been accompanied by an einfo message at the very least, preferable a
> > news item.
>
> Thanks much -- that seems to have fixed it.
>
> --
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
>
>          John Covici wb2una
>          covici@ccs.covici.com
>
>

Hello all,

New portage, this morning.
I commented the line exclude-files = '' in /etc/portage/sets.conf as it was
before.
Then emerge world.
Everything works fine.

Cheers,

--
Jacques

[-- Attachment #2: Type: text/html, Size: 2318 bytes --]

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

end of thread, other threads:[~2021-06-19 12:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-18  9:46 [gentoo-user] Python-3.9 and emerge problems Jacques Montier
2021-06-18 11:20 ` John Covici
2021-06-18 11:45 ` Wols Lists
2021-06-18 12:07 ` Neil Bothwick
2021-06-18 13:11   ` Neil Bothwick
2021-06-18 13:54     ` John Covici
2021-06-18 14:00       ` Neil Bothwick
2021-06-18 14:26         ` Jacques Montier
2021-06-18 15:55         ` John Covici
2021-06-19 12:35           ` Jacques Montier
2021-06-18 13:26   ` John Covici

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox