<?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>14593</bug_id>
          
          <creation_ts>2021-10-07 14:48:37 +0000</creation_ts>
          <short_desc>DeprecationWarning with &quot;import collections&quot;</short_desc>
          <delta_ts>2022-06-29 09:39:07 +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>BitBake</product>
          <component>bitbake</component>
          <version>4.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>4.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>changqing.li</cc>
    
    <cc>mingli.yu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tim.orling</cc>
    
    <cc>tvgamblin</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>91687</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-10-07 14:48:37 +0000</bug_when>
    <thetext>Greetings

We have now a warning running bitbake:

$ bitbake core-image-minimal
/usr/lib/python3/dist-packages/html5lib/_trie/_base.py:3: DeprecationWarning: Using or importing the ABCs from &apos;collections&apos; instead of from &apos;collections.abc&apos; is deprecated since Python 3.3, and in 3.10 it will stop working
  from collections import Mapping
Loading cache: 100% |#################################################################################################################################################################################################| Time: 0:00:00
Loaded 1469 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

A few updates to the Python code seem to be needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91690</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-10-07 15:06:30 +0000</bug_when>
    <thetext>A host / distro specific warning so medium not from bitbake we believe.
Can this be suppressed on only offending hosts?

Can we avoid this warning somehow? Why are we using html5lib ?

May be due to an out of date version of &apos;beautiful soup&apos;, try updating?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91691</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2021-10-07 15:08:46 +0000</bug_when>
    <thetext>Since it is dist-packages, that tells me this is a Debian/Ubuntu host.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91694</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-10-07 16:58:45 +0000</bug_when>
    <thetext>Add Grace and Sandy since I think there&apos;s a WR bug for this as well that one of you folks own.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91724</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-10-13 08:55:34 +0000</bug_when>
    <thetext>We use bs4 included in bitbake) which seems to import html5lib from the host&apos;s python and the issue is in the host&apos;s html5lib. This seems to occur on ubuntu 20.04 LTS, at least for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93606</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2022-06-29 09:39:07 +0000</bug_when>
    <thetext>Closing the bug as I no longer have it in Ubuntu 22.04.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>