use fallback mechanism that relies on $USER or $LOGNAME when determining username via pwd.getpwuid fails#5151
Merged
boegel merged 4 commits intoeasybuilders:developfrom Mar 31, 2026
Merged
Conversation
boegel
requested changes
Mar 31, 2026
Co-authored-by: Kenneth Hoste <[email protected]>
boegel
requested changes
Mar 31, 2026
boegel
reviewed
Mar 31, 2026
… pwd.getpwuid Co-authored-by: Kenneth Hoste <[email protected]>
$USER or $LOGNAME when determining username via pwd.getpwuid fails
boegel
approved these changes
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently on Lumi, you get a hard failure when trying to do an EasyBuild installation on a compute node (in the EESSI environment):
{EESSI/2025.06} alanocai@nid005125:~/mpi_inject> id -un id: cannot find name for user ID 327004947 327004947 {EESSI/2025.06} alanocai@nid005125:~/mpi_inject> eb --missing libcxi.eb Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/amd/zen3/software/EasyBuild/5.2.1/lib/python3.13/site-packages/easybuild/main.py", line 862, in <module> main_with_hooks() ~~~~~~~~~~~~~~~^^ File "/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/amd/zen3/software/EasyBuild/5.2.1/lib/python3.13/site-packages/easybuild/main.py", line 840, in main_with_hooks init_session_state, eb_go, cfg_settings = prepare_main(args=args) ~~~~~~~~~~~~^^^^^^^^^^^ File "/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/amd/zen3/software/EasyBuild/5.2.1/lib/python3.13/site-packages/easybuild/main.py", line 832, in prepare_main eb_go, cfg_settings = set_up_configuration(args=args, logfile=logfile, testing=testing) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/amd/zen3/software/EasyBuild/5.2.1/lib/python3.13/site-packages/easybuild/tools/options.py", line 1822, in set_up_configuration eb_go = parse_options(args=args) File "/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/amd/zen3/software/EasyBuild/5.2.1/lib/python3.13/site-packages/easybuild/tools/options.py", line 1691, in parse_options eb_go = EasyBuildOptions(usage=usage, description=description, prog='eb', envvar_prefix=CONFIG_ENV_VAR_PREFIX, go_args=eb_args, error_env_options=True, error_env_option_method=raise_easybuilderror, with_include=with_include) File "/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/amd/zen3/software/EasyBuild/5.2.1/lib/python3.13/site-packages/easybuild/tools/options.py", line 253, in __init__ 'USER': (pwd.getpwuid(os.geteuid()).pw_name, ~~~~~~~~~~~~^^^^^^^^^^^^^^ KeyError: 'getpwuid(): uid not found: 327004947'