Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481514 - app-portage/gentoolkit- AttributeError running equery files under Python 3 with ROOT set
Summary: app-portage/gentoolkit- AttributeError running equery files under ...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2013-08-18 05:22 UTC by Dustin C. Hatch
Modified: 2013-08-18 05:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Dustin C. Hatch 2013-08-18 05:22:29 UTC
When running `equery files <spec>` with an alternate ROOT and Python 3 as the default interpreter, the following exception is raised:

Traceback (most recent call last):
  File "/usr/bin/equery", line 38, in <module>
  File "/usr/lib64/python3.2/site-packages/gentoolkit/equery/", line 354, in main
  File "/usr/lib64/python3.2/site-packages/gentoolkit/equery/", line 315, in main
    contents = pkg.parsed_contents()
  File "/usr/lib64/python3.2/site-packages/gentoolkit/", line 356, in parsed_contents
    for key, val in self.dblink.getcontents().iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

This does not occur if ROOT is unset or ROOT=/. It also does not occur if Python 2 is the default interpreter.

Reproducible: Always

Steps to Reproduce:
1. eselect python set python3.2
2. ROOT=/some/other/root equery files somepkg