Dear developers,
I ran into troubles when trying to install EasyBuild via  bootstraping under
Cygwin.
Here is a short log:

---------cut----------------

timn@tnew /cygdrive/k/cygwin/dev-tools/EasyBuild

$ ./g

--2014-07-06 23:45:29--
https://raw.github.com/hpcugent/easybuild-framework/develop/easybuild/scripts/bootstrap_eb.py

Распознаётся raw.github.com (raw.github.com)… 185.31.17.133

Подключение к raw.github.com (raw.github.com)|185.31.17.133|:443... соединение
установлено.

HTTP-запрос отправлен. Ожидание ответа... 301 Moved Permanently

Адрес:
https://raw.githubusercontent.com/hpcugent/easybuild-framework/develop/easybuild/scripts/bootstrap_eb.py
[переход]

--2014-07-06 23:45:36--
https://raw.githubusercontent.com/hpcugent/easybuild-framework/develop/easybuild/scripts/bootstrap_eb.py

Распознаётся raw.githubusercontent.com (raw.githubusercontent.com)…
185.31.17.133

Подключение к raw.githubusercontent.com (raw.githubusercontent.com)|
185.31.17.133|:443... соединение установлено.

HTTP-запрос отправлен. Ожидание ответа... 200 OK

Длина: 26650 (26K) [text/plain]

Сохранение в: «bootstrap_eb.py.1»

100%
[==========================================================================================================================>]
26 650      --.-K/s   за 0,03s

2014-07-06 23:45:37 (750 KB/s) - «bootstrap_eb.py.1» сохранён [26650/26650]

mkdir: невозможно создать каталог «/cygdrive/k/cygwin/dev-tools/EasyBuild/
tmp»: File exists

[[INFO]] Found module command 'modulecmd' (EnvironmentModulesC), so using it.

[[INFO]]

+++ STAGE 0: installing distribute via included (patched)
distribute_setup.py...

Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz

Extracting in /tmp/tmpEUMJy8

Now working in /tmp/tmpEUMJy8/distribute-0.6.34

Installing Distribute

[[INFO]]

+++ STAGE 1: installing EasyBuild in temporary dir with easy_install...

Installing with setuptools.setup...

Installing version 1.13.0

warning: install_lib: 'build/lib' does not exist -- no Python modules to
install

zip_safe flag not set; analyzing archive contents...

Installing with setuptools.setup...

Installing version 1.13.0 (API version 1)

Installing with setuptools.setup...

Installing version 1.13.0 (required versions: API >= 1)

Installing with setuptools.setup...

Installing version 1.13.0.0 (required versions: API >= 1, easyblocks >= 1.13)

warning: install_lib: 'build/lib' does not exist -- no Python modules to
install

[[INFO]]

+++ STAGE 2: installing EasyBuild in /cygdrive/k/cygwin/dev-tools/EasyBuild/
tmp with EasyBuild from stage 1...

Traceback (most recent call last):

  File "bootstrap_eb.py", line 584, in <module>

    main()

  File "bootstrap_eb.py", line 411, in main

    stage2(tmpdir, versions, install_path)

  File "bootstrap_eb.py", line 359, in stage2

    from easybuild.main import main as easybuild_main

  File "/tmp/tmpcmJo0L/eb_stage1/lib/python2.7/site-packages/
easybuild_framework-1.13.0-py2.7.egg/easybuild/main.py", line 51, in <module>

    import easybuild.tools.options as eboptions

  File "/tmp/tmpcmJo0L/eb_stage1/lib/python2.7/site-packages/
easybuild_framework-1.13.0-py2.7.egg/easybuild/tools/options.py", line 41, in
<module>

    from easybuild.framework.easyblock import EasyBlock

  File "/tmp/tmpcmJo0L/eb_stage1/lib/python2.7/site-packages/
easybuild_framework-1.13.0-py2.7.egg/easybuild/framework/easyblock.py", line
55, in <module>

    from easybuild.framework.easyconfig.default import
