ImportError: No module named libavg

Bug #174396 reported by Tero Karvinen
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libavg (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: python-libavg

LibAvg can't be imported, so it can't be used at all.

$ sudo aptitude install python-libavg
$ python -c "import libavg"
... ImportError: No module named libavg

$ PYTHONPATH=/usr/share/pycentral/python-libavg/site-packages/libavg python -c "import libavg"
... ImportError: No module named libavg
$ PYTHONPATH=/usr/lib/python2.5/site-packages/libavg/ python -c "import libavg"
... ImportError: No module named libavg

I also tried following "Getting Started" from Libavg Wiki to the letter, and the troubleshooting instructions for importerror. https://www.libavg.de/wiki/index.php/Getting_Started

Revision history for this message
Michael Bienia (geser) wrote :

Try importing avg instead of libavg:

$ python
Python 2.5.1 (r251:54863, Oct 5 2007, 13:50:07)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import avg
>>> avg
<module 'avg' from '/usr/lib/python2.5/site-packages/libavg/avg.so'>
>>>

Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

Thanks Michael, "import avg" seems to work.

Someday I could register to libavg wiki and add this info to Getting Started.

Minimal.py from "Getting started" still dumps core, but it's probably a different problem.

Changed in libavg:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.