question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatible with pyside 5.11 (shiboken2 missing)

See original GitHub issue

it looks like the pyside 5.11 (at least the one distributed on pypi) is lacking shiboken2, and a simple test errors after #340:

conda create -n test python
conda activate test
pip install pytest pytest-qt pyside2==5.11
pytest test_example.py

where test_example.py is:

def test_something(qtbot):
    pass
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/Users/talley/miniconda3/envs/test/lib/python3.9/site-packages/_pytest/main.py", line 265, in wrap_session
INTERNALERROR>     config._do_configure()
INTERNALERROR>   File "/Users/talley/miniconda3/envs/test/lib/python3.9/site-packages/_pytest/config/__init__.py", line 982, in _do_configure
INTERNALERROR>     self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR>   File "/Users/talley/miniconda3/envs/test/lib/python3.9/site-packages/pluggy/hooks.py", line 308, in call_historic
INTERNALERROR>     res = self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "/Users/talley/miniconda3/envs/test/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/Users/talley/miniconda3/envs/test/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR>   File "/Users/talley/miniconda3/envs/test/lib/python3.9/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "/Users/talley/miniconda3/envs/test/lib/python3.9/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/Users/talley/miniconda3/envs/test/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/Users/talley/miniconda3/envs/test/lib/python3.9/site-packages/pytestqt/plugin.py", line 203, in pytest_configure
INTERNALERROR>     qt_api.set_qt_api(config.getini("qt_api"))
INTERNALERROR>   File "/Users/talley/miniconda3/envs/test/lib/python3.9/site-packages/pytestqt/qt_compat.py", line 135, in set_qt_api
INTERNALERROR>     import shiboken2
INTERNALERROR> ModuleNotFoundError: No module named 'shiboken2'

from the looks of https://github.com/pytest-dev/pytest-qt/pull/340#issuecomment-805339916, pyside 5.11 should still be supported after #340?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
The-Compilercommented, Jun 13, 2021

Yep, we had a test which was marked as PyQt5 only (due to needing sip.isdeleted), but the test actually worked for all Qt APIs, so that’s why I added isdeleted to qt_compat.

I wasn’t aware about the situation with shiboken2 and PySide2 5.11 - since we only need it for the test and there are other ways to check what this test needs to check, let’s get rid of it - see #374.

0reactions
tlambert03commented, Jun 13, 2021

thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

DLL load failed while importing shiboken2 · Issue #138 - GitHub
I guess this is an incompatibility issue between PySide 5.11.1 and Python 3.8. Can you try using Python 3.7 when creating the virtual ......
Read more >
Pip-Install Issue PySide2 on Windows10: shiboken2 DLL ...
Error: .shiboken DLL missing This works without problems with PySide2 Version ... I searched using: c:\dir shiboken2.dll /s /p With PySide 5.11 installed, ......
Read more >
1634658 – Qt5 python bindings (official) Pyside2 is not available
A %build section that includes shiboken2 module to site-packages. ... icons in PyQt and PySide applications Pyside2 would be "Python bindings for Qt5"....
Read more >
Pyside2 5.12 AttributeError: 'shiboken2.libshiboken.VoidPtr ...
VoidPtr' object has no attribute 'typeInfo' TreeView ... I have recently upgraded from PySide2 5.11.2 to PySide2 5.12. My TreeView model has ...
Read more >
qt.py Changelog - PyUp.io
New mechanism for warning about members that are missing and supposed to be missing, currently only `QtGui.QMatrix`. If you discover or know about...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found