Bug 521194

Summary: Python: 'import libsvm' doesn't work
Product: [Fedora] Fedora Reporter: Tadej Janež <tadej.j>
Component: libsvmAssignee: Ding-Yi Chen <dchen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: dchen, simon.marache
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.89-3.fc10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-30 01:33:24 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 Tadej Janež 2009-09-04 08:58:28 UTC
Description of problem:
After installing libsvm-python, I tried to import the libsvm library in a python script and it gave me the following error:
>>> import libsvm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named libsvm


Version-Release number of selected component (if applicable):
libsvm-2.89-1.fc10.i386
libsvm-python-2.89-1.fc10.i386

How reproducible:
Always.

Steps to Reproduce:
1. Install libsvm-python-2.89-1.fc10.i386
2. Run python
3. Enter import libsvm

Additional info:
I think the /usr/lib/python2.5/site-packages/libsvm/ directory should contain a __init__.py file.

Comment 1 Ding-Yi Chen 2009-09-11 03:39:14 UTC
Hi,

I myself do not use python much. What would you expect to put in __init__.py, or just empty file will do?

Regards,
Ding-Yi Chen

Comment 2 simon.marache 2009-09-11 12:52:50 UTC
An empty file will be enough.

If there is no such __init__.py file (even empty), python does not consider that the directory can be imported.

regards
Simon Marache

Comment 3 Fedora Update System 2009-09-19 00:04:46 UTC
libsvm-2.89-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 libsvm'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-9695

Comment 4 Fedora Update System 2009-09-19 00:18:20 UTC
libsvm-2.89-3.fc11 has been pushed to the Fedora 11 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 libsvm'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-9792

Comment 5 Fedora Update System 2009-09-30 01:33:17 UTC
libsvm-2.89-3.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2009-09-30 01:34:20 UTC
libsvm-2.89-3.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.