<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11977</bug_id>
          
          <creation_ts>2017-08-24 19:51:17 +0000</creation_ts>
          <short_desc>bitbake -g -u taskexp &lt;target&gt; raises an import exception</short_desc>
          <delta_ts>2021-01-05 19:43:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="New Comer Bugs">newcomer</assigned_to>
          <cc>dakhouya</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mshah</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>stephano</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>76144</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-08-24 19:51:17 +0000</bug_when>
    <thetext>When launching the bitbake -g -u taskexp to show task dependencies at UI, the following stack trace shows at command line in my opensuse box.

$ bitbake -g -u taskexp core-image-minimal
Traceback (most recent call last):
  File &quot;/home/lsandov1/poky-testing/poky/bitbake/bin/bitbake&quot;, line 48, in &lt;module&gt;
    cookerdata.CookerConfiguration()))
  File &quot;/home/lsandov1/poky-testing/poky/bitbake/lib/bb/main.py&quot;, line 372, in bitbake_main
    server_connection, ui_module = setup_bitbake(configParams, configuration)
  File &quot;/home/lsandov1/poky-testing/poky/bitbake/lib/bb/main.py&quot;, line 413, in setup_bitbake
    ui_module = import_extension_module(bb.ui, configParams.ui, &apos;main&apos;)
  File &quot;/home/lsandov1/poky-testing/poky/bitbake/lib/bb/main.py&quot;, line 106, in import_extension_module
    module = __import__(pkg.__name__, fromlist=[modulename])
  File &quot;/home/lsandov1/poky-testing/poky/bitbake/lib/bb/ui/taskexp.py&quot;, line 21, in &lt;module&gt;
    import gi
ImportError: No module named &apos;gi&apos;
DEBUG: Removed the following variables from the environment: OLDPWD, MINICOM, LS_COLORS, XDG_RUNTIME_DIR, gopher_proxy, LESS, XKEYSYMDB, LESSKEY, HISTSIZE, LS_OPTIONS, HOSTTYPE, SSH_CLIENT, LESS_ADVANCED_PREPROCESSOR, XDG_DATA_DIRS, LIBGL_DEBUG, BUILDDIR, MORE, XDG_CONFIG_DIRS, SSH_SENDS_LOCALE, MACHTYPE, G_FILENAME_ENCODING, FROM_HEADER, HOST, MANPATH, SOCKS5_SERVER, PYTHONSTARTUP, HOSTNAME, SSH_CONNECTION, CSHEDIT, MAIL, OSTYPE, PAGER, SHLVL, LESSCLOSE, INPUTRC, GPG_TTY, SOCKS_PROXY, XNLSPATH, PROFILEREAD, socks_proxy, XDG_SESSION_ID, SSH_TTY, CPU, LESSOPEN, NNTPSERVER, LANG, COLORTERM, _, G_BROKEN_FILENAMES, CONFIG_SITE
lsandov1@yctb05:~/poky-testing/poky/build&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76230</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-08-29 14:55:42 +0000</bug_when>
    <thetext>ImportError: No module named &apos;gi&apos;

You need python-gobject (and GTK+3).

I&apos;m 99% sure this is documented but I guess a nice message would be better than just throwing an exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78578</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-12-07 14:48:54 +0000</bug_when>
    <thetext>We should print a message to suggest which modules are missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87672</commentid>
    <comment_count>3</comment_count>
    <who name="David Khouya">dakhouya</who>
    <bug_when>2020-07-01 10:03:14 +0000</bug_when>
    <thetext>Patch was submitted on bitbake-devel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88849</commentid>
    <comment_count>4</comment_count>
    <who name="">mshah</who>
    <bug_when>2021-01-04 06:20:50 +0000</bug_when>
    <thetext>Is this still an open issue? I tried throwing the command &quot;bitbake -g -u taskexp core-image-minimal&quot; but worked fine for me. Tested on branch &quot;dunfell&quot; -&gt; commit hash 16d477fa5d2bec49ccd83ede8249431d30e0c80c.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88866</commentid>
    <comment_count>5</comment_count>
    <who name="David Khouya">dakhouya</who>
    <bug_when>2021-01-05 18:55:26 +0000</bug_when>
    <thetext>This issue has been fixed with the following commits:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=64f2361c5b88118d9731ecd55faf034e215588d2
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=31c4731c8e14f372b8df9b46b2bf179187796573</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88867</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-01-05 19:43:23 +0000</bug_when>
    <thetext>As per David&apos;s comment. Thanks everyone!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>