Skip to content

stop relying on 'easy_install' in bootstrap script, use 'python -m easy_install' instead#2590

Merged
vanzod merged 1 commit intoeasybuilders:developfrom
boegel:fix_bootstrap_ubuntu1804
Sep 26, 2018
Merged

stop relying on 'easy_install' in bootstrap script, use 'python -m easy_install' instead#2590
vanzod merged 1 commit intoeasybuilders:developfrom
boegel:fix_bootstrap_ubuntu1804

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Sep 25, 2018

This should fix the problem reported in #2581

@chossimbaone @mcakircali: Can you test this and let us know whether this fixes the reported problem on Ubuntu 18.04?

You can download the updated bootstrap script (version 20180925.01) using the following command while this PR is open:

curl -OL https://raw.githubusercontent.com/boegel/easybuild-framework/fix_bootstrap_ubuntu1804/easybuild/scripts/bootstrap_eb.py

@boegel boegel added the bug fix label Sep 25, 2018
@boegel boegel added this to the 3.7.1 milestone Sep 25, 2018
@boegel boegel force-pushed the fix_bootstrap_ubuntu1804 branch from 98d845e to fdb1fd9 Compare September 25, 2018 18:58
@mcakircali
Copy link
Copy Markdown

I must say, I ditched Ubuntu 18.04 as it comes with a lot of issues (related to other libs and tools). So, I did the test on a VM.

I guess the fix works but my installation fails with the Lmod version check, see below..

metin@metin-VirtualBox:~/workspace$ ./bootstrap_eb.py /home/metin/.local/easybuild
[[INFO]] EasyBuild bootstrap script (version 20180925.01, MD5: 4e568883f293f94ade46a14d25cb6b94)
[[INFO]] Found Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) ; [GCC 7.3.0]

[[INFO]] Installation prefix /home/metin/.local/easybuild
[[INFO]] Found module command '/usr/share/lmod/lmod/libexec/lmod' via $LMOD_CMD (Lmod), 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/tmpgJ4t_z/eb_stage1 easybuild'
[[INFO]] running post install command 'easy_install --upgrade --prefix=/tmp/tmpgJ4t_z/eb_stage1 vsc-base'

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

== temporary log file in case of crash /tmp/eb-kVlpFB/easybuild-AFA9zm.log
Traceback (most recent call last):
File "./bootstrap_eb.py", line 1080, in
main()
File "./bootstrap_eb.py", line 883, in main
stage2(tmpdir, templates, install_path, distribute_egg_dir, sourcepath)
File "./bootstrap_eb.py", line 746, in stage2
easybuild_main()
File "/tmp/tmpgJ4t_z/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.7.0-py2.7.egg/easybuild/main.py", line 288, in main
modtool = modules_tool(testing=testing)
File "/tmp/tmpgJ4t_z/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.7.0-py2.7.egg/easybuild/tools/modules.py", line 1375, in modules_tool
return modules_tool_class(mod_paths=mod_paths, testing=testing)
File "/tmp/tmpgJ4t_z/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.7.0-py2.7.egg/easybuild/tools/modules.py", line 1126, in init
super(Lmod, self).init(*args, **kwargs)
File "/tmp/tmpgJ4t_z/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.7.0-py2.7.egg/easybuild/tools/modules.py", line 200, in init
self.set_and_check_version()
File "/tmp/tmpgJ4t_z/eb_stage1/lib/python2.7/site-packages/easybuild_framework-3.7.0-py2.7.egg/easybuild/tools/modules.py", line 246, in set_and_check_version
self.class.name, self.REQ_VERSION, self.version)
easybuild.tools.build_log.EasyBuildError: 'EasyBuild requires Lmod >= v6.6.3, found v6.6'

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Sep 26, 2018

@mcakircali Do you mind retesting after defining $EASYBUILD_BOOTSTRAP_FORCE_VERSION such that the bootstrap script installs the previous version of EasyBuild (which doesn't require Lmod 6.6.3 yet):

export EASYBUILD_BOOTSTRAP_FORCE_VERSION=3.6.2

@mcakircali
Copy link
Copy Markdown

with 3.6.2, it works as expected..

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Sep 26, 2018

Thanks for the feedback @mcakircali!

@akesandgren Were you planning to test this too? Should be good to go...

@boegel boegel requested a review from vanzod September 26, 2018 16:35
@vanzod vanzod merged commit 1a668ea into easybuilders:develop Sep 26, 2018
@boegel boegel deleted the fix_bootstrap_ubuntu1804 branch September 26, 2018 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants