Re: [easybuild] Easy build installation failed

2018-04-08 Thread Kenneth Hoste

On 08/04/2018 10:41, Kenneth Hoste wrote:

Hello,

On 03/04/2018 20:19, vicky wrote:

Hello

A newbie here

I am trying to install Easy build and came across error , any help 
please ?


The problem seems to be that you are using a recent version of the 
revamped Environment Modules tool.
While EasyBuild was made compatible with v4.0.0, it seems like v4.1.x 
has introduced some changes that EasyBuild isn't happy with.


I'll try to find some time to look into this, maybe together with Xavier 
(in CC), the main developer of the Modules project.


The problem seems to be that Modules v4.1.x also includes a 'modulecmd' 
wrapper, and so the bootstrap script confuses it with Modules 3.2.10 
(which behaves differently).


Can you please try with the modified bootstrap script in attachment?
See also https://github.com/easybuilders/easybuild-framework/pull/2468


regards,

Kenneth




regards,

Kenneth



== 


[user1@conode1 ~]$ python bootstrap_eb.py $HOME
[[INFO]] EasyBuild bootstrap script (version 20180201.01, MD5: 
5211e214b622e6d80614c3127eec2396)
[[INFO]] Found Python 2.7.5 (default, Aug  4 2017, 00:39:18) ; [GCC 
4.8.5 20150623 (Red Hat 4.8.5-16)]


[[INFO]] Installation prefix /home/user1
[[INFO]] Found module command 'modulecmd' (EnvironmentModulesC), so 
using it.
[[INFO]] Suitable setuptools installation already found, skipping 
stage 0...



[[INFO]] +++ STAGE 1: installing EasyBuild in temporary dir with 
easy_install...


[[INFO]] installing EasyBuild with 'easy_install --quiet --upgrade 
--prefix=/tmp/tmpBZXTfG/eb_stage1 easybuild'
[[INFO]] running post install command 'easy_install --upgrade 
--prefix=/tmp/tmpBZXTfG/eb_stage1 vsc-base'



[[INFO]] +++ STAGE 2: installing EasyBuild in /home/user1 with 
EasyBuild from stage 1...


== temporary log file in case of crash 
/tmp/eb-LuckrC/easybuild-at8naN.log

Traceback (most recent call last):
   File "bootstrap_eb.py", line 1047, in 
 main()
   File "bootstrap_eb.py", line 850, in main
 stage2(tmpdir, templates, install_path, distribute_egg_dir, 
sourcepath)

   File "bootstrap_eb.py", line 717, in stage2
 easybuild_main()
   File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/main.py", 
line 259, in main

 modtool = modules_tool(testing=testing)
   File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/tools/modules.py", 
line 1354, in modules_tool

 return modules_tool_class(mod_paths=mod_paths, testing=testing)
   File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/tools/modules.py", 
line 199, in __init__

 self.set_and_check_version()
   File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/tools/modules.py", 
line 238, in set_and_check_version

 self.VERSION_OPTION, txt)
*easybuild.tools.build_log.EasyBuildError: "Failed to determine 
version from option '--version' output: Modules Release 4.1.1 
(2018-02-17)\n"**

*
#!/usr/bin/env python
##
# Copyright 2013-2018 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (FWO) (http://www.fwo.be/en)
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).
#
# https://github.com/easybuilders/easybuild
#
# EasyBuild is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation v2.
#
# EasyBuild is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with EasyBuild.  If not, see .
##

"""
Bootstrap script for EasyBuild

Installs distribute with included (patched) distribute_setup.py script to obtain easy_install,
and then performs a staged install of EasyBuild:
 * stage 0: install setuptools (which provides easy_install), unless already available
 * stage 1: install EasyBuild with easy_install to a temporary directory
 * stage 2: install EasyBuild with EasyBuild from stage 1 to specified install directory

Authors: Kenneth Hoste (UGent), Stijn Deweirdt (UGent), Ward Poelmans (UGent)
License: GPLv2

inspired by https://bitbucket.org/pdubroy/pip/raw/tip/getpip.py
(via http://dubroy.com/blog/so-you-want-to-install-a-python-package/)
"""

import copy
import glob
import os

Re: [easybuild] Easy build installation failed

2018-04-08 Thread Kenneth Hoste

Hello,

On 03/04/2018 20:19, vicky wrote:

Hello

A newbie here

I am trying to install Easy build and came across error , any help please ?


The problem seems to be that you are using a recent version of the 
revamped Environment Modules tool.
While EasyBuild was made compatible with v4.0.0, it seems like v4.1.x 
has introduced some changes that EasyBuild isn't happy with.