get_easyconfig_parameter_default

  File "/tmp/tmpcmJo0L/eb_stage1/lib/python2.7/site-packages/
easybuild_framework-1.13.0-py2.7.egg/easybuild/framework/easyconfig/
__init__.py", line 35, in <module>

    from easybuild.framework.easyconfig.easyconfig import EasyConfig

  File "/tmp/tmpcmJo0L/eb_stage1/lib/python2.7/site-packages/
easybuild_framework-1.13.0-py2.7.egg/easybuild/framework/easyconfig/
easyconfig.py", line 58, in <module>

    from easybuild.framework.easyconfig.format.convert import Dependency

  File "/tmp/tmpcmJo0L/eb_stage1/lib/python2.7/site-packages/
easybuild_framework-1.13.0-py2.7.egg/easybuild/framework/easyconfig/format/
__init__.py", line 33, in <module>

    from easybuild.framework.easyconfig.format.one import FormatOneZero

  File "/tmp/tmpcmJo0L/eb_stage1/lib/python2.7/site-packages/
easybuild_framework-1.13.0-py2.7.egg/easybuild/framework/easyconfig/format/
one.py", line 40, in <module>

    from easybuild.framework.easyconfig.format.pyheaderconfigobj import
EasyConfigFormatConfigObj

  File "/tmp/tmpcmJo0L/eb_stage1/lib/python2.7/site-packages/
easybuild_framework-1.13.0-py2.7.egg/easybuild/framework/easyconfig/format/
pyheaderconfigobj.py", line 38, in <module>

    from easybuild.framework.easyconfig.templates import TEMPLATE_CONSTANTS

  File "/tmp/tmpcmJo0L/eb_stage1/lib/python2.7/site-packages/
easybuild_framework-1.13.0-py2.7.egg/easybuild/framework/easyconfig/
templates.py", line 113, in <module>

    ('SHLIB_EXT', get_shared_lib_ext(), 'extension for shared libraries'),

  File "/tmp/tmpcmJo0L/eb_stage1/lib/python2.7/site-packages/
easybuild_framework-1.13.0-py2.7.egg/easybuild/tools/systemtools.py", line
296, in get_shared_lib_ext

    "unknown system name: %s" % os_type)

easybuild.tools.systemtools.SystemToolsException: Unable to determine
extention for shared libraries,unknown system name: CYGWIN_NT-5.1

Exception TypeError: "'NoneType' object is not callable" in <function
_removeHandlerRef at 0x206f8b8c> ignored

ModuleCmd_Load.c(208):ERROR:105: Unable to locate a modulefile for 'EasyBuild'


---------cut----------------

Here is the contents of the script file called g
---------cut----------------
#!/bin/bash
export PYTHONHOME=/usr/
export PYTHONPATH=/usr/lib/

wget --no-check-certificate
https://raw.github.com/hpcugent/easybuild-framework/develop/easybuild/scripts/bootstrap_eb.py
export EASYBUILD_PREFIX=`pwd`/tmp
mkdir $EASYBUILD_PREFIX
python bootstrap_eb.py $EASYBUILD_PREFIX
export MODULEPATH=$EASYBUILD_PREFIX/modules/all:$MODULEPATH
module load EasyBuild
eb --version
---------cut----------------

As far as I understand the error stems from here:
------------systemtools.py------------
def get_shared_lib_ext():
    """Determine extention for shared libraries

    Linux: 'so', Darwin: 'dylib'
    """
    shared_lib_exts = {
        LINUX: 'so',
        DARWIN: 'dylib'
    }

    os_type = get_os_type()
    if os_type in shared_lib_exts.keys():
        return shared_lib_exts[os_type]
    else:
        raise SystemToolsException("Unable to determine extention for shared
libraries,"
                                   "unknown system name: %s" % os_type)
-------------------------------------------
As the error message suggests, 'CYGWIN_NT-5.1' (or, more generally, 'CYGWIN*')
should be
present in shared_lib_exts array.

Is it possible to overcome this difficulty ?

With my best wishes,
Tymofii

Reply via email to