All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: Ashish <ashishm@mvista.com>, poky@lists.yoctoproject.org
Subject: Re: [poky] How to add python debugger "epdb" module in recipe
Date: Mon, 20 Jul 2020 08:43:00 +0100	[thread overview]
Message-ID: <2d1228d9f3c582a0aa958df7130b1c14a3bc11ec.camel@linuxfoundation.org> (raw)
In-Reply-To: <LMzk.1595145312278580104.QGYU@lists.yoctoproject.org>

On Sun, 2020-07-19 at 00:55 -0700, Ashish wrote:
> Hi All , 
> 
> - I am trying to add epdb " https://pypi.org/project/epdb/ " in the
> recipe by 
>   adding   import epdb; epdb.set_trace()  in  the recipe . 
>   But getting error of  Exception: ModuleNotFoundError: No module
> named 'epdb'
> 
> File: '/home/ashish/project/../layers/poky/meta/recipes-
> devtools/python/python3_3.8.2.bb', lineno: 221, function:
> __anon_288__home_ashish_edge_gateway_yocto_layers_forked_opencgx_rasb
> errypi_opencgx_rasberrypi_project____layers_poky_meta_recipes_devtool
> s_python_python3_3_8_2_bb
>      0217:    # This python changes the datastore based on the
> contents of a file, so mark
>      0218:    # that dependency.
>      0219:    bb.parse.mark_dependency(d, filename)
>      0220:
>  *** 0221:    import epdb; epdb.set_trace();
>      0222:
>      0223:    with open(filename) as manifest_file:
>      0224:        manifest_str =  manifest_file.read()
>      0225:        json_start = manifest_str.find('# EOC') + 6
> Exception: ModuleNotFoundError: No module named 'epdb'
> 
> Any pointers on same would be helpful , 

I'd guess its running python3-native at that point and python3-native
probably doesn't have the epdb module enabled or installed?

Cheers,

Richard


  reply	other threads:[~2020-07-20  7:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-19  7:55 How to add python debugger "epdb" module in recipe Ashish
2020-07-20  7:43 ` Richard Purdie [this message]
2020-07-20  8:07   ` [poky] " Ashish
2020-07-20  9:40     ` Richard Purdie
2020-07-20 10:15       ` Ashish
2020-07-21 14:58         ` Ashish

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=2d1228d9f3c582a0aa958df7130b1c14a3bc11ec.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=ashishm@mvista.com \
    --cc=poky@lists.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.