[Bug 1216655] Re: Calling InitSystem() or InitConfig() raises AttributeError
Julian Andres Klode
juliank at ubuntu.com
Mon Aug 26 09:50:33 UTC 2013
Not only InitSystem and InitConfig were replaced. Everything was
converted to PEP-8-style names, and all apt_pkg.Get*() were converted to
classes. There is a tool at /usr/share/python-apt/migrate-0.8.py that
finds problems (It might produce false positives, but should find
everything that needs to be ported).
The short porting guide is at:
http://apt.alioth.debian.org/python-apt-doc/whatsnew/0.7.100.html
#porting-your-applications-to-the-new-python-apt-api
and the table of old Get*() functions and the classes that replace them
is at:
http://apt.alioth.debian.org/python-apt-doc/whatsnew/0.7.100.html
#real-classes-in-apt-pkg
You can also find this document in a local installation of python-apt-
doc.
--
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