I just found out that whenever this error is thrown it means that there is no kernel config file in the specified layer (here it was meta-yocto-bsp). Therefore the configuration options can't be listed. I think it's very irritating that in such cases a traceback is printed.