Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I install python-augeas on a "minimal server" Ubuntu installation of 12.04 LTS, it throws the following import error when I try to use it:

# python

Python 2.7.3 (default, Aug  1 2012, 05:14:39) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import augeas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/", line 55, in <module>
    class Augeas(object):
  File "/usr/lib/python2.7/dist-packages/", line 61, in Augeas
    for _v in ("%d.%d", "%d%d")])
  File "/usr/lib/python2.7/dist-packages/", line 52, in _dlopen
    raise ImportError("Unable to import lib%s!" % args[0])
ImportError: Unable to import libpython2.7!

If I manually install libpython2.7, the problem goes away. Looking at the package info for python-augeas, there is no dependency listed for libpython2.7. Am I missing something or should this be in place? Should I file a bug report?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.