Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335620 - app-portage/porthole-0.6.1-r2 - File "/usr/lib64/python2.6/site-packages/porthole/backends/portagelib.py", line 711, in reset self.virtuals = self.settings.virtuals AttributeError: 'config' object has no attribute 'virtuals'
Summary: app-portage/porthole-0.6.1-r2 - File "/usr/lib64/python2.6/site-packages/port...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks:
 
Reported: 2010-09-02 01:29 UTC by Billy DeVincentis
Modified: 2010-09-03 00:11 UTC (History)
1 user (show)

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 Billy DeVincentis 2010-09-02 01:29:39 UTC
porthole -d ALL
Porthole: python version =  2.6.5 (release26-maint, Sep  1 2010, 17:40:23) 
[GCC 4.4.4]
importing installed modules
initializing utils.__init__.py
DEBUG: id initialized to  265334
UTILS: mydebug.id =  265334
starting main()
CONFIG: id initialized to  269012
CONFIGURATION: id initialized to  269197
PREFERENCES: id initialized to  286847
PREFERENCES: imported debug.id =  265334
PREFERENCES: DEFAULT VALUE: LANG = en
PREFERENCES: PortholePreferences; setting globals.LANG = en
PREFERENCES: DEFAULT VALUE: enable_archlist = False
PREFERENCES: PortholePreferences; setting globals.enable_archlist = False
PREFERENCES: DEFAULT VALUE: archlist = ['alpha', 'amd64', 'arm', 'hppa', 'ia64', 'mips', 'ppc', 'ppc64', 's390', 'sparc', 'x86']
PREFERENCES: PortholePreferences; setting globals.archlist = ['alpha', 'amd64', 'arm', 'hppa', 'ia64', 'mips', 'ppc', 'ppc64', 's390', 'sparc', 'x86']
PREFERENCES: DEFAULT VALUE: Sync = emerge --sync
PREFERENCES: PortholePreferences; setting globals.Sync = emerge --sync
PREFERENCES: DEFAULT VALUE: Sync_label = Sync
PREFERENCES: PortholePreferences; setting globals.Sync_label = Sync
PREFERENCES: DEFAULT VALUE: custom_browser_command = firefox %s
PREFERENCES: PortholePreferences; setting globals.custom_browser_command = firefox %s
PREFERENCES: DEFAULT VALUE: use_custom_browser = False
PREFERENCES: PortholePreferences; setting globals.use_custom_browser = False
PREFERENCES: DEFAULT VALUE: su = gksudo -g
PREFERENCES: PortholePreferences; setting globals.su = gksudo -g
PREFERENCES: PortholePreferences;  DATA_PATH = /usr/share/porthole/
PREFERENCES: PortholePreferences;  PACKAGE_DIR = /usr/lib64/python2.6/site-packages/porthole
PREFERENCES: PortholePreferences; AUTHORS = /usr/share/porthole/AUTHORS
PREFERENCES: PortholePreferences; PLUGIN_DIR = /usr/lib64/python2.6/site-packages/porthole/plugins/
PREFERENCES: PortholePreferences; setting plugins.active_list = []
BACKENDS: id initialized to  298326
PORTAGELIB: id initialized to  298830
STERMINAL: id initialized to  304744
VERSION_SORT: id initialized to  307238
PROPERTIES: id initialized to  309390
METADATA: id initialized to  309579
PORTAGELIB: imported portage-2.2 modules
PORTAGELIB: portage version = 2.2_rc72
PORTAGELIB: reset_globals();
PORTAGELIB: reset_world();
PORTAGELIB: Settings.reset_use_flags();
Traceback (most recent call last):
  File "/usr/bin/porthole-2.6", line 114, in <module>
    main()
  File "/usr/lib64/python2.6/site-packages/porthole/startup.py", line 165, in main
    backends.load(BACKEND) 
  File "/usr/lib64/python2.6/site-packages/porthole/backends/__init__.py", line 36, in load
    from porthole.backends import portagelib
  File "/usr/lib64/python2.6/site-packages/porthole/backends/portagelib.py", line 756, in <module>
    settings = PortageSettings()
  File "/usr/lib64/python2.6/site-packages/porthole/backends/portagelib.py", line 673, in __init__
    self.reset()
  File "/usr/lib64/python2.6/site-packages/porthole/backends/portagelib.py", line 711, in reset
    self.virtuals = self.settings.virtuals
AttributeError: 'config' object has no attribute 'virtuals'


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-09-02 20:40:01 UTC
Please post your `emerge --info' too.
Comment 2 Zac Medico gentoo-dev 2010-09-02 21:05:15 UTC
This due to the virtuals attribute being removed in recent portage-2.2_rc releases. Reassigning to dev-portage since I'll add it back with a deprecation warning. There's a getvirtuals() method that should be used to access this attribute.
Comment 4 Zac Medico gentoo-dev 2010-09-02 21:39:40 UTC
I've also added backwards compatibility for pmaskdict and punmaskdict attributes here, in case porthole or similar programs are using them:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1a5b8fb93bdd150b3e6525c1706e1ba0e34e15d9
Comment 5 Zac Medico gentoo-dev 2010-09-03 00:11:14 UTC
This is fixed in 2.2_rc74.