Description of problem: The package hamlib-python needs _Hamlib.so file, which is in the package hamlib, but this file is located in /usr/lib, instead of being located in the /usr/lib/python2.5/site-packages. So after you install a package hamlib and hamlib-python is not possible in the Python script execute command "import Hamlib". This ends with an ImportError exception message: No module named _Hamlib. Manually copying the file /usr/lib/_Hamlib.so to directory /usr/lib/python2.5 can be done Hamlib import command. Version-Release number of selected component (if applicable): hamlib-1.2.7-2.fc10.i386.rpm hamlib-python-1.2.7-2.fc10.i386.rpm How reproducible: Allways Steps to Reproduce: 1. yum install hamlib hamlib-python 2. start terminal and python interpreter 3. enter command import Hamlib Actual results: ImportError: no module named _Hamlib Expected results: correctly imported Hamlib python extension (binding) and _Hamlib.so place in package hamlib-python. Additional info: As I see, same things may occur in hamlib-1.2.8 vhich is in updates testing.
Correction: Manually copying the file /usr/lib/_Hamlib.so to directory /usr/lib/python2.5/site-packages can be done Hamlib import command.
Do the _Hamlib.so file need to be at both places? Can this be solved by a symlink?
(In reply to comment #2) > Do the _Hamlib.so file need to be at both places? Can this be solved by a > symlink? No, not required on both places. This file should be placed only in /usr/lib/python2.5/site-packages . So, i perform some research today, and creating a symlink is now the best way how to correct this. While this is not the best solution, but for the right solution (as I think) it is necessary to carry out some research/hack of the Makefiles. I have a myself edited spec file which adds a python package postinstall and postuninstall things to create/delete symlink, and patch for original one is in attachment.
Created attachment 334931 [details] patch for hamlib spec file This file adds post and postun oneliners for creating/removing symbolic link of _Hamlib.so file into Python's site-packages dir.
hamlib-1.2.8-3.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/hamlib-1.2.8-3.fc10
hamlib-1.2.8-3.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update hamlib'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-3239
hamlib-1.2.8-3.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.