Support for Lmod/EESSI module environments: Injecting environment variables into the consoles #15058
Unanswered
ruben-canas-ivi
asked this question in
Feedback
Replies: 1 comment 8 replies
Can you say more about this? We don't have any explicit policy set that does this, and anecdotally have a number of people using environment modules that set What version of Positron are you using? We have recently made some improvements to the environment module support. E.g. if your R installation was in a well known location, you may have been hitting #13936. |
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Positron team! First of all, amazing work with the IDE. I'm testing it on a server environment, but I've hit a structural roadblock regarding how Positron (and specifically the Ark kernel) handles environment variables in HPC/Server setups.
I am working on a Linux server utilizing EESSI and Lmod. In these environments, R and its dependencies (compilers, external C/C++ libraries) are loaded dynamically via shell modules (module load ...). This relies heavily on injecting paths into
LD_LIBRARY_PATH,CPATH,LIBRARY_PATH, etc.I have used a custom initScript for the
environmentModulessetting and a list of different modules I usually load on sessions (e.g. in Open OnDemand) in order for R to work with all packages:Due to Positron console execution policy, it bypasses or drops the environment variables set by the Lmod shell.
As a result:
LD_LIBRARY_PATHfrom the EESSI module.Feature Request:
A supported mechanism to inject or inherit environment variables (such as LD_LIBRARY_PATH) into the Ark kernel before the R session starts. It believe something such as an envVars object on the positron.environmentModules.environments could do the trick.
Thank you in advance.
Regards,
All reactions