Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925518 - portage 3.0.62 KeyError: 'EAPI' when merging any package
Summary: portage 3.0.62 KeyError: 'EAPI' when merging any package
Status: RESOLVED DUPLICATE of bug 925350
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-25 22:04 UTC by Iade Gesso
Modified: 2024-02-25 22:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info sys-apps/portage (emerge --info.txt,15.71 KB, text/plain)
2024-02-25 22:06 UTC, Iade Gesso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iade Gesso 2024-02-25 22:04:34 UTC
Hi,
yesterday I updated portage to 3.0.62. Today I'm not able to merge any package (but unmerging works!) and portage gives me the following error:

[ERROR] Exception in callback EbuildMetadataPhase._async_start_done(<Task finishe...Error('EAPI')>)
handle: <Handle EbuildMetadataPhase._async_start_done(<Task finishe...Error('EAPI')>)>
Traceback (most recent call last):
  File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/lib/python3.11/site-packages/_emerge/EbuildMetadataPhase.py", line 163, in _async_start_done
    future.cancelled() or future.result()
                          ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/_emerge/EbuildMetadataPhase.py", line 130, in _async_start
    retval = portage.doebuild(
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/portage/package/ebuild/doebuild.py", line 1033, in doebuild
    doebuild_environment(
  File "/usr/lib/python3.11/site-packages/portage/package/ebuild/doebuild.py", line 522, in doebuild_environment
    eapi = mysettings.configdict["pkg"]["EAPI"]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/lib/python3.11/site-packages/portage/util/__init__.py", line 1684, in __getitem__
    return UserDict.__getitem__(self, item_key)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/portage/cache/mappings.py", line 175, in __getitem__
    return self.data[key]
           ~~~~~~~~~^^^^^
KeyError: 'EAPI'



Thanks,

Iade

Reproducible: Always

Steps to Reproduce:
1. emerge -q packagename
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-25 22:05:21 UTC
Can you show us emerge --info?

It's likely a dupe of bug 925350.
Comment 2 Iade Gesso 2024-02-25 22:06:32 UTC
Created attachment 886006 [details]
emerge --info sys-apps/portage
Comment 3 Iade Gesso 2024-02-25 22:11:11 UTC
(In reply to Sam James from comment #1)
> Can you show us emerge --info?
> 
> It's likely a dupe of bug 925350.

Yes, it was a dupe... Sorry, I didn't find it in the bug list.


Many thanks,

Iade
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-25 22:13:59 UTC
Thanks!

*** This bug has been marked as a duplicate of bug 925350 ***