-
Notifications
You must be signed in to change notification settings - Fork 129
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
Module hiden with SitePackage.lua is unfindable #735
Comments
I do not have a fix yet but I can reproduce this issue. I'll keep you updated on progress on this issue. |
I am unclear on what you mean by:
How are you loading this dependency? Is with the version or not? |
As a version locked dependency (it are all EasyBuild generate module files): depends_on("JupyterHub/4.1.5-GCCcore-12.3.0") |
I was able to reproduce both issues (ml -A av and the depends_on()). This has been fixed for me on the IS690-hide branch. Please test this branch to see if it works for you. |
It gives me:
|
Thanks for running this. Can you give me an example module tree that reproduces this? |
An empty one works:
All of our config stuff can be found in https://github.com/vub-hpc/Lmod-config |
This is what I get:
I didn't see anything in your Lmod-config variable setting that would make a difference. What happens if you do?
Also please include ml --config as an attached file. |
Hmm, using |
It's a cache thing. If I add |
Please attach your cache file from your earlier version of Lmod. My attempts to reproduce your issue have not worked. Once I know what is happening, I can create my own cache file to add to the test suite. |
The issue is a cache build by Lmod 8.7.53 as it's now in EPEL. If I rebuild the cache with the Lmod from the IS690-hide branch, it's fine again and all works as intended. The original issue is gone. I'm attaching the two cache files:
|
I would like to figure out why you got the original error. However using your spiderT-broken.lua file as my cache, I am unable to reproduce the error. It is still out there but someone else will have to report it. Thanks for your help. |
Does it help if I give you a |
Yes, I'd like to try both. Thanks! |
If I start it in an empty rockylinux 8 container, I can't reproduce it either with a full copy of the module tree + cache. This is getting weird. |
I think that this bug has to do with hidden modules. It may have to do with different LMOD vars but I don't know why. If you have made sure that you have the same LMOD vars and hidden modules then I don't know what the issue is. |
I went back to your stack trace and found that
Which would mean that resultT is a true value but not a table. Which means that in l_find_resultT returns a value which is not false.
Which implies that
This should prevent resultT from ever being set to something other than a table. When everyone has spiderT.lua built with Lmod 8.8+ this won't be a problem I'm willing to close this issue unless you see a reason to keep it open. |
I believe that I have found what the problem was. I have added code to deal with the old spiderT.lua format. That is why you originally found that stack trace error. Please test the updated IS690-hide branch to see if it works for you. |
All seems well with the updated IS690-hide branch :) The original issue is gone and everything else seems to work. |
With the Lmod version in EPEL (
Lmod-8.7.53-1.el8.x86_64
) we are having issues with modules hidden in theSitePackage.lua
. The logic can be found here: https://github.com/vub-hpc/Lmod-config/blob/main/SitePackage.lua#L239-L246This works well until we updated to 8.7.53. Now the module is not visible at all. Neither
ml --show_hidden spider
orml --show_hidden av
show it. Module that load it as a dependency fail to load. Removing the lines in ourSitePackage.lua
fixes the issue (but the module is no longer hidden).In attachment I've added two files:
ml -D --ignore-cache --show_hidden spider JupyterHub
.JupyterHub
removed in theSitePackage.lua
.The text was updated successfully, but these errors were encountered: