Bug 1098516

Summary: python-grib_api: module not installed in a standard path
Product: [Fedora] Fedora Reporter: Emanuele Di Giacomo <emanuele>
Component: grib_apiAssignee: Jeroen van Meeuwen <vanmeeuwen+fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dbranchini, lnie, orion, pertusus, quantum.analyst, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: grib_api-1.12.3-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-27 10:10:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Emanuele Di Giacomo 2014-05-16 12:17:52 UTC
Description of problem:
The Python module "gribapi" cannot be imported, because the module is not installed in a standard path.  

Version-Release number of selected component (if applicable):
1.12.0-3

How reproducible:
Every time.

Steps to Reproduce:
1. python -c "import gribapi"

Actual results:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named gribapi

Additional info:
A temporary workaround is to add he installation directory to the environment variable PYTHONPATH (`export PYTHONPATH="$PYTHONPATH:/usr/lib64/python2.7/site-packages/grib_api:/usr/lib/python2.7/site-packages/grib_api"`).

Comment 1 Elliott Sales de Andrade 2014-07-23 23:37:03 UTC
This appears to be the way upstream installs it, though I don't know why, since it doesn't match their examples.

Comment 2 Elliott Sales de Andrade 2014-07-23 23:47:51 UTC
Here is an upstream report about it: https://software.ecmwf.int/issues/browse/SUP-409 Marked as "resolved" because they have some invisible bug report somewhere else, though not really.

But there is a patch available here: http://proj.badc.rl.ac.uk/cedaservices/ticket/30

Comment 3 Elliott Sales de Andrade 2014-07-24 06:10:40 UTC
I think maybe the CEDA patch is a bit specific to them, but this should work:
https://github.com/QuLogic/rpmbuild-specs/blob/master/SOURCES/grib_api-python.patch

Comment 4 Fedora Update System 2014-08-08 04:59:31 UTC
grib_api-1.12.3-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/grib_api-1.12.3-2.fc20

Comment 5 lnie 2014-08-08 08:53:52 UTC
grib_api-1.12.3-2.fc20 works

Comment 6 Fedora Update System 2014-08-09 07:36:17 UTC
Package grib_api-1.12.3-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing grib_api-1.12.3-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-9310/grib_api-1.12.3-2.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2014-09-27 10:10:57 UTC
grib_api-1.12.3-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.