From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
To: nitish jha <nitishjha16@gmail.com>
Cc: poky@yoctoproject.org
Subject: Re: [extendable-sdk] patch to fix devtool error
Date: Tue, 21 Mar 2017 10:48:11 -0600 [thread overview]
Message-ID: <1490114891.3261.177.camel@linux.intel.com> (raw)
In-Reply-To: <CABh+fobNXQK8NrDzwKRaOs4rWixEUJA3Bi6QL=we+XS6AsUjhA@mail.gmail.com>
which branch/commit are you working on? which commands do you execute?
seems that the module pathname is missing and python is not finding it.
By the way, read the poky/README to see how to send the patch to the
mailing list.
Leo
On Tue, 2017-03-21 at 14:16 +0100, nitish jha wrote:
> Hello All,
>
>
> While building extendable sdk i found error related to devtool
>
>
> ERROR: Error executing a python function
>
>
> The stack trace of python calls that resulted in this
> exception/failure was:
> File: 'copy_buildsystem', lineno: 148, function: <module>
> 0144:
> sstate_out, d,
> 0145:
> fixedlsbstring)
> 0146:
> 0147:
> *** 0148:copy_buildsystem(d)
> 0149:
> File: 'copy_buildsystem', lineno: 59, function: copy_buildsystem
> 0055: config.write(f)
> 0056:
> 0057: # Create a layer for new recipes / appends
> 0058: bbpath = d.getVar('BBPATH', True)
> *** 0059: bb.process.run(['devtool', '--bbpath', bbpath,
> '--basepath', baseoutpath, 'create-workspace', '--create-only',
> os.path.join(baseoutpath, 'workspace')])
> 0060:
> 0061: # Create bblayers.conf
> 0062: bb.utils.mkdirhier(baseoutpath + '/conf')
> 0063: with open(baseoutpath + '/conf/bblayers.conf', 'w') as
> f:
> File: '/home/testuser/CAS/poky/bitbake/lib/bb/process.py', lineno:
> 155, function: run
> 0151: else:
> 0152: stdout, stderr = pipe.communicate(input)
> 0153:
> 0154: if pipe.returncode != 0:
> *** 0155: raise ExecutionError(cmd, pipe.returncode, stdout,
> stderr)
> 0156: return stdout, stderr
> Exception: ExecutionError: Execution of 'devtool --bbpath ' failed
> with exit code 1:
> Traceback (most recent call last):
> File "/home/testuser/CAS/poky/scripts/devtool", line 287, in
> <module>
> ret = main()
> File "/home/testuser/CAS/poky/scripts/devtool", line 251, in main
> scriptutils.load_plugins(logger, plugins, pluginpath)
> File "/home/testuser/CAS/poky/scripts/lib/scriptutils.py", line 57,
> in load_plugins
> plugin = load_plugin(name)
> File "/home/testuser/CAS/poky/scripts/lib/scriptutils.py", line 48,
> in load_plugin
> return imp.load_module(name, fp, pathname, description)
> File "/home/testuser/CAS/poky/scripts/lib/devtool/upgrade.py", line
> 30, in <module>
> import recipeutils
> ImportError: No module named recipeutils
>
>
>
>
> ERROR: Function failed: copy_buildsystem
>
>
> I found that lib path where devtool expects recipeutils is not correct
> so I appended recipeutils path to lib directory path of devtool
>
>
> patch details are:
>
>
>
>
> diff --git a/scripts/devtool b/scripts/devtool
> index 9ac6e79..715d045 100755
> --- a/scripts/devtool
> +++ b/scripts/devtool
> @@ -35,6 +35,9 @@ context = None
> scripts_path = os.path.dirname(os.path.realpath(__file__))
> lib_path = scripts_path + '/lib'
> sys.path = sys.path + [lib_path]
> +
> +oe_path = os.path.abspath(os.path.join(scripts_path, "..", "meta",
> "lib"))
> +sys.path.append(oe_path)
> from devtool import DevtoolError, setup_tinfoil
> import scriptutils
> import argparse_oe
> --
>
>
> Can somebody test and update it in poky.
>
>
> Thanks and Regards
> --
> Nitish Jha
>
>
>
>
> --
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
next prev parent reply other threads:[~2017-03-21 16:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-21 13:16 [extendable-sdk] patch to fix devtool error nitish jha
2017-03-21 16:48 ` Leonardo Sandoval [this message]
2017-03-26 17:01 ` nitish jha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1490114891.3261.177.camel@linux.intel.com \
--to=leonardo.sandoval.gonzalez@linux.intel.com \
--cc=nitishjha16@gmail.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.