(gtk3) 'module' object has no attribute 'AVAILABLE'

Bug #1518065 reported by Egmont Koblinger
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Low
Unassigned

Bug Description

Upon startup, this is printed once to stderr:

PluginRegistry::load_plugins: Importing plugin __init__.py failed: 'module' object has no attribute 'AVAILABLE'

Related branches

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

Probably down to the plugin loader trying to load the __init__.py as a plugin. Needs to be ignored. __init__.py added by Bryce as a fix for a distcheck error.

Changed in terminator:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

Yup, it's that simple.

             for plugin in files:
                 pluginpath = os.path.join(plugindir, plugin)
- if os.path.isfile(pluginpath) and plugin[-3:] == '.py':
+ if os.path.isfile(pluginpath) and plugin[-3:] == '.py' and plugin != '__init__.py':
                     dbg('PluginRegistry::load_plugins: Importing plugin %s' %
                         plugin)

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :
Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

Fixed in gtk3 rev. 1626. Sourced from someone else with a slightly more Pythonic fix.

Changed in terminator:
status: Triaged → Fix Committed
Changed in terminator:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.