Summary: | Portage crashes with ImportError: cannot import name 'SignedPackage' from 'portage.exception' (/usr/lib/python3.11/site-packages/portage/exception.py) | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Sam James <sam> |
Component: | Binary packages support | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | exception.py |
Description
Sam James
2023-12-13 20:39:07 UTC
(In reply to Sam James from comment #0) > On an `emerge -pev @world` on this machine, I got a package list, and then > an exception: Shouldn't happen with -p because Scheduler.py has this: _opts_no_self_update = frozenset( ["--buildpkgonly", "--fetchonly", "--fetch-all-uri", "--pretend"] ) > ``` > [...] > [ebuild R ] gnome-base/gnome-core-apps-41.3:3.0::gentoo USE="bluetooth > cups" 0 KiB > [ebuild R ] gnome-base/gnome-40.0-r1:2.0::gentoo USE="accessibility > bluetooth classic cups extras" 0 KiB > > Total: 2557 packages (157 upgrades, 1 downgrade, 3 new, 6 in new slots, 2390 > reinstalls), Size of downloads: 1200 KiB > > WARNING: One or more updates/rebuilds have been skipped due to a dependency > conflict: > > dev-cpp/abseil-cpp:0 > > (dev-cpp/abseil-cpp-20230802.0:0/20230802::gentoo, ebuild scheduled for > merge) USE="-test" conflicts with > =dev-cpp/abseil-cpp-20230125.3*:= required by > (net-libs/grpc-1.57.0-r1:0/34.157::gentoo, ebuild scheduled for merge) > USE="systemd -doc -examples -test" > ^ ^^^^^^^^^^^ > > > Traceback (most recent call last): > File "/usr/lib/python-exec/python3.11/emerge", line 57, in main > retval = emerge_main() > ^^^^^^^^^^^^^ > File "/usr/lib/python3.11/site-packages/_emerge/main.py", line 1306, in > emerge_main > File "/usr/lib/python3.11/site-packages/_emerge/actions.py", line 4023, in > run_action > File "/usr/lib/python3.11/site-packages/_emerge/actions.py", line 678, in > action_build > retval = mergetask.merge() > ^^^^^^^^^^^^^^^^^ > File "/usr/lib/python3.11/site-packages/_emerge/Scheduler.py", line 1089, > in merge > rval = self._handle_self_update() > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/lib/python3.11/site-packages/_emerge/Scheduler.py", line 357, > in _handle_self_update > _prepare_self_update(self.settings) > File > "/usr/lib/python3.11/site-packages/portage/package/ebuild/doebuild.py", line > 3175, in _prepare_self_update > lines.append("") Something weird is going on with this file because _prepare_self_update should start on line 3200 since bug 913628: https://gitweb.gentoo.org/proj/portage.git/commit/?id=af550b8b5cb91f27b26d6800c3b4cdd2d86a46e6 Created attachment 879285 [details]
exception.py
It's truncated!
The screen backlog in this session is too short (will fix that now) so I have no idea what happened. No bad build.log or anything, which makes sense if it got interrupted later on or corrupted :(
Will call it INVALID for now unless I can find some more info about how it happened... |