|
From: SourceForge.net <no...@so...> - 2003-07-19 13:58:22
|
Bugs item #774192, was opened at 2003-07-19 09:58 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=465044&aid=774192&group_id=51915 Category: env-switcher functionality Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jeff Squyres (jsquyres) Assigned to: Jeff Squyres (jsquyres) Summary: Failures when more than one default Initial Comment: Hi, I've been messing around with switcher scripts for some of the locally installed software on our cluster to allow our users to choose between different versions of our applications. I've written a modulefile for them and installed them via: switcher prog --add-name version /path/to/program The modulefile is copied to /opt/env-switcher/share and shows up correctly when I do: switcher and switcher prog Additionally, I can use the 'module' command to load and unload the modules, and the environment is updated appropriately. The problem comes when I use switcher prog = prog-version --system Then every new shell invocation gives: mpi(70):ERROR:105: Unable to locate a modulefile for 'mpi/lam-6.5.9 **** prog/prog-version' If I remove the default entry from mpi with: switcher mpi = none --system then I don't get the errors. In summary: -I've created a new modulefile -I can load/unload it fine using the module command -Switcher if it's the _only_ module with a default attr -If there is more than one tag with a default attribute it fails. I believe the failure occurs in /opt/modules/oscar-modules/switcher/1.0.9, near the end in the section: set modules_to_load [exec switcher --show-exec] if { $modules_to_load != "" } { module load $modules_to_load #module load "[exec switcher --show-exec]" } Unfortunately I don't really know tcl. Any ideas? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=465044&aid=774192&group_id=51915 |