You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while trying to create an easyconfig for Safetensors (starts with upper case) with CargoPythonBundle using only a single extension safetensors (all lowercase), i got the following error:
== 2024-05-24 19:32:46,877 build_log.py:171 ERROR EasyBuild crashed with an error (at easybuild/base/exceptions.py:126 in init): Sanity check failed: command "python -c "import Safetensors"" failed; output:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'Safetensors' (at easybuild/framework/easyblock.py:3663 in _sanity_check_step)
the reason (i think) is that it inherits from Cargo, which in turn inherits from ExtensionEasyBlock, so EB thinks the software itself is an extension.
the workaround proposed here is to set modulename to False, causing the sanity check to be skipped for the software itself.
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
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.
(created using
eb --new-pr)while trying to create an easyconfig for
Safetensors(starts with upper case) withCargoPythonBundleusing only a single extensionsafetensors(all lowercase), i got the following error:the reason (i think) is that it inherits from
Cargo, which in turn inherits fromExtensionEasyBlock, so EB thinks the software itself is an extension.the workaround proposed here is to set
modulenametoFalse, causing the sanity check to be skipped for the software itself.