[Bf-committers] Python API breakage - squeaking wheels

Campbell Barton ideasman42 at gmail.com
Mon May 27 17:32:18 CEST 2013


>> [1] https://github.com/mattebb/3delightblender/blob/master/ui.py
>> bpy.utils.register_module(): failed to registering class <class
>> '3delightblender.ui.InlineRibPanel'>
>> Traceback (most recent call last):
>>   File "bin/blender.app/Contents/MacOS/2.67/scripts/modules/bpy/utils.py",
>> line 578, in register_module
>>     register_class(cls)
>> AttributeError: expected Panel, InlineRibPanel class to have an "draw"
>> attribute
>
> Quick reply about this python exception, the problem here is that you
> have a mix-in class that gets registered.
> InlineRibPanel, checked with 2.62 and it has the same behavior (quite
> sure its been this way for over a year).
>
> So fix is to change:
> class InlineRibPanel(CollectionPanel, bpy.types.Panel):
> to...
> class InlineRibPanel(CollectionPanel):


Got the 3delight addon loading up ok.
patch available here:
https://github.com/mattebb/3delightblender/pull/5

>From the looks of it pynodes and ui-list updates in blender were the
only significant api change that broke this.
(both intentional changes/breakages to the API).

-- 
- Campbell


More information about the Bf-committers mailing list