Tried to run yocto-bsp script using a recent version of python3 and got the following error: humberto@humberto-Gazelle-Pro:~/poky/build$ python3 --version Python 3.4.3 humberto@humberto-Gazelle-Pro:~/poky/build$ yocto-bsp Traceback (most recent call last): File "/home/humberto/poky/scripts/yocto-bsp", line 150, in <module> ret = main() File "/home/humberto/poky/scripts/yocto-bsp", line 137, in main start_logging(loglevel) File "/home/humberto/poky/scripts/yocto-bsp", line 121, in start_logging logging.basicConfig(filname = 'yocto-bsp.log', filemode = 'w', level=loglevel) File "/usr/lib/python3.4/logging/__init__.py", line 1760, in basicConfig raise ValueError('Unrecognised argument(s): %s' % keys) ValueError: Unrecognised argument(s): filemode, filname This didn't happen in python 2.7 or earlier versions of python3. I think the problem here is with the "filname" variable, after checking the history I realized this name has always been wrong but the logging system never complained (and apparently no one noticed the file name not showing up in the logging). I think it was this change https://hg.python.org/cpython/rev/2bc3e839a3a3/ the one to introduce the check that broke this part.
Checked on 3.4.2 and the exception is not thrown. Checked 3.4.4 also and the exception is there. Seems like this issue only appears with Python >= 3.4.3 Will send the patch in a moment.
Sent patch http://lists.openembedded.org/pipermail/openembedded-core/2016-June/122645.html
Already in master http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0aa5c2759901c6e1976eb34ce1d83a584a90f5a6
Working as expected now Validated on : commit 7b9e1f5ad8a427356f2ec516b1718138a7d3c64e ************************************** poky/build$ yocto-bsp Usage: Create a customized Yocto BSP layer. usage: yocto-bsp [--version] [--help] COMMAND [ARGS] Current 'yocto-bsp' commands are: create Create a new Yocto BSP list List available values for options and BSP properties See 'yocto-bsp help COMMAND' for more information on a specific command. Options: --version show program's version number and exit -h, --help show this help message and exit -D, --debug output debug information