Bug 729454

Summary: gnucash python bindings broken on x86_64
Product: [Fedora] Fedora Reporter: Felix Schwarz <fschwarz>
Component: gnucashAssignee: Bill Nottingham <notting>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: notting, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gnucash-2.4.7-4.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-19 04:43:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Felix Schwarz 2011-08-09 19:29:41 UTC
Gnucash Python files on x86_64 are put into /usr/lib while the binary Python module _gnucash_core_c.so is in /usr/lib64. Therefore I can't import the gnucash module:

$ python
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00) 
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gnucash
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/gnucash/__init__.py", line 6, in <module>
    from gnucash_core import *
  File "/usr/lib/python2.7/site-packages/gnucash/gnucash_core.py", line 31, in <module>
    import gnucash_core_c
  File "/usr/lib/python2.7/site-packages/gnucash/gnucash_core_c.py", line 25, in <module>
    _gnucash_core_c = swig_import_helper()
  File "/usr/lib/python2.7/site-packages/gnucash/gnucash_core_c.py", line 17, in swig_import_helper
    import _gnucash_core_c
ImportError: No module named _gnucash_core_c

Comment 1 Bill Nottingham 2011-08-09 21:42:46 UTC
Fixed in -2.

Comment 2 Fedora Update System 2011-10-11 16:53:29 UTC
gnucash-2.4.7-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/gnucash-2.4.7-3.fc16

Comment 3 Fedora Update System 2011-10-13 18:12:05 UTC
Package gnucash-2.4.7-3.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gnucash-2.4.7-3.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14258
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-10-19 04:43:13 UTC
gnucash-2.4.7-4.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.