Open hongyi-zhao opened 4 years ago
I also ran into problems...
$ python2 --version
Python 2.7.14
$ python bootstrap_eb.py $EASYBUILD_PREFIX
[[INFO]] EasyBuild bootstrap script (version 20200203.01, MD5: fcb6314d4e0747db9c28a71f8bb2870c)
[[INFO]] Found Python 2.7.14 (default, Nov 30 2017, 11:33:17) [GCC]
[[INFO]] Installation prefix /home/bla/.local/easybuild
[[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]] running pre-install command 'easy_install --quiet --upgrade --prefix=/tmp/tmphNgQHK/eb_stage1 vsc-install<0.11.4'
[[INFO]] running pre-install command 'easy_install --quiet --upgrade --prefix=/tmp/tmphNgQHK/eb_stage1 vsc-base<2.9.0'
[[INFO]] installing EasyBuild with 'easy_install --quiet --upgrade --prefix=/tmp/tmphNgQHK/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.
File "build/bdist.linux-x86_64/egg/easybuild/tools/py2vs3/py3.py", line 85
class WrapperBase(object, metaclass=metaclass):
^
SyntaxError: invalid syntax
[[INFO]] running post install command 'easy_install --upgrade --prefix=/tmp/tmphNgQHK/eb_stage1 vsc-base<2.9.0'
[[INFO]] +++ STAGE 2: installing EasyBuild in /home/bla/.local/easybuild with EasyBuild from stage 1...
== temporary log file in case of crash /tmp/eb-QcNORS/easybuild-Zwtihr.log
WARNING: Found one or more non-allowed loaded (EasyBuild-generated) modules in current environment:
* xalt/2.7.24
This is not recommended since it may affect the installation procedure(s) performed by EasyBuild.
To make EasyBuild allow particular loaded modules, use the --allow-loaded-modules configuration option.
To specify action to take when loaded modules are detected, use --detect-loaded-modules={error,ignore,purge,unload,warn}.
See http://easybuild.readthedocs.io/en/latest/Detecting_loaded_modules.html for more information.
WARNING: Deprecated functionality, will no longer work in v5.0: Use of 'dummy' toolchain is deprecated, use 'system' toolchain instead; see http://easybuild.readthedocs.org/en/latest/Deprecated-functionality.html for more information
== processing EasyBuild easyconfig /tmp/tmphNgQHK/EasyBuild-4.1.1.eb
== building and installing EasyBuild/4.1.1...
== fetching files...
== creating build dir, resetting environment...
== unpacking...
== patching...
== preparing...
== configuring...
== building...
== testing...
== installing...
== FAILED: Installation ended unsuccessfully (build directory: /tmp/tmphNgQHK/EasyBuild/4.1.1/dummy-dummy): build failed (first 300 chars): cmd " /usr/bin/python setup.py install --prefix=/home/bla/.local/easybuild/software/EasyBuild/4.1.1 " exited with exit code 1 and output:
Installing version 4.1.1 (required versions: API >= 4, easyblocks >= 4.1)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution optio (took 10 sec)
== Results of the build can be found in the log file(s) /tmp/eb-QcNORS/easybuild-EasyBuild-4.1.1-20200219.101457.uMBeP.log
Traceback (most recent call last):
File "bootstrap_eb.py", line 1157, in <module>
main()
File "bootstrap_eb.py", line 956, in main
stage2(tmpdir, templates, install_path, distribute_egg_dir, sourcepath)
File "bootstrap_eb.py", line 814, in stage2
easybuild_main()
File "/tmp/tmphNgQHK/eb_stage1/lib/python2.7/site-packages/easybuild_framework-4.1.1-py2.7.egg/easybuild/main.py", line 469, in main
ecs_with_res = build_and_install_software(ordered_ecs, init_session_state, exit_on_failure=exit_on_failure)
File "/tmp/tmphNgQHK/eb_stage1/lib/python2.7/site-packages/easybuild_framework-4.1.1-py2.7.egg/easybuild/main.py", line 148, in build_and_install_software
raise EasyBuildError(test_msg)
easybuild.tools.build_log.EasyBuildError: 'Build of /tmp/tmphNgQHK/EasyBuild-4.1.1.eb failed (err: \'build failed (first 300 chars): cmd " /usr/bin/python setup.py install --prefix=/home/bla/.local/easybuild/software/EasyBuild/4.1.1 " exited with exit code 1 and output:\\nInstalling version 4.1.1 (required versions: API >= 4, easyblocks >= 4.1)\\n/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution optio\')'
$ python3 --version
Python 3.6.9
$ python3 bootstrap_eb.py $EASYBUILD_PREFIX
[[INFO]] EasyBuild bootstrap script (version 20200203.01, MD5: fcb6314d4e0747db9c28a71f8bb2870c)
[[INFO]] Found Python 3.6.9 (default, Sep 09 2019, 18:26:39) [GCC]
[[INFO]] Installation prefix /home/bla/.local/easybuild
[[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/tmp4sdni3ge/eb_stage1 easybuild>=4.0'
[[INFO]] Note: a 'SyntaxError' may be reported for the easybuild/tools/py2vs3/py2.py module.
You can safely ignore this message, it will not affect the functionality of the EasyBuild installation.
File "build/bdist.linux-x86_64/egg/easybuild/tools/py2vs3/py2.py", line 67
raise exception_class, message, traceback
^
SyntaxError: invalid syntax
[[INFO]] +++ STAGE 2: installing EasyBuild in /home/bla/.local/easybuild with EasyBuild from stage 1...
== temporary log file in case of crash /tmp/eb-0lxn8hr4/easybuild-pdv0kowf.log
WARNING: Found one or more non-allowed loaded (EasyBuild-generated) modules in current environment:
* xalt/2.7.24
This is not recommended since it may affect the installation procedure(s) performed by EasyBuild.
To make EasyBuild allow particular loaded modules, use the --allow-loaded-modules configuration option.
To specify action to take when loaded modules are detected, use --detect-loaded-modules={error,ignore,purge,unload,warn}.
See http://easybuild.readthedocs.io/en/latest/Detecting_loaded_modules.html for more information.
WARNING: Deprecated functionality, will no longer work in v5.0: Use of 'dummy' toolchain is deprecated, use 'system' toolchain instead; see http://easybuild.readthedocs.org/en/latest/Deprecated-functionality.html for more information
== processing EasyBuild easyconfig /tmp/tmp4sdni3ge/EasyBuild-4.1.1.eb
== building and installing EasyBuild/4.1.1...
== fetching files...
== creating build dir, resetting environment...
== unpacking...
== patching...
== preparing...
== configuring...
== building...
== testing...
== installing...
== FAILED: Installation ended unsuccessfully (build directory: /tmp/tmp4sdni3ge/EasyBuild/4.1.1/dummy-dummy): build failed (first 300 chars): cmd " /usr/bin/python3 setup.py install --prefix=/home/bla/.local/easybuild/software/EasyBuild/4.1.1 " exited with exit code 1 and output:
Installing version 4.1.1 (required versions: API >= 4, easyblocks >= 4.1)
running install
running build
running install_data
creating /home/bla/.local/ (took 12 sec)
== Results of the build can be found in the log file(s) /tmp/eb-0lxn8hr4/easybuild-EasyBuild-4.1.1-20200219.101111.KRyjY.log
Traceback (most recent call last):
File "bootstrap_eb.py", line 1157, in <module>
main()
File "bootstrap_eb.py", line 956, in main
stage2(tmpdir, templates, install_path, distribute_egg_dir, sourcepath)
File "bootstrap_eb.py", line 814, in stage2
easybuild_main()
File "/tmp/tmp4sdni3ge/eb_stage1/lib/python3.6/site-packages/easybuild_framework-4.1.1-py3.6.egg/easybuild/main.py", line 469, in main
ecs_with_res = build_and_install_software(ordered_ecs, init_session_state, exit_on_failure=exit_on_failure)
File "/tmp/tmp4sdni3ge/eb_stage1/lib/python3.6/site-packages/easybuild_framework-4.1.1-py3.6.egg/easybuild/main.py", line 148, in build_and_install_software
raise EasyBuildError(test_msg)
easybuild.tools.build_log.EasyBuildError: 'Build of /tmp/tmp4sdni3ge/EasyBuild-4.1.1.eb failed (err: \'build failed (first 300 chars): cmd " /usr/bin/python3 setup.py install --prefix=/home/bla/.local/easybuild/software/EasyBuild/4.1.1 " exited with exit code 1 and output:\\nInstalling version 4.1.1 (required versions: API >= 4, easyblocks >= 4.1)\\nrunning install\\nrunning build\\nrunning install_data\\ncreating /home/bla/.local/\')'
There is indeed a failure on Python2 at least as PyPi no longer supports non-SSL connections as done by the old setuptools package used
But, as you can see, it also failed with Python3.
Then we need the log of that as it is another issue
The original issue reported here by @hongyi-zhao will be fixed by #3211
The issue from @victorusu is something else and should go into a new issue with logs attached.
Note that Python3 support of the bootstrap is flaky and we need to come up with something better for the future
@victorusu Can you open a new issue for the bootstrap issue on Python 3, providing the full log (EASYBUILD_BOOTSTRAP_DEBUG=1 python bootstrap_eb.py $PREFIX 2>&1 | tee eb_bootstrap.log
)?
@boegel and @Flamefire, the issue that I saw is not related to EB. It is was a "quota disk exceed error". Sorry for not reporting back. I have created another issue related to that. #3200
Hi,
I use Ubuntu 19.10 and try to install easybuild with the bootstrap script. Failed with the following info:
Any hints for this issue?
Regards