Wind River Support Network

HomeDefectsLINCD-9845
Fixed

LINCD-9845 : python3-modules: import hypothesis failed with ZCU102

Created: Jul 19, 2022    Updated: Oct 12, 2022
Resolved Date: Sep 18, 2022
Found In Version: 10.22.29.0, 10.22.33.0
Fix Version: 10.22.41.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description


root@xilinx-zynqmp:~# pydoc3 modules | grep hypothesis

(pydoc3:12068): Gtk-CRITICAL **: 02:49:31.844: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
/usr/lib64/python3.10/pkgutil.py:92: UserWarning: The numpy.array_api submodule is still experimental. See NEP 47.
_import_(info.name)
/usr/lib64/python3.10/site-packages/distutils_hack/init_.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
/usr/lib64/python3.10/site-packages/wx/lib/pubsub/_init_.py:23: wxPyDeprecationWarning: wx.lib.pubsub has been deprecated, plese migrate your code to use pypubsub, available on PyPI.
warnings.warn('wx.lib.pubsub has been deprecated, plese migrate your '
/usr/lib64/python3.10/pkgutil.py:92: VisibleDeprecationWarning: zmq.eventloop.minitornado is deprecated in pyzmq 14.0 and will be removed.
Install tornado itself to use zmq with the tornado IOLoop.

_import_(info.name)
_hypothesis_pytestplugin compileall networkx ssl
abc hypothesis queue zipfile
root@xilinx-zynqmp:~#
root@xilinx-zynqmp:~# python3
Python 3.10.5 (main, Jun 6 2022, 12:05:50) [GCC 12.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from hypothesis import given
Traceback (most recent call last):
File "/usr/lib64/python3.10/site-packages/hypothesis/internal/compat.py", line 18, in <module>
BaseExceptionGroup = BaseExceptionGroup
NameError: name 'BaseExceptionGroup' is not defined. Did you mean: 'BaseException'?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.10/site-packages/hypothesis/_init_.py", line 19, in <module>
from hypothesis._settings import HealthCheck, Phase, Verbosity, settings
File "/usr/lib64/python3.10/site-packages/hypothesis/_settings.py", line 32, in <module>
from hypothesis.internal.reflection import get_pretty_function_description
File "/usr/lib64/python3.10/site-packages/hypothesis/internal/reflection.py", line 28, in <module>
from hypothesis.internal.compat import is_typed_named_tuple, update_code_location
File "/usr/lib64/python3.10/site-packages/hypothesis/internal/compat.py", line 21, in <module>
from exceptiongroup import (
ModuleNotFoundError: No module named 'exceptiongroup'
>>>

Steps to Reproduce

1. Setup project with feature/ptest
--machine xilinx-zynqmp --dl-layers --distro wrlinux-cgl --templates feature/xfce feature/LAMP feature/aws feature/azure feature/grpc feature/ipv6 feature/krb5 feature/lttng feature/mariadb feature/nfsd feature/ntp feature/opencv feature/package-management feature/pam-faillock feature/python-tkinter feature/snmp feature/software-entropy feature/sysklogd feature/system-stats feature/target-toolchain feature/tcpslice feature/usrmerge feature/xfce --layers meta-filesystems meta-iot-cloud meta-security-compliance meta-virtualization --dl-layers

2. . ./environment-setup-x86_64-wrlinuxsdk-linux
. ./oe-init-build-env build_test

3 bitbake wrlinux-image-cgl
Live chat
Online