[bitbake-devel] clearcase and npm fetch2 modules depending on python3-distutils

Martin Jansa martin.jansa at gmail.com
Fri Apr 13 09:38:49 UTC 2018


Hi,

this is just a FYI, but these 2 fetches are using spawn from distutils:

lib/bb/fetch2/clearcase.py:from   distutils import spawn
lib/bb/fetch2/npm.py:from   distutils import spawn

and with latest Ubuntu 18.08 in minimalistic docker container I got
following error after rebuilding the container today:

$ bitbake zlib
Traceback (most recent call last):
  File "/OE/build/oe-core/bitbake/bin/bitbake", line 31, in <module>
    import bb
  File "/OE/build/oe-core/bitbake/lib/bb/__init__.py", line 79, in <module>
    from bb import fetch2 as fetch
  File "/OE/build/oe-core/bitbake/lib/bb/fetch2/__init__.py", line 1855, in
<module>
    from . import clearcase
  File "/OE/build/oe-core/bitbake/lib/bb/fetch2/clearcase.py", line 72, in
<module>
    from   distutils import spawn
ImportError: cannot import name 'spawn'

it's caused by python3-distutils missing in the container, something lost
the dependency on it, so it isn't installed by default anymore, you need to
add it to your Dockerfile or whatever you're using.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20180413/5d643aca/attachment-0002.html>


More information about the bitbake-devel mailing list