Re: [easybuild] Issue with v2.0.0? (can not import _bdist_rpm)
> On Mar 8, 2015, at 1:05 PM, Kenneth Hoste wrote: > > Hi Timothy, > >> On 08 Mar 2015, at 17:20, Timothy Brown 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 >> 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 >> 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. Thanks! Timothy
Re: [easybuild] Issue with v2.0.0? (can not import _bdist_rpm)
> On Mar 8, 2015, at 12:46 PM, Ward Poelmans wrote: > > On Sun, Mar 8, 2015 at 5:20 PM, Timothy Brown > wrote: > >> == 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 >>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 >>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 think you're hitting this: https://github.com/hpcugent/vsc-base/issues/129 > This looks like it. Thanks. > But it should be fixed. Which version of python and setuptools are you using? I'll reply to Kenneth's questions. Timothy
Re: [easybuild] Issue with v2.0.0? (can not import _bdist_rpm)
I'm new to EB . Today, I started with v2 on rhel71 . eb fails to build GCC-4.4.7.1.eb on rhel71 and succeeds on centos66 . I have not tried prev version 1.16.x . (GCC-4.8.2.eb also fails on rhel71 ),. I cut/paste some details - - I'm interested in centos7,rhel71 - and especially in toolchain for gmpolf or cgmpolf using gcc-4.4.7 because of some backward compat issues. ideas/ -/Don [none@petrol2]~% eb --modules-tool=Lmod GCC-4.4.7.1.eb -r == temporary log file in case of crash /tmp/eb-a29pbo/easybuild-1XtXXX.log == resolving dependencies ... == processing EasyBuild easyconfig /opt/apps/easybuild/software/EasyBuild/2.0.0/lib/python2.7/site-packages/easybuild_easyconfigs-2.0.0-py2.7.egg/easybuild/easyconfigs/g/GMP/GMP-4.3.2.eb == building and installing GMP/4.3.2... == fetching files... == creating build dir, resetting environment... == unpacking... == patching... == preparing... == configuring... == building... == testing... == FAILED: Installation ended unsuccessfully (build directory: /opt/apps/.local/easybuild/build/GMP/4.3.2/dummy-dummy): build failed (first 300 chars): EasyBuild crashed with an error (at easybuild/software/EasyBuild/2.0.0/lib/python2.7/site-packages/easybuild_framework-2.0.0-py2.7.egg/easybuild/tools/run.py:384 in parse_cmd_output): cmd "make check" exited with exitcode 2 and output: make check-recursive make[1]: Entering directory `/opt/apps/.lo == Results of the build can be found in the log file /tmp/eb-a29pbo/easybuild-GMP-4.3.2-20150308.163758.hGwTz.log ERROR: EasyBuild crashed with an error (at easybuild/software/EasyBuild/2.0.0/lib/python2.7/site-packages/easybuild_framework-2.0.0-py2.7.egg/easybuild/main.py:137 in build_and_install_software): Build of /opt/apps/easybuild/software/EasyBuild/2.0.0/lib/python2.7/site-packages/easybuild_easyconfigs-2.0.0-py2.7.egg/easybuild/easyconfigs/g/GMP/GMP-4.3.2.eb failed (err: 'build failed (first 300 chars): EasyBuild crashed with an error (at easybuild/software/EasyBuild/2.0.0/lib/python2.7/site-packages/easybuild_framework-2.0.0-py2.7.egg/easybuild/tools/run.py:384 in parse_cmd_output): cmd "make check" exited with exitcode 2 and output:\nmake check-recursive\nmake[1]: Entering directory `/opt/apps/.lo') [none@petrol2]~% lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID:RedHatEnterpriseServer Description:Red Hat Enterprise Linux Server release 7.1 (Maipo) Release:7.1 Codename:Maipo [none@petrol2]~% rpm -q Lmod Lmod-5.9.0.2-1.el7.centos.noarch [none@petrol2]~% eb --version This is EasyBuild 2.0.0 (framework: 2.0.0, easyblocks: 2.0.0) on host petrol2.utdallas.edu. [none@petrol2]~% type -f module module () { eval $($LMOD_CMD bash "$@") [ $? = 0 ] && eval $(${LMOD_SETTARG_CMD:-:} -s sh) } [none@petrol2]~% module list Currently Loaded Modules: 1) lmod/5.9.0.2 2) EasyBuild/2.0.0 = [none@zmf8]~/misc% rpm -q gcc gcc-4.4.7-11.el6.x86_64 [none@zmf8]~/misc% eb --modules-tool=Lmod GCC-4.4.7.eb -r == temporary log file in case of crash /tmp/eb-g_OW7l/easybuild-3he2mm.log == resolving dependencies ... == processing EasyBuild easyconfig /opt/apps/easybuild/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_easyconfigs-2.0.0-py2.6.egg/easybuild/easyconfigs/g/GMP/GMP-4.3.2.eb == building and installing GMP/4.3.2... == fetching files... == creating build dir, resetting environment... == unpacking... == patching... == preparing... == configuring... == building... == testing... == installing... == taking care of extensions... == packaging... == postprocessing... == sanity checking... == cleaning up... == creating module... == COMPLETED: Installation ended successfully == Results of the build can be found in the log file /opt/apps/.local/easybuild/software/GMP/4.3.2/easybuild/easybuild-GMP-4.3.2-20150308.162558.log == processing EasyBuild easyconfig /opt/apps/easybuild/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_easyconfigs-2.0.0-py2.6.egg/easybuild/easyconfigs/m/MPFR/MPFR-2.4.2.eb == building and installing MPFR/2.4.2... == fetching files... == creating build dir, resetting environment... == unpacking... == patching... == preparing... == configuring... == building... == testing... == installing... == taking care of extensions... == packaging... == postprocessing... == sanity checking... == cleaning up... == creating module... == COMPLETED: Installation ended successfully == Results of the build can be found in the log file /opt/apps/.local/easybuild/software/MPFR/2.4.2/easybuild/easybuild-MPFR-2.4.2-20150308.162715.log == processing EasyBuild easyconfig /opt/apps/easybuild/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_easyconfigs-2.0.0-py2.6.egg/easybuild/easyconfigs/g/GCC/GCC-4.4.7.eb == building and installing GCC/4.4.7... == fetching files... == creating build dir, resetting environment... =
Re: [easybuild] Issue with v2.0.0? (can not import _bdist_rpm)
Hi Timothy, > On 08 Mar 2015, at 17:20, Timothy Brown 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 >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 >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. regards, Kenneth
Re: [easybuild] Issue with v2.0.0? (can not import _bdist_rpm)
On Sun, Mar 8, 2015 at 5:20 PM, Timothy Brown wrote: > == 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 > 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 > 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 think you're hitting this: https://github.com/hpcugent/vsc-base/issues/129 But it should be fixed. Which version of python and setuptools are you using? Ward
[easybuild] Issue with v2.0.0? (can not import _bdist_rpm)
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 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 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. Thanks! Timothy