Hi Todd, > On 16 Mar 2015, at 20:29, Heywood, Todd <[email protected]> wrote: > > Hi, > > Thanks for the info. I know it is late over there.
Well, you're just lucky I got myself stuck on a train longer than I should have been... ;-) > > So, I know that, for the first option, you said to bootstrap-install without > HierarchicalMNS. But I thought I would comment that out in the config.cfg > file: > > > #module-naming-scheme=HierarchicalMNS No, I didn't say that. You should be able to bootstrap EB into a module hierarchy (that is, using HierachicalMNS as a naming scheme). Installing EB in a module hierarchy using eb provided by a non-hierachical EasyBuild module doesn't work as it should. But that's not what the bootstrap does (it installs EB with EB, but not by loading a module). > > And then try “eb ./EasyBuild-2.0.0.eb” again. It worked, with a warning: > "UserWarning: Module easybuild was already imported”. That warning should be safe to ignore. > > However, this install went in the “installpath” directory (which I had not > yet defined when installing 1.16.1). Is this the normal/expected place for > EasyBuild itself to be isntalled. In the same installpath directory tree as > applications? Well, you're telling EasyBuild to install software and modules into the path specified by installpath. Why would that be different when installing EB itself using EB? You can have EB installed (as a module) whereever you like, you just need to adjust $MODULEPATH accordingly. Having EasyBuild modules next to app modules is common (it's 'just' another tool). regards, Kenneth > > Thanks, > > Todd > > From: Kenneth Hoste <[email protected]<mailto:[email protected]>> > Reply-To: "[email protected]<mailto:[email protected]>" > <[email protected]<mailto:[email protected]>> > Date: Monday, March 16, 2015 at 3:09 PM > To: "[email protected]<mailto:[email protected]>" > <[email protected]<mailto:[email protected]>> > Subject: Re: [easybuild] v2.0.0 sanity check failure with Lmod > > Hi Todd, > > Thanks for sending me the log (off-list). > > This is the relevant bit, from the debug output of the "lmod python load > Core/EasyBuild/2.0.0" command: > > Lmod has detected the following error: Cannot load module > "Core/EasyBuild/2.0.0" because these modules are loaded: > EasyBuild > > The problem is that you're using an EasyBuild module that was installed > under the default module naming scheme, to install EasyBuild under > HierarchicalMNS. > > When EB tries to load the newly generated module Core/EasyBuild/2.0.0 in > the sanity check, the 'conflict EasyBuild' line kicks in in the loaded > EasyBuild module. > > This fails only when Lmod is used, it should work with Tcl/C environment > modules because of some trickery that is done in the EasyBuildMeta > easyblock used to install EasyBuild with. > > I once started an attempt to resolve this issue (see > https://github.com/hpcugent/easybuild-easyblocks/pull/428), by simply > unloading the loade EasyBuild module, but never finished it (it's > trickier than it sounds). > > You have a couple of options: > > * bootstrap EasyBuild v2.0.0 with having $EASYBUILD_MODULE_NAMING_SCHEME > set to HierarchicalMNS, should work (let me know if it does) > > * remove/uncomment the 'conflict EasyBuild' line in the EasyBuild/1.16.1 > module prior to loading it, and try installing EasyBuild-2.0.0.eb again > > * manually set $PATH and $PYTHONPATH to use the installation behind the > EasyBuild/1.16.1 module (cfr. 'module show EasyBuild/1.16.1'), and try > installing EasyBuild-2.0.0.eb again > > > I hope to get back to working out a proper solution for this (the PR I > referred to is dead/rotted). > > > regards, > > Kenneth > > On 16/03/15 17:00, Heywood, Todd wrote: > I tried installing EasyBuild v2.0.0 with EasyBuild v1.16.1, using the > easyconfig file EasyBuild-2.0.0.eb. It fails on the sanity check with > > > == sanity checking... > > /opt/hpc/lib/python2.7/site-packages/setuptools/command/install_scripts.py:3: > UserWarning: Module easybuild was already imported from > /sonas-hs/it/hpc/home/easybuild/easybuild/software/Core/EasyBuild/1.16.1/lib/python2.7/site-packages/easybuild_easyblocks-1.16.1-py2.7.egg/easybuild/__init__.pyc, > but > /sonas-hs/it/hpc/home/easybuild/easybuild/software/Core/EasyBuild/1.16.1/lib/python2.7/site-packages/easybuild_framework-1.16.1-py2.7.egg > is being added to sys.path > > from pkg_resources import Distribution, PathMetadata, ensure_directory > > == FAILED: Installation ended unsuccessfully (build directory: > /sonas-hs/it/hpc/home/easybuild/build/EasyBuild/2.0.0/dummy-dummy): build > failed (first 300 chars): Changing environment as dictated by module failed: > name 'false' is not defined (stdout: os.environ["LMOD_DEFAULT_MODULEPATH"] = > "/sonas-hs/it/hpc/home/easybuild/install/modules/all/Core:/tmp/easybuild-kltRfC/tmpRTxxka/all:/sonas-hs/it/hpc/home/easybuild/install/modules/all:/sonas-hs/it/hpc/home/easy > > == Results of the build can be found in the log file > /tmp/easybuild-kltRfC/easybuild-EasyBuild-2.0.0-20150316.105656.qzouP.log > > ERROR: EasyBuild crashed with an error (at > easybuild/easybuild/software/Core/EasyBuild/1.16.1/lib/python2.7/site-packages/easybuild_framework-1.16.1-py2.7.egg/easybuild/main.py:138 > in build_and_install_software): Build of > /sonas-hs/it/hpc/home/easybuild/tmp/EasyBuild-2.0.0.eb failed (err: 'build > failed (first 300 chars): Changing environment as dictated by module failed: > name \'false\' is not defined (stdout: os.environ["LMOD_DEFAULT_MODULEPATH"] > = > "/sonas-hs/it/hpc/home/easybuild/install/modules/all/Core:/tmp/easybuild-kltRfC/tmpRTxxka/all:/sonas-hs/it/hpc/home/easybuild/install/modules/all:/sonas-hs/it/hpc/home/easy') > > From the log file (redundant): > > > == 2015-03-16 10:59:00,773 main.environment INFO Environment variable > MODULEPATH set to > /sonas-hs/it/hpc/home/easybuild/install/modules/all:/sonas-hs/it/hpc/home/easybuild/install/modules/all/Core:/sonas-hs/it/hpc/home/easybuild/easybuild/modules/all/Core > > == 2015-03-16 10:59:00,773 main.environment INFO Environment variable > LMOD_DEFAULT_MODULEPATH set to > /sonas-hs/it/hpc/home/easybuild/install/modules/all:/sonas-hs/it/hpc/home/easybuild/install/modules/all/Core:/sonas-hs/it/hpc/home/easybuild/easybuild/modules/all/Core > > == 2015-03-16 10:59:00,774 main.environment INFO Environment variable > _ModuleTable002_ set to > dWlsZC8xLjE2LjEiLFsiZGVmYXVsdCJdPTEsWyJmdWxsTmFtZSJdPSJFYXN5QnVpbGQvMS4xNi4xIixbImxvYWRPcmRlciJdPTEscHJvcFQ9e30sWyJzaG9ydCJdPSJFYXN5QnVpbGQiLFsic3RhdHVzIl09ImFjdGl2ZSIsfSx9LG1wYXRoQT17Ii9zb25hcy1ocy9pdC9ocGMvaG9tZS9lYXN5YnVpbGQvaW5zdGFsbC9tb2R1bGVzL2FsbCIsIi9zb25hcy1ocy9pdC9ocGMvaG9tZS9lYXN5YnVpbGQvaW5zdGFsbC9tb2R1bGVzL2FsbC9Db3JlIiwiL3NvbmFzLWhzL2l0L2hwYy9ob21lL2Vhc3lidWlsZC9lYXN5YnVpbGQvbW9kdWxlcy9hbGwvQ29yZSIsfSxbInN5c3RlbUJhc2VNUEFUSCJdPSIvc29uYXMtaHMvaXQvaHBjL2hvbWUvZWFzeWJ1aWxkL2luc3RhbGwvbW9kdWxlcy9h > > == 2015-03-16 10:59:01,225 main.Lmod INFO $MODULEPATH set based on list of > module paths (via 'module use'): > /tmp/easybuild-kltRfC/tmpRTxxka/all:/sonas-hs/it/hpc/home/easybuild/install/modules/all:/sonas-hs/it/hpc/home/easybuild/install/modules/all/Core:/sonas-hs/it/hpc/home/easybuild/easybuild/modules/all/Core > > == 2015-03-16 10:59:01,451 main.easyblock WARNING build failed (first 300 > chars): Changing environment as dictated by module failed: name 'false' is > not defined (stdout: os.environ["LMOD_DEFAULT_MODULEPATH"] = > "/sonas-hs/it/hpc/home/easybuild/install/modules/all/Core:/tmp/easybuild-kltRfC/tmpRTxxka/all:/sonas-hs/it/hpc/home/easybuild/install/modules/all:/sonas-hs/it/hpc/home/easy > > == 2015-03-16 10:59:01,452 main.EB_EasyBuildMeta INFO Closing log for > application name EasyBuild version 2.0.0 > > Thanks, > > Todd > > >

