Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash in apply_regex_substitutions in EasyBuild v4.3.1 when passing list of paths to patch #3493

Closed
boegel opened this issue Oct 30, 2020 · 1 comment · Fixed by #3507
Closed
Labels
bug report EESSI Related to EESSI project
Milestone

Comments

@boegel
Copy link
Member

boegel commented Oct 30, 2020

ERROR: Traceback (most recent call last):
  File "/.../easybuild/main.py", line 115, in build_and_install_software
    (ec_res['success'], app_log, err) = build_and_install_one(ec, init_env)
  File "/.../easybuild/framework/easyblock.py", line 3325, in build_and_install_one
    result = app.run_all_steps(run_test_cases=run_test_cases)
  File "/.../easybuild/framework/easyblock.py", line 3228, in run_all_steps
    self.run_step(step_name, step_methods)
  File "/.../easybuild/framework/easyblock.py", line 3083, in run_step
    step_method(self)()
  File "/.../easybuild/easyblocks/g/gcc.py", line 310, in configure_step
    apply_regex_substitutions(gcc_config_headers, regex_subs)
  File "/.../easybuild/tools/filetools.py", line 1312, in apply_regex_substitutions
    with open(path, 'r') as fp:
TypeError: expected str, bytes or os.PathLike object, not list

I ran into this when installing GCCcore with a custom --sysroot.

Based on the easyblocks using apply_regex_substitutions, this is also a problem when installing TINKER with an intel toolchain.

@boegel
Copy link
Member Author

boegel commented Oct 30, 2020

A workaround for the GCC easyblock is available in easybuilders/easybuild-easyblocks#2217, so if you're hitting this bug you can dance around it via --include-easyblocks-from-pr 2217...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report EESSI Related to EESSI project
Projects
None yet
1 participant