Skip to content

postinstallpatches fail #4040

@surak

Description

@surak

When using postinstallpatches = ['file.patch'], I get this strange error:

== 2022-07-05 22:43:20,660 filetools.py:1983 INFO Removing lock /p/home/jusers/strube1/juwels/easybuild/juwelsbooster/software/.locks/_p_home_jusers_strube1_juwels_easybuild_juwelsbooster_software_TensorFlow_2.6.0-gcccoremkl-11.2.0-2021.4.0-CUDA-11.5.lock...
== 2022-07-05 22:43:21,042 filetools.py:382 INFO Path /p/home/jusers/strube1/juwels/easybuild/juwelsbooster/software/.locks/_p_home_jusers_strube1_juwels_easybuild_juwelsbooster_software_TensorFlow_2.6.0-gcccoremkl-11.2.0-2021.4.0-CUDA-11.5.lock successfully removed.
== 2022-07-05 22:43:21,042 filetools.py:1987 INFO Lock removed: /p/home/jusers/strube1/juwels/easybuild/juwelsbooster/software/.locks/_p_home_jusers_strube1_juwels_easybuild_juwelsbooster_software_TensorFlow_2.6.0-gcccoremkl-11.2.0-2021.4.0-CUDA-11.5.lock
== 2022-07-05 22:43:21,106 build_log.py:169 ERROR EasyBuild crashed with an error (at easybuild/base/exceptions.py:124 in __init__): Traceback (most recent call last):
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/main.py", line 128, in build_and_install_software
    (ec_res['success'], app_log, err) = build_and_install_one(ec, init_env)
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 4058, in build_and_install_one
    result = app.run_all_steps(run_test_cases=run_test_cases)
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 3941, in run_all_steps
    self.run_step(step_name, step_methods)
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 3776, in run_step
    step_method(self)()
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 2868, in post_install_step
    self.apply_post_install_patches()
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 2859, in apply_post_install_patches
    self.patch_step(beginpath=self.installdir, patches=patches)
TypeError: patch_step() got an unexpected keyword argument 'beginpath'
 (at easybuild/main.py:167 in build_and_install_software)
ERROR: Traceback (most recent call last):
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/main.py", line 128, in build_and_install_software
    (ec_res['success'], app_log, err) = build_and_install_one(ec, init_env)
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 4058, in build_and_install_one
    result = app.run_all_steps(run_test_cases=run_test_cases)
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 3941, in run_all_steps
    self.run_step(step_name, step_methods)
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 3776, in run_step
    step_method(self)()
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 2868, in post_install_step
    self.apply_post_install_patches()
  File "/p/software/juwelsbooster/stages/2022/software/EasyBuild/4.5.5/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 2859, in apply_post_install_patches
    self.patch_step(beginpath=self.installdir, patches=patches)
TypeError: patch_step() got an unexpected keyword argument 'beginpath'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions