From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] scripts/oe-selftest: avoid deprecated imp.reload function
Date: Thu, 04 May 2017 12:26:43 -0500 [thread overview]
Message-ID: <1493918803.1761.53.camel@linux.intel.com> (raw)
In-Reply-To: <CAJTo0LbVxh8udLko405=dm9G1o20rXpSsP_ohWcB3SpvEYo5PQ@mail.gmail.com>
On Thu, 2017-05-04 at 17:41 +0100, Burton, Ross wrote:
>
> On 2 May 2017 at 18:37, <leonardo.sandoval.gonzalez@linux.intel.com>
> wrote:
> As explained in [1], the module function imp.reload has been
> deprecated for
> importlib.reload, so use the latter instead.
>
>
> $ oe-selftest -r package
> 2017-05-04 17:40:10,352 - selftest - INFO - Running bitbake -e to get
> BBPATH
> Traceback (most recent call last):
> File "/home/ross/Yocto/poky/scripts/oe-selftest", line 806, in
> <module>
> ret = main()
> File "/home/ross/Yocto/poky/scripts/oe-selftest", line 500, in main
> importlib.reload(oeqa.selftest)
> UnboundLocalError: local variable 'importlib' referenced before
> assignment
>
I saw the error also. The strange thing is that the import importlib has
global scope but the interpreter does not have it visible at the 'main'
function. any idea? will send a v2 once I figure out the latter.
Leo
>
> Ross
next prev parent reply other threads:[~2017-05-04 17:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-02 17:37 [PATCH] scripts/oe-selftest: avoid deprecated imp.reload function leonardo.sandoval.gonzalez
2017-05-04 16:41 ` Burton, Ross
2017-05-04 17:26 ` Leonardo Sandoval [this message]
2017-05-05 9:57 ` Burton, Ross
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=1493918803.1761.53.camel@linux.intel.com \
--to=leonardo.sandoval.gonzalez@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.com \
/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.