Wind River Support Network


LIN8-3409 : mozjs: configure fails 'ImportError: cannot import name _unicode'

Created: Apr 26, 2016    Updated: Dec 3, 2018
Resolved Date: Apr 27, 2016
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Userspace


Attempting to build mozjs on Ubu 15.04 we observe the following error:

    | Traceback (most recent call last):
    |   File "./config.status", line 9, in <module>
    |     from ConfigStatus import config_status
    |   File "/build/bitbake_build/tmp/work/corei7-64-wrs-linux/mozjs/17.0.0-r0/mozjs17.0.0/js/src/build/", line 11, in <module>
    |     import sys, re, os, posixpath, ntpath
    |   File "/usr/lib/python2.7/", line 15, in <module>
    |     from genericpath import _unicode
    | ImportError: cannot import name _unicode
    | WARNING: exit code 1 from a shell command.
    | ERROR: Function failed: do_configure (log file is located at /build//bitbake_build/tmp/work/corei7-64-wrs-linux/mozjs/17.0.0-r0/temp/do_configure/log.do_configure.1056

Steps to Reproduce

Configure and build OVP8 (not sure if there is a base rootfs which builds mozjs)

wrlinux-8/wrlinux/configure \
   --enable-board=intel-x86-64 \
  --enable-addons=wr-ovp \


Other Downloads

Live chat