o2r-project/o2r-loader

o2r-meta as container

nuest opened this issue · 0 comments

nuest commented

Must run o2r-meta as a container, see https://github.com/o2r-project/o2r-meta#using-docker, because alpine does not have support for netCDF:

Executing busybox-1.26.2-r5.trigger
OK: 343 MiB in 65 packages
Cloning into '/meta'...
 ---> 78acaf38cb74
Removing intermediate container 6eed3b204118
Step 6/26 : WORKDIR /meta
 ---> aeb9408cd88e
Removing intermediate container 31cf48da189b
Step 7/26 : RUN pip3 install -r requirements.txt
 ---> Running in d241f8f26b1b
Collecting PyYAML (from -r requirements.txt (line 1))
  Downloading PyYAML-3.12.tar.gz (253kB)
Collecting dicttoxml (from -r requirements.txt (line 2))
  Downloading dicttoxml-1.7.4.tar.gz
Collecting guess_language-spirit (from -r requirements.txt (line 3))
  Downloading guess_language-spirit-0.5.3.tar.bz2 (81kB)
Collecting jsonschema (from -r requirements.txt (line 4))
  Downloading jsonschema-2.6.0-py2.py3-none-any.whl
Collecting lxml (from -r requirements.txt (line 5))
  Downloading lxml-4.1.0.tar.gz (4.2MB)
Collecting pygeoj (from -r requirements.txt (line 6))
  Downloading PyGeoj-0.22.zip
Collecting python-dateutil (from -r requirements.txt (line 7))
  Downloading python_dateutil-2.6.1-py2.py3-none-any.whl (194kB)
Collecting requests (from -r requirements.txt (line 8))
  Downloading requests-2.18.4-py2.py3-none-any.whl (88kB)
Collecting netCDF4 (from -r requirements.txt (line 9))
  Downloading netCDF4-1.3.0.tar.gz (542kB)
    Complete output from command python setup.py egg_info:
    Package hdf5 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `hdf5.pc'
    to the PKG_CONFIG_PATH environment variable
    Package 'hdf5', required by 'virtual:world', not found
    reading from setup.cfg...

        HDF5_DIR environment variable not set, checking some standard locations ..
    checking /root ...
    checking /usr/local ...
    checking /sw ...
    checking /opt ...
    checking /opt/local ...
    checking /usr ...
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-w_1d6jjm/netCDF4/setup.py", line 358, in <module>
        _populate_hdf5_info(dirstosearch, inc_dirs, libs, lib_dirs)
      File "/tmp/pip-build-w_1d6jjm/netCDF4/setup.py", line 306, in _populate_hdf5_info
        raise ValueError('did not find HDF5 headers')
    ValueError: did not find HDF5 headers

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-w_1d6jjm/netCDF4/
The command '/bin/sh -c pip3 install -r requirements.txt' returned a non-zero code: 1

See also https://hub.docker.com/r/o2rproject/o2r-loader/builds/bo3f9hf6cuuvf2jxvw8hsmh/

  • implement for extraction
  • implement for brokering loader must not broker