cancel
Showing results for 
Search instead for 
Did you mean: 

pyqt5 compile error on stm32mp1

asadullah4571
Associate III

Hi 
i tried to compile python3-pyqt5 , in my stm32mp157f-dk2 board but failed to compile. 
in my local.conf file i added this line but again fail.

IMAGE_INSTALL:append = " python3-pyqt5"
Note:  i want any browser just i want to check that URL is working or not with GUI .
please check the logs and please let me know where i am missing. 

bitbake st-image-qt
NOTE: Started PRServer with DBfile: /home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/cache/prserv.sqlite3, Address: 127.0.0.1:41977, PID: 4196
Loading cache: 100% |###########################################################################################################| Time: 0:00:00
Loaded 4738 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################| Time: 0:00:02
Parsing of 2990 .bb files complete (2987 cached, 3 parsed). 4741 targets, 536 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.4.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-ostl-linux-gnueabi"
MACHINE = "stm32mp1"
DISTRO = "openstlinux-weston"
DISTRO_VERSION = "4.2.4-snapshot-20241014"
TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU = "hard"
DISTRO_CODENAME = "mickledore"
ACCEPT_EULA_stm32mp1 = "1"
GCCVERSION = "12.%"
PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"
meta-python
meta-oe
meta-st-x-linux-qt = "main:f4c4d38033715ee54e8051969b5394cf1f3fcfae"
meta-qt5 = "scarthgap:eb828418264a49b8d00035cb3d7b12fcea3be801"
meta-gnome
meta-multimedia
meta-networking
meta-webserver
meta-st-stm32mp
meta-st-openstlinux
meta = "main:f4c4d38033715ee54e8051969b5394cf1f3fcfae"
workspace = "main:e177135751c84af691325ba02ae3005485e4345f"

WARNING: /home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/layers/meta-st/meta-st-stm32mp/recipes-kernel/linux/linux-stm32mp_6.1.bb:do_compile is tainted from a forced run
WARNING: /home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/layers/meta-st/meta-st-stm32mp/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.8.bb:do_deploy is tainted from a forced run
WARNING: /home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/layers/meta-st/meta-st-stm32mp/recipes-bsp/u-boot/u-boot-stm32mp_2022.10.bb:do_deploy is tainted from a forced run
Initialising tasks: 100% |######################################################################################################| Time: 0:00:04
Sstate summary: Wanted 438 Local 1 Mirrors 0 Missed 437 Current 3066 (0% match, 87% complete)
NOTE: Executing Tasks

ERROR: python3-pyqt-builder-native-1.16.0-r0 do_compile: ExecutionError('/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/temp/run.do_compile.5065', 1, None, None)
ERROR: Logfile of failure stored in: /home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/temp/log.do_compile.5065
Log data follows:
| DEBUG: Executing shell function do_compile
| * Getting build dependencies for wheel...
| Traceback (most recent call last):
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
| main()
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
| json_out['return_val'] = hook(**hook_input['kwargs'])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
| return hook(config_settings)
| ^^^^^^^^^^^^^^^^^^^^^
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
| return self._get_build_requires(config_settings, requirements=['wheel'])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
| self.run_setup()
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
| exec(code, locals())
| File "<string>", line 1, in <module>
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 108, in setup
| return distutils.core.setup(**attrs)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 147, in setup
| _setup_distribution = dist = klass(attrs)
| ^^^^^^^^^^^^
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/dist.py", line 488, in __init__
| _Distribution.__init__(
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 283, in __init__
| self.finalize_options()
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/dist.py", line 912, in finalize_options
| ep(self)
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools_scm/integration.py", line 123, in infer_version
| config = Configuration.from_file(dist_name=dist_name)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/python3-pyqt-builder-native/1.16.0-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools_scm/config.py", line 216, in from_file
| return cls(relative_to=name, **args)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| TypeError: Configuration.__init__() got an unexpected keyword argument 'version_file'
|
| ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/layers/meta-qt5/recipes-python/pyqt5/python3-pyqt-builder-native_1.16.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 8523 tasks of which 8513 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds

Summary: 1 task failed:
/home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/layers/meta-qt5/recipes-python/pyqt5/python3-pyqt-builder-native_1.16.0.bb:do_compile
Summary: There were 3 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code.
md@pc:~/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1$

 

2 REPLIES 2
PPAGE.13
ST Employee

You can look at 

https://community.st.com/t5/stm32-mpus-embedded-software-and/pyqt-gui-application/m-p/674670

 

And also possible alternative:

https://pythonassets.com/posts/simple-qt-web-browser

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @PPAGE.13 

Thanks for your reply,

Actually i followed the steps as you suggested, Compilation successful but when i  launch the application browser  white page open and error come " qtnetwork error 99". 
then i open the terminal, and did this command 
board> ping www.google.com
it network is working fine, but the in qt browser it shows "qtnetwork error 99".

Thanks