Re: [easybuild] Re: EB bootstrap: ImportError: No module named tools.version
Dear Ole, Can you do a debug bootstrap, by also defining $EASYBUILD_BOOTSTRAP_DEBUG? export EASYBUILD_BOOTSTRAP_DEBUG=1 Maybe you have an 'easybuild' folder in the directory where you're running the bootstrap from? regards, Kenneth On 24/04/2020 09:18, Ole Holm Nielsen wrote: On 24-04-2020 09:15, Ole Holm Nielsen wrote: Dear EasyBuilders, I am trying to create a clean EasyBuild setup for a benchmarking environment on a CentOS 7.7 server. In my .bashrc file I have defined the clean environment with: export EASYBUILD_MODULES_TOOL=Lmod export EASYBUILD_PREFIX=$HOME/modules I have created the empty folder $HOME/modules/all Unfortunately the EB bootstrap fails in stage 1: $ python bootstrap_eb.py $EASYBUILD_PREFIX [[INFO]] EasyBuild bootstrap script (version 20200203.01, MD5: fcb6314d4e0747db9c28a71f8bb2870c) [[INFO]] Found Python 2.7.5 (default, Aug 7 2019, 00:51:29) ; [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] [[INFO]] Installation prefix /home/niflheim/ohni/modules [[INFO]] Using modules tool specified by $EASYBUILD_MODULES_TOOL: Lmod [[INFO]] Suitable setuptools installation already found, skipping stage 0... [[INFO]] +++ STAGE 1: installing EasyBuild in temporary dir with easy_install... [[INFO]] running pre-install command 'easy_install --quiet --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 vsc-install<0.11.4' [[INFO]] running pre-install command 'easy_install --quiet --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 vsc-base<2.9.0' [[INFO]] installing EasyBuild with 'easy_install --quiet --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 easybuild' [[INFO]] Note: a 'SyntaxError' may be reported for the easybuild/tools/py2vs3/py3.py module. You can safely ignore this message, it will not affect the functionality of the EasyBuild installation. [[INFO]] running post install command 'easy_install --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 vsc-base<2.9.0' [[ERROR]] Stage 1 failed, could not determine EasyBuild version (txt: Traceback (most recent call last): File "", line 1, in ImportError: No module named tools.version ). This seems to be the same problem as discussed in https://github.com/easybuilders/easybuild-framework/issues/2712 which I thought was already solved. The system already this CentOS 7 package python-setuptools, but not python-mock: $ rpm -q python-setuptools python-mock python-setuptools-0.9.8-7.el7.noarch package python-mock is not installed Correction: python-mock is also installed: $ rpm -q python-setuptools python2-mock python-setuptools-0.9.8-7.el7.noarch python2-mock-1.0.1-10.el7.noarch /Ole
[easybuild] Re: EB bootstrap: ImportError: No module named tools.version
On 24-04-2020 09:15, Ole Holm Nielsen wrote: Dear EasyBuilders, I am trying to create a clean EasyBuild setup for a benchmarking environment on a CentOS 7.7 server. In my .bashrc file I have defined the clean environment with: export EASYBUILD_MODULES_TOOL=Lmod export EASYBUILD_PREFIX=$HOME/modules I have created the empty folder $HOME/modules/all Unfortunately the EB bootstrap fails in stage 1: $ python bootstrap_eb.py $EASYBUILD_PREFIX [[INFO]] EasyBuild bootstrap script (version 20200203.01, MD5: fcb6314d4e0747db9c28a71f8bb2870c) [[INFO]] Found Python 2.7.5 (default, Aug 7 2019, 00:51:29) ; [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] [[INFO]] Installation prefix /home/niflheim/ohni/modules [[INFO]] Using modules tool specified by $EASYBUILD_MODULES_TOOL: Lmod [[INFO]] Suitable setuptools installation already found, skipping stage 0... [[INFO]] +++ STAGE 1: installing EasyBuild in temporary dir with easy_install... [[INFO]] running pre-install command 'easy_install --quiet --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 vsc-install<0.11.4' [[INFO]] running pre-install command 'easy_install --quiet --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 vsc-base<2.9.0' [[INFO]] installing EasyBuild with 'easy_install --quiet --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 easybuild' [[INFO]] Note: a 'SyntaxError' may be reported for the easybuild/tools/py2vs3/py3.py module. You can safely ignore this message, it will not affect the functionality of the EasyBuild installation. [[INFO]] running post install command 'easy_install --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 vsc-base<2.9.0' [[ERROR]] Stage 1 failed, could not determine EasyBuild version (txt: Traceback (most recent call last): File "", line 1, in ImportError: No module named tools.version ). This seems to be the same problem as discussed in https://github.com/easybuilders/easybuild-framework/issues/2712 which I thought was already solved. The system already this CentOS 7 package python-setuptools, but not python-mock: $ rpm -q python-setuptools python-mock python-setuptools-0.9.8-7.el7.noarch package python-mock is not installed Correction: python-mock is also installed: $ rpm -q python-setuptools python2-mock python-setuptools-0.9.8-7.el7.noarch python2-mock-1.0.1-10.el7.noarch /Ole
[easybuild] EB bootstrap: ImportError: No module named tools.version
Dear EasyBuilders, I am trying to create a clean EasyBuild setup for a benchmarking environment on a CentOS 7.7 server. In my .bashrc file I have defined the clean environment with: export EASYBUILD_MODULES_TOOL=Lmod export EASYBUILD_PREFIX=$HOME/modules I have created the empty folder $HOME/modules/all Unfortunately the EB bootstrap fails in stage 1: $ python bootstrap_eb.py $EASYBUILD_PREFIX [[INFO]] EasyBuild bootstrap script (version 20200203.01, MD5: fcb6314d4e0747db9c28a71f8bb2870c) [[INFO]] Found Python 2.7.5 (default, Aug 7 2019, 00:51:29) ; [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] [[INFO]] Installation prefix /home/niflheim/ohni/modules [[INFO]] Using modules tool specified by $EASYBUILD_MODULES_TOOL: Lmod [[INFO]] Suitable setuptools installation already found, skipping stage 0... [[INFO]] +++ STAGE 1: installing EasyBuild in temporary dir with easy_install... [[INFO]] running pre-install command 'easy_install --quiet --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 vsc-install<0.11.4' [[INFO]] running pre-install command 'easy_install --quiet --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 vsc-base<2.9.0' [[INFO]] installing EasyBuild with 'easy_install --quiet --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 easybuild' [[INFO]] Note: a 'SyntaxError' may be reported for the easybuild/tools/py2vs3/py3.py module. You can safely ignore this message, it will not affect the functionality of the EasyBuild installation. [[INFO]] running post install command 'easy_install --upgrade --prefix=/tmp/tmpvYYVs6/eb_stage1 vsc-base<2.9.0' [[ERROR]] Stage 1 failed, could not determine EasyBuild version (txt: Traceback (most recent call last): File "", line 1, in ImportError: No module named tools.version ). This seems to be the same problem as discussed in https://github.com/easybuilders/easybuild-framework/issues/2712 which I thought was already solved. The system already this CentOS 7 package python-setuptools, but not python-mock: $ rpm -q python-setuptools python-mock python-setuptools-0.9.8-7.el7.noarch package python-mock is not installed Did the PR https://github.com/easybuilders/easybuild-framework/pull/2717 not solve the problem after all? Thanks, Ole -- Ole Holm Nielsen PhD, Senior HPC Officer Department of Physics, Technical University of Denmark