Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481514 - app-portage/gentoolkit-0.3.0.7-r2: AttributeError running equery files under Python 3 with ROOT set
Summary: app-portage/gentoolkit-0.3.0.7-r2: AttributeError running equery files under ...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments

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>
    equery.main(sys.argv)
  File "/usr/lib64/python3.2/site-packages/gentoolkit/equery/__init__.py", line 354, in main
    loaded_module.main(module_args)
  File "/usr/lib64/python3.2/site-packages/gentoolkit/equery/files.py", line 315, in main
    contents = pkg.parsed_contents()
  File "/usr/lib64/python3.2/site-packages/gentoolkit/package.py", 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