Skip to contentSkip to conversation

creating recipe for python package pydantic_core, pyside2, shiboken2 #kernel #kirkstone #yocto

DISCUSSION MUTHUSAMY Naveenkumar 1 participant 1 message Sep 17, 2024

lore
Share & tools
lore
#0 lore raw

Hi all,

I am trying to add the below python packages to the Yocto image which we are creating for out custom board. I am able to see that packages is successfully placed in /usr/lib.python3.10/site-packages.

The issue we are facing is that, when we try to import the pyside2 using import pyside2, we get the import error

File "<stdin>", line 1, in <module>

File "/usr/lib/python3.10/site-packages/pyside2/__init__.py", line 107, in <module>

_setupQtDirectories()

File "/usr/lib/python3.10/site-packages/pyside2/__init__.py", line 58, in _setupQtDirectories

import shiboken2

File "/usr/lib/python3.10/site-packages/shiboken2/__init__.py", line 27, in <module>

from .shiboken2 import *

ImportError: /usr/lib/python3.10/site-packages/shiboken2/shiboken2.abi3.so: cannot open shared object file: No such file or directory

And also pydantic_core

import pydantic_core

File "/usr/lib/python3.10/site-packages/pydantic_core/__init__.py", line 6, in <module>

from ._pydantic_core import (

ModuleNotFoundError: No module named 'pydantic_core._pydantic_core'

I have added my recipe files with this. Kindly check and let me know the issues and anything wrong