Provide example for apt_pkg.config.find("APT::Architecture")
Bug #194374 reported by
Onkar Shinde
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-apt
In one of the example programs (/usr/share/
But trying to use this fails with following error
Traceback (most recent call last):
File "arch.py", line 5, in <module>
print apt_pkg.
AttributeError: 'module' object has no attribute 'Architecture'
The api 'apt_pkg.
Example program:
#!/usr/bin/python
import apt_pkg
apt_pkg.init()
print "Find api: " + apt_pkg.
print "Direct arch value: " + apt_pkg.
Related branches
summary: |
- [hardy] API 'apt_pkg.Architecture' not present + Provide example for apt_pkg.config.find("APT::Architecture") |
Changed in python-apt (Ubuntu): | |
assignee: | Michael Vogt (mvo) → nobody |
tags: | added: bitesize |
To post a comment you must log in.
Thanks for your bugreport.
This example was removed from the python-apt package. Is that sufficient or would you want to have a api addition to get the architecure easily?