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

ec.easyblock not the same type for components than for main easyconfigs #3387

Open
mboisson opened this issue Jul 14, 2020 · 1 comment
Open

Comments

@mboisson
Copy link
Contributor

mboisson commented Jul 14, 2020

Using this EasyConfig :
https://github.com/easybuilders/easybuild-easyconfigs/blob/acce328b9bb3c9cde5727102c6d23124235c80a1/easybuild/easyconfigs/m/MESS/MESS-0.1.6-foss-2019b.eb

I encounter

== 2020-07-14 18:26:02,826 build_log.py:169 ERROR EasyBuild crashed with an error (at easybuild/site-packages/easybuild-framework/easybuild/base/exceptions.py:124 in __init__): Failed to obtain class for <class 'easybuild.easyblocks.generic.configuremake.ConfigureMake'> easyblock (not available?): type object 'ConfigureMake' has no attribute 'split' (at         easybuild/site-packages/easybuild-framework/easybuild/framework/easyconfig/easyconfig.py:1843 in get_easyblock_class)

because of this line in our hooks :
https://github.com/ComputeCanada/easybuild-computecanada-config/blob/07270b6a6c690a1e4d4f631ded4a3c0ecda7f95d/cc_hooks_nix.py#L292

The failure comes from

This is because of the representation of ec.easyblock in the "components", i.e.
https://github.com/easybuilders/easybuild-easyconfigs/blob/acce328b9bb3c9cde5727102c6d23124235c80a1/easybuild/easyconfigs/m/MESS/MESS-0.1.6-foss-2019b.eb#L25

The type of ec.easyblock is a str for main EasyConfigs, but it is a type for the "components".

Why the inconsistency ?

@mboisson
Copy link
Contributor Author

Note that I "fixed" our hook in this commit
ComputeCanada/easybuild-computecanada-config@831423e

but I don't think I should have to do this check. easyblock should be a string everywhere.

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

No branches or pull requests

1 participant