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 when using --module-only with easyconfig using PythonBundle #2446

Closed
boegel opened this issue May 31, 2021 · 2 comments · Fixed by #2447
Closed

crash when using --module-only with easyconfig using PythonBundle #2446

boegel opened this issue May 31, 2021 · 2 comments · Fixed by #2447
Milestone

Comments

@boegel
Copy link
Member

boegel commented May 31, 2021

$ eb antiSMASH-5.1.2-foss-2019b-Python-3.7.4.eb --module-only
ERROR: Traceback (most recent call last):
  File "/lib/python2.7/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/main.py", line 117, in build_and_install_software
    (ec_res['success'], app_log, err) = build_and_install_one(ec, init_env)
  File "/lib/python2.7/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/framework/easyblock.py", line 3633, in build_and_install_one
    result = app.run_all_steps(run_test_cases=run_test_cases)
  File "/lib/python2.7/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/framework/easyblock.py", line 3531, in run_all_steps
    self.run_step(step_name, step_methods)
  File "/lib/python2.7/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/framework/easyblock.py", line 3386, in run_step
    step_method(self)()
  File "/lib/python2.7/site-packages/easybuild_easyblocks-4.3.5.dev0-py2.7.egg/easybuild/easyblocks/generic/pythonbundle.py", line 173, in sanity_check_step
    super(Bundle, self).sanity_check_step(*args, **kwargs)
  File "/llib/python2.7/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/framework/easyblock.py", line 2524, in sanity_check_step
    self._sanity_check_step(*args, **kwargs)
  File "/lib/python2.7/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/framework/easyblock.py", line 3053, in _sanity_check_step
    self._sanity_check_step_extensions()
  File "/lib/python2.7/site-packages/easybuild_framework-4.3.5.dev0-py2.7.egg/easybuild/framework/easyblock.py", line 2926, in _sanity_check_step_extensions
    res = ext.sanity_check_step()
  File "/data/gent/400/vsc40023/easybuild_easy_installed/lib/python2.7/site-packages/easybuild_easyblocks-4.3.5.dev0-py2.7.egg/easybuild/easyblocks/generic/pythonpackage.py", line 822, in sanity_check_step
    exts_filter = (orig_exts_filter[0].replace('python', self.python_cmd), orig_exts_filter[1])
TypeError: replace() argument 2 must be str, not None
@boegel boegel added this to the 4.4.0 milestone May 31, 2021
@boegel
Copy link
Member Author

boegel commented May 31, 2021

That's a side effect of now also running the sanity check for extensions under --module-only, see easybuilders/easybuild-framework#3655

@boegel
Copy link
Member Author

boegel commented May 31, 2021

eb Python-3.9.5-GCCcore-10.3.0.eb --module-only is broken in the same way, so this is worth fixing ASAP...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant