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

installing ReFrame in software layer fails, mixup with ReFrame installation in compat layer #127

Open
boegel opened this issue Aug 26, 2021 · 2 comments
Labels
bug Something isn't working pilot-2021.06

Comments

@boegel
Copy link
Contributor

boegel commented Aug 26, 2021

We added ReFrame to the 2021.06 compat layer (cfr. EESSI/gentoo-overlay#41), and now the installation of ReFrame in the 2021.06 software layer is failing:

== 2021-08-26 14:33:05,527 build_log.py:169 ERROR EasyBuild crashed with an error (at easybuild/base/exceptions.py:124 in __init__): Sanity check failed: sanity check command reframe -V exited with code 1 (output: Traceback (most recent call last):
  File "/cvmfs/pilot.eessi-hpc.org/2021.06/software/linux/aarch64/graviton2/software/ReFrame/3.6.2/bin/reframe", line 4, in <module>
    __import__('pkg_resources').run_script('ReFrame-HPC==3.6.2', 'reframe')
  File "/cvmfs/pilot.eessi-hpc.org/2021.06/software/linux/aarch64/graviton2/software/ReFrame/3.6.2/lib/python3.9/site-packages/pkg_resources/__init__.py", line 651, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/cvmfs/pilot.eessi-hpc.org/2021.06/software/linux/aarch64/graviton2/software/ReFrame/3.6.2/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1436, in run_script
    raise ResolutionError(
pkg_resources.ResolutionError: Script 'scripts/reframe' not found in metadata at '/cvmfs/pilot.eessi-hpc.org/2021.06/compat/linux/aarch64/usr/lib/python3.9/site-packages/ReFrame_HPC-3.6.2-py3.9.egg-info'

It should be looking into /cvmfs/pilot.eessi-hpc.org/2021.06/software/linux/aarch64/software/ReFrame/3.6.2, not in /cvmfs/pilot.eessi-hpc.org/2021.06/compat/....

This probably happens because pkg_resources always looks in the Python installation itself before taking into account $PYTHONPATH.

@boegel
Copy link
Contributor Author

boegel commented Aug 27, 2021

Problem fixed with the changes in easybuilders/easybuild-easyconfigs#13844

@boegel
Copy link
Contributor Author

boegel commented Nov 18, 2021

Rather than also installing ReFrame in the software layer, we should only have it in the compat layer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pilot-2021.06
Projects
Status: No status
Development

No branches or pull requests

1 participant