Bug 521194 - Python: 'import libsvm' doesn't work
Summary: Python: 'import libsvm' doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libsvm
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ding-Yi Chen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-04 08:58 UTC by Tadej Janež
Modified: 2009-09-30 01:34 UTC (History)
2 users (show)

Fixed In Version: 2.89-3.fc10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-30 01:33:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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