Wind River Support Network

HomeDefectsLINCD-8796
Fixed

LINCD-8796 : Fails to import python module wx.svg.SVGimage

Created: Apr 9, 2022    Updated: May 25, 2022
Resolved Date: May 22, 2022
Found In Version: 10.22.17.0
Fix Version: 10.22.21.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

It fails to import wx.svg.SVGimage with following command:

$ python3
>>> from wx.svg import SVGimage
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.10/site-packages/wx/svg/_init_.py", line 87, in <module>
from ._nanosvg import *
ImportError: /usr/lib64/python3.10/site-packages/wx/svg/_nanosvg.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send
>>>

Steps to Reproduce

1) setup.sh 
--machine intel-x86-64 --dl-layers --template feature/xfce

2) source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env

3) cat >> conf/local.conf <<EOF
IMAGE_INSTALL:append = " python3-wxgtk4"
EOF

4) bitbake wrlinux-image-std

5) boot the target 

6) run command per problem description
Live chat
Online