Hi all,
I often get AssertionErrors (assert(rule not in self.rulectx) in _apply_rule in lang.py) that interfere and I don't want why.
I have this problem in 1.4.0, but had the same experience in 1.3.0.
There is a widget called Vessel:
vessel.kv:
#:kivy 1.0
<Vessel>:
canvas:
Rectangle:
source: [an image]
pos: self.pos
size: self.size
vessel.py:
from kivy.properties import StringProperty, NumericProperty, BooleanProperty, ObjectProperty
from kivy.lang import Builder
from kivy.uix.widget import Widget
Builder.load_file('widgets/vessel.kv')
class Vessel(Widget):
maneuverindicator = NumericProperty(0, allownone=True)
....
raimflag = BooleanProperty(False, allownone=True)
When the code breaks on assert(rule not in self.rulectx), then
rule is <ParserRule name='<Vessel>'>
and self.rulectx is {<ParserRule name='<Vessel>'>: {'hdl': [], 'set': [], 'ids': {'root': <widgets.vessel.Vessel object at 0x116900ba8>}}}
Is there anyone that knows what could be problem here? What could I verify to find more about this issue?
Thanks in advance,
Benny