I'll try to find some time to look into this, maybe together with Xavier 
(in CC), the main developer of the Modules project.



regards,

Kenneth



==
[user1@conode1 ~]$ python bootstrap_eb.py $HOME
[[INFO]] EasyBuild bootstrap script (version 20180201.01, MD5: 
5211e214b622e6d80614c3127eec2396)
[[INFO]] Found Python 2.7.5 (default, Aug  4 2017, 00:39:18) ; [GCC 
4.8.5 20150623 (Red Hat 4.8.5-16)]


[[INFO]] Installation prefix /home/user1
[[INFO]] Found module command 'modulecmd' (EnvironmentModulesC), so 
using it.

[[INFO]] Suitable setuptools installation already found, skipping stage 0...


[[INFO]] +++ STAGE 1: installing EasyBuild in temporary dir with 
easy_install...


[[INFO]] installing EasyBuild with 'easy_install --quiet --upgrade 
--prefix=/tmp/tmpBZXTfG/eb_stage1 easybuild'
[[INFO]] running post install command 'easy_install --upgrade 
--prefix=/tmp/tmpBZXTfG/eb_stage1 vsc-base'



[[INFO]] +++ STAGE 2: installing EasyBuild in /home/user1 with EasyBuild 
from stage 1...


== temporary log file in case of crash /tmp/eb-LuckrC/easybuild-at8naN.log
Traceback (most recent call last):
   File "bootstrap_eb.py", line 1047, in 
     main()
   File "bootstrap_eb.py", line 850, in main
     stage2(tmpdir, templates, install_path, distribute_egg_dir, sourcepath)
   File "bootstrap_eb.py", line 717, in stage2
     easybuild_main()
   File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/main.py", 
line 259, in main

     modtool = modules_tool(testing=testing)
   File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/tools/modules.py", 
line 1354, in modules_tool

     return modules_tool_class(mod_paths=mod_paths, testing=testing)
   File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/tools/modules.py", 
line 199, in __init__

     self.set_and_check_version()
   File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/tools/modules.py", 
line 238, in set_and_check_version

     self.VERSION_OPTION, txt)
*easybuild.tools.build_log.EasyBuildError: "Failed to determine version 
from option '--version' output: Modules Release 4.1.1 (2018-02-17)\n"**

*


[easybuild] Easy build installation failed

2018-04-04 Thread vicky

Hello

A newbie here

I am trying to install Easy build and came across error , any help please ?


==
[user1@conode1 ~]$ python bootstrap_eb.py $HOME
[[INFO]] EasyBuild bootstrap script (version 20180201.01, MD5: 
5211e214b622e6d80614c3127eec2396)
[[INFO]] Found Python 2.7.5 (default, Aug  4 2017, 00:39:18) ; [GCC 
4.8.5 20150623 (Red Hat 4.8.5-16)]


[[INFO]] Installation prefix /home/user1
[[INFO]] Found module command 'modulecmd' (EnvironmentModulesC), so 
using it.

[[INFO]] Suitable setuptools installation already found, skipping stage 0...


[[INFO]] +++ STAGE 1: installing EasyBuild in temporary dir with 
easy_install...


[[INFO]] installing EasyBuild with 'easy_install --quiet --upgrade 
--prefix=/tmp/tmpBZXTfG/eb_stage1 easybuild'
[[INFO]] running post install command 'easy_install --upgrade 
--prefix=/tmp/tmpBZXTfG/eb_stage1 vsc-base'



[[INFO]] +++ STAGE 2: installing EasyBuild in /home/user1 with EasyBuild 
from stage 1...


== temporary log file in case of crash /tmp/eb-LuckrC/easybuild-at8naN.log
Traceback (most recent call last):
  File "bootstrap_eb.py", line 1047, in 
    main()
  File "bootstrap_eb.py", line 850, in main
    stage2(tmpdir, templates, install_path, distribute_egg_dir, sourcepath)
  File "bootstrap_eb.py", line 717, in stage2
    easybuild_main()
  File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/main.py", 
line 259, in main

    modtool = modules_tool(testing=testing)
  File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/tools/modules.py", 
line 1354, in modules_tool

    return modules_tool_class(mod_paths=mod_paths, testing=testing)
  File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/tools/modules.py", 
line 199, in __init__

    self.set_and_check_version()
  File 
"/tmp/tmpBZXTfG/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.5.3-py2.7.egg/easybuild/tools/modules.py", 
line 238, in set_and_check_version

    self.VERSION_OPTION, txt)
*easybuild.tools.build_log.EasyBuildError: "Failed to determine version 
from option '--version' output: Modules Release 4.1.1 (2018-02-17)\n"**

*