Re: Troubleshooting python import check on python-pyside2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 12, 2022 at 2:20 PM Sérgio Basto <sergio@xxxxxxxxxx> wrote:
On Mon, 2022-09-12 at 10:08 -0500, Richard Shaw wrote:
> For some reason the build is failing the import check on F35 only.
>
> + /usr/bin/python3 -s /usr/lib/rpm/redhat/import_all_modules.py
> PySide2
> Check import: PySide2
> PySide2/__init__.py: Unable to import shiboken2 from
> /builddir/build/BUILDROOT/python-pyside2-5.15.2.1-
> 1.fc35.x86_64/usr/lib64/python3.10/site-packages,
> /builddir/build/BUILDROOT/python-pyside2-5.15.2.1-
> 1.fc35.x86_64/usr/lib/python3.10/site-packages,
> /usr/lib64/python310.zip, /usr/lib64/python3.10,
> /usr/lib64/python3.10/lib-dynload, /usr/lib64/python3.10/site-
> packages, /usr/lib/python3.10/site-packages,
> /builddir/build/BUILDROOT/python-pyside2-5.15.2.1-
> 1.fc35.x86_64/usr/lib/python3.10/site-packages
> Traceback (most recent call last):
>   File "/usr/lib/rpm/redhat/import_all_modules.py", line 171, in
> <module>
>     main()
>   File "/usr/lib/rpm/redhat/import_all_modules.py", line 167, in main
>     import_modules(modules)
>   File "/usr/lib/rpm/redhat/import_all_modules.py", line 100, in
> import_modules
>     importlib.import_module(module)
>   File "/usr/lib64/python3.10/importlib/__init__.py", line 126, in
> import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 1006, in
> _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 883, in
> exec_module
>   File "<frozen importlib._bootstrap>", line 241, in
> _call_with_frames_removed
>   File "/builddir/build/BUILDROOT/python-pyside2-5.15.2.1-
> 1.fc35.x86_64/usr/lib64/python3.10/site-
> packages/PySide2/__init__.py", line 107, in <module>
>     _setupQtDirectories()
>   File "/builddir/build/BUILDROOT/python-pyside2-5.15.2.1-
> 1.fc35.x86_64/usr/lib64/python3.10/site-
> packages/PySide2/__init__.py", line 58, in _setupQtDirectories
>     import shiboken2
>   File "/builddir/build/BUILDROOT/python-pyside2-5.15.2.1-
> 1.fc35.x86_64/usr/lib64/python3.10/site-
> packages/shiboken2/__init__.py", line 27, in <module>
>     from .shiboken2 import *
> ImportError: libshiboken2.cpython-310-x86_64-linux-gnu.so.5.15:
> cannot open shared object file: No such file or directory
>
> Long story short, the libshiboken2 python library is not in the
> search path but I have no idea why this only happens on F35 or how to
> fix it...

works for me,  with python3-pyside2-5.15.2-5.fc35.x86_64 , you are
using 5.15.2.1-1.fc35.x86_64  ?

rpm -q --requires python3-pyside2 | grep shiboken
libshiboken2.cpython-310-x86_64-linux-gnu.so.5.15()(64bit)

I'm trying to rebuild what's currently in dist-git for Fedora 35. I can confirm if I install into a mock chroot it works fine, but it's failing during %check...

%check
# Lots of tests fail currently
#{__python3} testrunner.py test
# Do basic import test instead
%py3_check_import PySide2
%py3_check_import shiboken2

I believe only F35 has the issue but I'm doing a local mock build of f36 right now..


Thanks,
Richard
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux