[Bug 1216655] Re: Calling InitSystem() or InitConfig() raises AttributeError

Tyler Hicks tyhicks at canonical.com
Mon Aug 26 02:12:16 UTC 2013


I'm not sure if anything important in Ubuntu still uses those
interfaces. The regression test suite (lp:qa-regression-testing) used by
the Ubuntu Security team does, which caused unexpected test failures. I
didn't see a mention in the changelog of these interfaces being removed,
so thought it would be best to file a bug.

I'll be happy to convert our test suite over to the new interfaces and
mark this bug as invalid. It looks like InitSystem() turned into
init_system() and InitConfig() turned into init_config(), correct?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/1216655

Title:
  Calling InitSystem() or InitConfig() raises AttributeError

Status in “python-apt” package in Ubuntu:
  New

Bug description:
  Starting with python-apt 0.8.9.1ubuntu1 in Saucy, calling InitSystem()
  and InitConfig() fails:

  $ python -c 'import apt_pkg; apt_pkg.InitSystem();'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
  AttributeError: 'module' object has no attribute 'InitSystem'

  Downgrading to 0.8.8.2ubuntu1 results in the expected behavior:

  $ python -c 'import apt_pkg; apt_pkg.InitSystem();'
  $ echo $?
  0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1216655/+subscriptions




More information about the foundations-bugs mailing list