All of lore.kernel.org
 help / color / mirror / Atom feed
* NotImplementedError from sanity check
@ 2017-08-16 14:42 Vuille, Martin (Martin)
  2017-08-16 15:46 ` Joshua Lock
  2017-08-16 15:52 ` Leonardo Sandoval
  0 siblings, 2 replies; 3+ messages in thread
From: Vuille, Martin (Martin) @ 2017-08-16 14:42 UTC (permalink / raw)
  To: yocto

In the process of transitioning from Fido to Morty.

In the past, when sanity detected a version mismatch with some of
the configuration files (e.g., local.conf, bblayers.conf,) an error message
was displayed.

Now, we see the below, which I do not find very informative or helpful.

Is that a bug or intentional? Is there a way to get back the error message?

MV

ERROR: Execution of event handler 'config_reparse_eventhandler' failed
Traceback (most recent call last):
  File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 1006, in config_reparse_eventhandler(e=<bb.event.ConfigParsed object at 0x7fc99cba1b00>):
     python config_reparse_eventhandler() {
    >    sanity_check_conffiles(e.data)
     }
  File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 568, in sanity_check_conffiles(d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
                 except NotImplementedError as e:
    >                bb.fatal(e)
                 d.setVar("BB_INVALIDCONF", True)
  File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/__init__.py", line 103, in fatal:
     def fatal(*args, **kwargs):
    >    mainlogger.critical(''.join(args), extra=kwargs)
         raise BBHandledException()
TypeError: sequence item 0: expected str instance, NotImplementedError found

ERROR: Error parsing configuration files
Traceback (most recent call last):
  File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/event.py", line 124, in fire_class_handlers(event=<bb.event.ConfigParsed object at 0x7fc99cba1b00>, d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
                         continue
    >            execute_handler(name, handler, event, d)

  File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/event.py", line 96, in execute_handler(name='config_reparse_eventhandler', handler=<function config_reparse_eventhandler at 0x7fc99cbd4a60>, event=<bb.event.ConfigParsed object at 0x7fc99cba1b00>, d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
         try:
    >        ret = handler(event)
         except (bb.parse.SkipRecipe, bb.BBHandledException):
  File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 1006, in config_reparse_eventhandler(e=<bb.event.ConfigParsed object at 0x7fc99cba1b00>):
     python config_reparse_eventhandler() {
    >    sanity_check_conffiles(e.data)
     }
  File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 568, in sanity_check_conffiles(d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
                 except NotImplementedError as e:
    >                bb.fatal(e)
                 d.setVar("BB_INVALIDCONF", True)
  File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/__init__.py", line 103, in fatal:
     def fatal(*args, **kwargs):
    >    mainlogger.critical(''.join(args), extra=kwargs)
         raise BBHandledException()
TypeError: sequence item 0: expected str instance, NotImplementedError found


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: NotImplementedError from sanity check
  2017-08-16 14:42 NotImplementedError from sanity check Vuille, Martin (Martin)
@ 2017-08-16 15:46 ` Joshua Lock
  2017-08-16 15:52 ` Leonardo Sandoval
  1 sibling, 0 replies; 3+ messages in thread
From: Joshua Lock @ 2017-08-16 15:46 UTC (permalink / raw)
  To: yocto, akuster808



On 16/08/17 15:42, Vuille, Martin (Martin) wrote:
> In the process of transitioning from Fido to Morty.
> 
> In the past, when sanity detected a version mismatch with some of
> the configuration files (e.g., local.conf, bblayers.conf,) an error message
> was displayed.
> 
> Now, we see the below, which I do not find very informative or helpful.
> 
> Is that a bug or intentional? Is there a way to get back the error message?

It's a bug, newer branches have a fix:

http://git.yoctoproject.org/clean/cgit.cgi/poky/commit/?id=62b521722ae72bc87d599719b400dab771154fa7
http://git.openembedded.org/openembedded-core/commit/?id=a675b2c89e477af088faee9b3be96eae19a85f0b

It would be nice to propose that patch as a backport to morty.

Thanks,

Joshua

> MV
> 
> ERROR: Execution of event handler 'config_reparse_eventhandler' failed
> Traceback (most recent call last):
>    File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 1006, in config_reparse_eventhandler(e=<bb.event.ConfigParsed object at 0x7fc99cba1b00>):
>       python config_reparse_eventhandler() {
>      >    sanity_check_conffiles(e.data)
>       }
>    File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 568, in sanity_check_conffiles(d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
>                   except NotImplementedError as e:
>      >                bb.fatal(e)
>                   d.setVar("BB_INVALIDCONF", True)
>    File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/__init__.py", line 103, in fatal:
>       def fatal(*args, **kwargs):
>      >    mainlogger.critical(''.join(args), extra=kwargs)
>           raise BBHandledException()
> TypeError: sequence item 0: expected str instance, NotImplementedError found
> 
> ERROR: Error parsing configuration files
> Traceback (most recent call last):
>    File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/event.py", line 124, in fire_class_handlers(event=<bb.event.ConfigParsed object at 0x7fc99cba1b00>, d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
>                           continue
>      >            execute_handler(name, handler, event, d)
> 
>    File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/event.py", line 96, in execute_handler(name='config_reparse_eventhandler', handler=<function config_reparse_eventhandler at 0x7fc99cbd4a60>, event=<bb.event.ConfigParsed object at 0x7fc99cba1b00>, d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
>           try:
>      >        ret = handler(event)
>           except (bb.parse.SkipRecipe, bb.BBHandledException):
>    File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 1006, in config_reparse_eventhandler(e=<bb.event.ConfigParsed object at 0x7fc99cba1b00>):
>       python config_reparse_eventhandler() {
>      >    sanity_check_conffiles(e.data)
>       }
>    File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 568, in sanity_check_conffiles(d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
>                   except NotImplementedError as e:
>      >                bb.fatal(e)
>                   d.setVar("BB_INVALIDCONF", True)
>    File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/__init__.py", line 103, in fatal:
>       def fatal(*args, **kwargs):
>      >    mainlogger.critical(''.join(args), extra=kwargs)
>           raise BBHandledException()
> TypeError: sequence item 0: expected str instance, NotImplementedError found
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: NotImplementedError from sanity check
  2017-08-16 14:42 NotImplementedError from sanity check Vuille, Martin (Martin)
  2017-08-16 15:46 ` Joshua Lock
@ 2017-08-16 15:52 ` Leonardo Sandoval
  1 sibling, 0 replies; 3+ messages in thread
From: Leonardo Sandoval @ 2017-08-16 15:52 UTC (permalink / raw)
  To: Vuille, Martin (Martin); +Cc: yocto



On Wed, 2017-08-16 at 14:42 +0000, Vuille, Martin (Martin) wrote:
> In the process of transitioning from Fido to Morty.
> 
> In the past, when sanity detected a version mismatch with some of
> the configuration files (e.g., local.conf, bblayers.conf,) an error message
> was displayed.
> 
> Now, we see the below, which I do not find very informative or helpful.
> 
> Is that a bug or intentional? Is there a way to get back the error message?
> 

are you reusing the same build folder? if yes, try a separate folder
instead.




> MV
> 
> ERROR: Execution of event handler 'config_reparse_eventhandler' failed
> Traceback (most recent call last):
>   File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 1006, in config_reparse_eventhandler(e=<bb.event.ConfigParsed object at 0x7fc99cba1b00>):
>      python config_reparse_eventhandler() {
>     >    sanity_check_conffiles(e.data)
>      }
>   File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 568, in sanity_check_conffiles(d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
>                  except NotImplementedError as e:
>     >                bb.fatal(e)
>                  d.setVar("BB_INVALIDCONF", True)
>   File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/__init__.py", line 103, in fatal:
>      def fatal(*args, **kwargs):
>     >    mainlogger.critical(''.join(args), extra=kwargs)
>          raise BBHandledException()
> TypeError: sequence item 0: expected str instance, NotImplementedError found
> 
> ERROR: Error parsing configuration files
> Traceback (most recent call last):
>   File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/event.py", line 124, in fire_class_handlers(event=<bb.event.ConfigParsed object at 0x7fc99cba1b00>, d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
>                          continue
>     >            execute_handler(name, handler, event, d)
> 
>   File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/event.py", line 96, in execute_handler(name='config_reparse_eventhandler', handler=<function config_reparse_eventhandler at 0x7fc99cbd4a60>, event=<bb.event.ConfigParsed object at 0x7fc99cba1b00>, d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
>          try:
>     >        ret = handler(event)
>          except (bb.parse.SkipRecipe, bb.BBHandledException):
>   File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 1006, in config_reparse_eventhandler(e=<bb.event.ConfigParsed object at 0x7fc99cba1b00>):
>      python config_reparse_eventhandler() {
>     >    sanity_check_conffiles(e.data)
>      }
>   File "/home/platform/Workspace/dspgbase/poky/meta/classes/sanity.bbclass", line 568, in sanity_check_conffiles(d=<bb.data_smart.DataSmart object at 0x7fc99d00f198>):
>                  except NotImplementedError as e:
>     >                bb.fatal(e)
>                  d.setVar("BB_INVALIDCONF", True)
>   File "/home/platform/Workspace/dspgbase/poky/bitbake/lib/bb/__init__.py", line 103, in fatal:
>      def fatal(*args, **kwargs):
>     >    mainlogger.critical(''.join(args), extra=kwargs)
>          raise BBHandledException()
> TypeError: sequence item 0: expected str instance, NotImplementedError found




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-16 15:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-16 14:42 NotImplementedError from sanity check Vuille, Martin (Martin)
2017-08-16 15:46 ` Joshua Lock
2017-08-16 15:52 ` Leonardo Sandoval

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.