Create a class that looks like: addhandler my_test_handler Include the class, and the following error occurs: ERROR: Error parsing configuration files Traceback (most recent call last): File "/home/mhatle/git/oss/oe-core/bitbake/lib/bb/cookerdata.py", line 265, in CookerDataBuilder.parseBaseConfiguration(): bb.parse.init_parser(self.basedata) > self.data = self.parseConfigurationFiles(self.prefiles, self.postfiles) File "/home/mhatle/git/oss/oe-core/bitbake/lib/bb/cookerdata.py", line 360, in CookerDataBuilder.parseConfigurationFiles(prefiles=[], postfiles=[]): handlerfn = data.getVarFlag(var, "filename", False) > handlerln = int(data.getVarFlag(var, "lineno", False)) bb.event.register(var, data.getVar(var, False), (data.getVarFlag(var, "eventmask", True) or "").split(), handlerfn, handlerln) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' It would be better if bitbake reported "unable to find event handler 'my_test_handler'" or something like that.
Patch sent for review: https://patchwork.openembedded.org/patch/130609/
Fixed in: http://git.openembedded.org/bitbake/commit/?id=107c47c4e6de6a596cf1aeca5c18dbc1c5b44dc4