On 08/03/15 23:01, Timothy Brown wrote:
On Mar 8, 2015, at 1:05 PM, Kenneth Hoste <[email protected]> wrote:
Hi Timothy,
On 08 Mar 2015, at 17:20, Timothy Brown <[email protected]> wrote:
Hi,
Just wondering if anybody else is seeing the following error when trying to
bootstrap v2.0.0:
== 2015-03-08 10:08:53,646 bootstrap_eb.run ERROR EasyBuild crashed with an error (at
easybuild/tools/run.py:384 in parse_cmd_output): cmd " python setup.py install
--prefix=/curc/tools/x86_64/rh6/software/EasyBuild/2.0.0 " exited with exitcode 1
and output:
Traceback (most recent call last):
File "setup.py", line 39, in <module>
import vsc.install.shared_setup as shared_setup
File
"/tmp/tmpPK2YGE/EasyBuild/2.0.0/dummy-dummy/vsc-base-2.0.3/lib/vsc/install/shared_setup.py",
line 112, in <module>
from distutils.command.bdist_rpm import bdist_rpm, _bdist_rpm
ImportError: cannot import name _bdist_rpm
Thought I'd ask here before digging into the code.
I've seen this issue as well with testing the bootstrap post v2.0.0, but only
on some systems.
I've been playing around with possible solutions in the bootstrap script
itself, but it seems like this will need to be tackled in vsc-base somehow.
Can you provide some more details of the system you're seeing this on? Which OS, Python
version, output of 'python -c "import sys; print sys.path" ', etc.
OS is DeadRat:
[eb@node0001 modules]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
[eb@node0001 modules]$
Python is 2.6.6:
[eb@node0001 modules]$ python -V
Python 2.6.6
The output of `python -c "import sys; print sys.path"` is:
[eb@node0001 ~]$ python -c "import sys; print sys.path"
['',
'/curc/tools/x86_64/rh6/software/EasyBuild/1.16.1/lib/python2.6/site-packages/easybuild_easyconfigs-1.16.1.0-py2.6.egg',
'/curc/tools/x86_64/rh6/software/EasyBuild/1.16.1/lib/python2.6/site-packages/easybuild_easyblocks-1.16.1-py2.6.egg',
'/curc/tools/x86_64/rh6/software/EasyBuild/1.16.1/lib/python2.6/site-packages/easybuild_framework-1.16.1-py2.6.egg',
'/curc/tools/x86_64/rh6/software/EasyBuild/1.16.1/lib/python2.6/site-packages',
'/usr/lib64/python26.zip', '/usr/lib64/python2.6',
'/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk',
'/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload',
'/usr/lib64/python2.6/site-packages',
'/usr/lib64/python2.6/site-packages/gtk-2.0',
'/usr/lib/python2.6/site-packages']
Please note, I have EasyBuild 1.16.1 loaded.
(Showing my ignorance, I can't seem to find setuptools). However
distutils/command/bdist.py contains:
__revision__ = "$Id: bdist.py 62197 2008-04-07 01:53:39Z mark.hammond $"
I'll try import as statement and let you know how I go.
For completeness sake: the fact that you don't have setuptools available
on your system is what caused the initial problem, since the fallback to
a distutils-only setup in the setup.py of vsc-base was broken. This is
now fixed in vsc-base v2.0.4.
The bootstrap script should take care of making sure setuptools is
available/used in stage 2, but it currently fails to do so.
This will be fixed with
https://github.com/hpcugent/easybuild-framework/pull/1212, which is
currently being tested.
regards,
Kenneth