Uploaded image for project: 'Software Support'
  1. Software Support
  2. SUP-409

gribapi rpm packages and correct python package structure

XMLWordPrintable

    • Academic

      Hello,

      We are trying to install the ECMWF gribapi as RPMs on RedHat Enterprise 6.0, x86_64. We are particularly interested in the python bindings for use with the UK Met Office's Iris software.

      Using the RPMs provided at [1] we have found 2 problems:

      1. The grib_api-python rpm does not create the correct python package structure. It is missing the file /usr/lib64/python2.6/site-packages/grib_api/_init_.py. Without this file the directory is not considered by Python to be a package and cannot be imported.

      2. The Python package hierarchy does not match what Iris expects. Iris expects "gribapi" to be a top level package, i.e. importable as "import gribapi" whereas, even with the fix mentioned above, you would need to import as "from grib_api import gribapi" or similar. In fact your examples [2] also expect "gribapi" to be a top-level package.

      Can you advise us whether these rpms are wrong or if I have miss-understood the configuration required.

      I notice these rpms are marked as experimental. We are currently building rpms for many components in our analysis environment so would be happy to help debug the rpm build process or create our own rpm from the source distribution. Can you share the rpm SPEC files or SRPMs?

      Many thanks,
      Stephen Pascoe.

      [1] https://software.ecmwf.int/wiki/display/GRIB/Red+Hat+Enterprise+Linux+6.0+x86_64
      [2] https://software.ecmwf.int/wiki/display/GRIB/Python


      Stephen Pascoe +44 (0)1235 445980
      Centre of Environmental Data Archival
      STFC Rutherford Appleton Laboratory, Harwell Oxford, Didcot OX11 0QX, UK


      Scanned by iCritical.

            usv Daniel Varela Santoalla
            stephen.pascoe@stfc.ac.uk Stephen Pascoe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: