I want to install easybuild via the bootstrap.py script. But it is failing on me. What am I doing wrong?
$ module --version
VERSION=3.2.10
[...]
$ python -V
Python 2.7.8
$ curl -O -L https://raw.githubusercontent.com/hpcugent/easybuild-framework/master/easybuild/scripts/bootstrap_eb.py
I edited bootstrap_eb.py to turn on debug printing.
This is the result.
$ python bootstrap_eb.py ~/.local/easybuild
[[DEBUG]] Going to use /tmp/tmplt02Gt as temporary directory
[[DEBUG]] Output from modulecmd python help:
Modules Release 3.2.10 2012-12-21 (Copyright GNU GPL v2 1991):
Usage: module [ switches ] [ subcommand ] [subcommand-args ]
Switches:
-H|--help this usage info
-V|--version modules version & configuration options
-f|--force force active dependency resolution
-t|--terse terse format avail and list format
-l|--long long format avail and list format
-h|--human readable format avail and list format
-v|--verbose enable verbose messages
-s|--silent disable verbose messages
-c|--create create caches for avail and apropos
-i|--icase case insensitive
-u|--userlvl <lvl> set user level to (nov[ice],exp[ert],adv[anced])
Available SubCommands and Args:
+ add|load modulefile [modulefile ...]
+ rm|unload modulefile [modulefile ...]
+ switch|swap [modulefile1] modulefile2
+ display|show modulefile [modulefile ...]
+ avail [modulefile [modulefile ...]]
+ use [-a|--append] dir [dir ...]
+ unuse dir [dir ...]
+ update
+ refresh
+ purge
+ list
+ clear
+ help [modulefile [modulefile ...]]
+ whatis [modulefile [modulefile ...]]
+ apropos|keyword string
+ initadd modulefile [modulefile ...]
+ initprepend modulefile [modulefile ...]
+ initrm modulefile [modulefile ...]
+ initswitch modulefile1 modulefile2
+ initlist
+ initclear
[[INFO]] Found module command 'modulecmd' (EnvironmentModulesC), so using it.
[[DEBUG]] Excluding /home/ITER/vandell/Soft/Installers/easybuild-master from sys.path
[[DEBUG]] sys.path after cleaning: ['/work/imas/opt/python/2.7.8/lib/python27.zip', '/work/imas/opt/python/2.7.8/lib/python2.7', '/work/imas/opt/python/2.7.8/lib/python2.7/plat-linux2', '/work/imas/opt/python/2.7.8/lib/python2.7/lib-tk', '/work/imas/opt/python/2.7.8/lib/python2.7/lib-old', '/work/imas/opt/python/2.7.8/lib/python2.7/lib-dynload', '/work/imas/opt/python/2.7.8/lib/python2.7/site-packages']
[[INFO]]
+++ STAGE 0: installing distribute via included (patched) distribute_setup.py...
[[DEBUG]] preparing environment...
[[DEBUG]] Preparing for path /tmp/tmplt02Gt
[[DEBUG]] os.environ['PYTHONPATH'] after reset:
[[DEBUG]] $EASYBUILD_MODULES_TOOL set to EnvironmentModulesC
[[DEBUG]] distribute_setup.__file__: /tmp/tmplt02Gt/distribute_setup.py
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz
Extracting in /tmp/tmplP35TH
Now working in /tmp/tmplP35TH/distribute-0.6.34
Installing Distribute
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /work/imas/opt/python/2.7.8/lib/python2.7/site-packages
Not patching, --root or --prefix is installing Distribute in another location
Traceback (most recent call last):
File "setup.py", line 248, in <module>
scripts = scripts,
File "/work/imas/opt/python/2.7.8/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/tmp/tmplP35TH/distribute-0.6.34/setuptools/dist.py", line 225, in __init__
_Distribution.__init__(self,attrs)
File "/work/imas/opt/python/2.7.8/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/tmp/tmplP35TH/distribute-0.6.34/setuptools/dist.py", line 257, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/tmp/tmplP35TH/distribute-0.6.34/pkg_resources.py", line 2025, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File "/tmp/tmplP35TH/distribute-0.6.34/pkg_resources.py", line 2235, in requires
dm = self._dep_map
File "/tmp/tmplP35TH/distribute-0.6.34/pkg_resources.py", line 2464, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/tmp/tmplP35TH/distribute-0.6.34/pkg_resources.py", line 2497, in _compute_dependencies
common = frozenset(reqs_for_extra(None))
File "/tmp/tmplP35TH/distribute-0.6.34/pkg_resources.py", line 2494, in reqs_for_extra
if req.marker_fn(override={'extra':extra}):
File "/tmp/tmplP35TH/distribute-0.6.34/_markerlib/markers.py", line 109, in marker_fn
return eval(compiled_marker, environment)
File "<environment marker>", line 1, in <module>
NameError: name 'sys_platform' is not defined
Something went wrong during the installation.
See the error message above.
[[ERROR]] Installing distribute which should deliver easy_install failed?
I don't know where to continue from here. Can you help? What output do you need?
I want to install easybuild via the bootstrap.py script. But it is failing on me. What am I doing wrong?
I got modules and python ready:
I edited bootstrap_eb.py to turn on debug printing.
This is the result.
I don't know where to continue from here. Can you help? What output do you need?