Bug 426436 - python binding for libgsf: "No module named _gsf"
Summary: python binding for libgsf: "No module named _gsf"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libgsf
Version: 7
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-20 23:34 UTC by Matt Wette
Modified: 2007-12-29 15:19 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-12-21 09:12:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
hackaround in .spec (1.77 KB, text/plain)
2007-12-29 15:19 UTC, Caolan McNamara
no flags Details

Description Matt Wette 2007-12-20 23:34:19 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.10) Gecko/20071128 Fedora/2.0.0.10-2.fc7 Firefox/2.0.0.10

Description of problem:
Simple python script using gsf fails.
The program occurs at "from gsf import *".
My guess is that this is x64_64 install issue.

Version-Release number of selected component (if applicable):
libgsf-1.14.3-4.fc7

How reproducible:
Always


Steps to Reproduce:
1. run python, type "import gsf"
2.
3.

Actual Results:
$ test1.py
Traceback (most recent call last):
  File "./test1.py", line 4, in <module>
    from gsf import *
  File "/usr/lib/python2.5/site-packages/gsf/__init__.py", line 8, in <module>
    from _gsf import *
ImportError: No module named _gsf


Expected Results:
no error messages

Additional info:
I noticed that the .py* files for gsf are installed in 
/usr/lib/python2.5/site-packages/gsf

but the *.so files for gsf are installed in 
/usr/lib64/python2.5/site-packages/gsf

After I copied the .py* files to /usr/lib64/.../gsf 
the error message went away.

I'm guessing the install script is not consistent with
how python is set up to work on x86_64 machines.

Comment 1 Caolan McNamara 2007-12-21 09:12:00 UTC
hmm, indeed. Fix checked in.

Comment 2 Matt Wette 2007-12-28 15:01:26 UTC
what is the fix? 

Comment 3 Caolan McNamara 2007-12-29 15:19:21 UTC
Created attachment 290526 [details]
hackaround in .spec


Note You need to log in before you can comment on or make changes to this bug.