Bug 521194
Summary: | Python: 'import libsvm' doesn't work | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tadej Janež <tadej.j> |
Component: | libsvm | Assignee: | Ding-Yi Chen <dchen> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 10 | CC: | 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: |
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 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 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 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 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. 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. |
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.