Skip to content

fix findPythonDeps.py script when called with an (absolute or relative) path to an easyconfig instead of a filename#4365

Merged
boegel merged 3 commits intoeasybuilders:developfrom
Flamefire:fix-findPythonDeps
Oct 27, 2023
Merged

fix findPythonDeps.py script when called with an (absolute or relative) path to an easyconfig instead of a filename#4365
boegel merged 3 commits intoeasybuilders:developfrom
Flamefire:fix-findPythonDeps

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

@Flamefire Flamefire commented Oct 26, 2023

eb --missing returns a list with filenames. So an absolute path passed to --ec isn't matched which leads to an error stating you should install the EasyConfig that you are trying to find the dependencies of. Fix by getting the filename/basename first.

Example error:

findPythonDeps.py --ec ~/.local/EasyBuildDev/easybuild-easyconfigs/easybuild/easyconfigs/n/nf-core/nf-core-2.10-foss-2022b.eb nf-core==2.10
You need to install all modules on which ~/.local/EasyBuildDev/easybuild-easyconfigs/easybuild/easyconfigs/n/nf-core/nf-core-2.10-foss-2022b.eb depends first!
Missing:
	* nf-core/2.10-foss-2022b (nf-core-2.10-foss-2022b.eb)

`eb --missing` returns a list with filenames. So an absolute path passed
to `--ec` isn't matched which leads to an error stating you should
install the EasyConfig that you are trying to find the dependencies of.
Fix by getting the filename/basename first.
…aptured

This helps diagnosing failures for e.g. `eb --missing` (called with `capture_stderr=False`)
but which may print errors (e.g. failed parsing of some ECs) to stderr
@boegel boegel added this to the next release (4.8.2?) milestone Oct 27, 2023
@boegel boegel added the bug fix label Oct 27, 2023
@boegel boegel changed the title fix findPythonDeps when called with an absolute path to an EC fix findPythonDeps.py script when called with an absolute path to an EC Oct 27, 2023
@boegel boegel changed the title fix findPythonDeps.py script when called with an absolute path to an EC fix findPythonDeps.py script when called with an absolute path to an easyconfig Oct 27, 2023
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel merged commit 87c1453 into easybuilders:develop Oct 27, 2023
@Flamefire Flamefire deleted the fix-findPythonDeps branch October 27, 2023 11:12
@Flamefire Flamefire changed the title fix findPythonDeps.py script when called with an absolute path to an easyconfig fix findPythonDeps.py script when called with an (absolute or relative) path to an easyconfig instead of a filename Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants