Wind River Support Network

HomeDefectsLINCD-7246
Fixed

LINCD-7246 : Python3: import module 'nose' fail

Created: Nov 2, 2021    Updated: Nov 21, 2021
Resolved Date: Nov 7, 2021
Found In Version: 10.21.45.0
Fix Version: 10.21.45.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

$ setup.sh --machine intel-x86-64 --dl-layers --distro wrlinux
$ bitbake wrlinux-image-std

On target:
root@intel-x86-64:~# python3
Python 3.10.0 (default, Oct 4 2021, 17:55:55) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.10/site-packages/nose/_init_.py", line 1, in <module>
from nose.core import collector, main, run, run_exit, runmodule
File "/usr/lib64/python3.10/site-packages/nose/core.py", line 153
print "%s version %s" % (os.path.basename(sys.argv[0]), _version_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
>>>

Steps to Reproduce

$ ./setup.sh --machine intel-x86-64 --dl-layers --distro wrlinux --accept-eula yes --dl-layers
$ source environment-setup-x86_64-wrlinuxsdk-linux
$ source oe-init-build-env build
$ vim conf/local.conf
IMAGE_INSTALL:append = "python3-nose"
$ bitbake wrlinux-image-std

On target, try to import python3 module 'nose'
Live chat
Online