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.

Trying to use this fails with:

Traceback (most recent call last):
  File "/home/hugo/.cache/pypoetry/virtualenvs/screenman-YK8rCbov-py3.9/lib/python3.9/site-packages/qtpy/__init__.py", line 204, in <module>
    from PySide import __version__ as PYSIDE_VERSION  # analysis:ignore
  File "/home/hugo/.cache/pypoetry/virtualenvs/screenman-YK8rCbov-py3.9/lib/python3.9/site-packages/shiboken6/files.dir/shibokensupport/__feature__.py", line 140, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hugo/workspace/Hugo/screenman/test.py", line 130, in <module>
    widget = MainWindow()
  File "/home/hugo/workspace/Hugo/screenman/test.py", line 80, in __init__
    name = "/home/hugo/screenshots/2020-12-12T00:28:26,928755128+01:00.png"
  File "/home/hugo/workspace/Hugo/screenman/test.py", line 58, in __init__
    self.addAction(SaveAction(self))
  File "/home/hugo/workspace/Hugo/screenman/test.py", line 31, in __init__
    import qtawesome as qta
  File "/home/hugo/.cache/pypoetry/virtualenvs/screenman-YK8rCbov-py3.9/lib/python3.9/site-packages/shiboken6/files.dir/shibokensupport/__feature__.py", line 140, in _import
    return original_import(name, *args, **kwargs)
  File "/home/hugo/.cache/pypoetry/virtualenvs/screenman-YK8rCbov-py3.9/lib/python3.9/site-packages/qtawesome/__init__.py", line 20, in <module>
    from qtpy import QtCore, QtWidgets, QtGui
  File "/home/hugo/.cache/pypoetry/virtualenvs/screenman-YK8rCbov-py3.9/lib/python3.9/site-packages/shiboken6/files.dir/shibokensupport/__feature__.py", line 140, in _import
    return original_import(name, *args, **kwargs)
  File "/home/hugo/.cache/pypoetry/virtualenvs/screenman-YK8rCbov-py3.9/lib/python3.9/site-packages/qtpy/__init__.py", line 210, in <module>
    raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found

The latest release of PySide is packaged as PySide6, so this fails. Any change of adding support for it?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
WhyNotHugocommented, Dec 16, 2020
1reaction
WhyNotHugocommented, Dec 16, 2020

@stonebig Pyzo seems to be something entirely different to qtawesome.

@ccordoba12 Interesting! I wasn’t aware that qtpy was also a spyder project! You guys are doing lots of great stuff!

I’ll follow that PR to keep in the loop, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

PySide6 - PyPI
PySide6. Introduction. Important: for Qt5 compatibility, check PySide2. PySide6 is the official Python module from the Qt for Python project, which provides ...
Read more >
PySide6.QtPrintSupport - Qt for Python
The Qt Print Support module provides extensive cross-platform support for printing. Using the printing systems on each platform, Qt applications can print ...
Read more >
PySide6 Tutorial 2022, Create Python GUIs with Qt
Both versions are almost completely compatible aside from imports, and lack of support for some advanced modules in Qt6. PyQt6 also makes some ......
Read more >
PySide - Wikipedia
PySide supports Qt 4 · PySide2 supports Qt 5 · PySide6 supports Qt 6.
Read more >
Visual Studio Code Extension Qt for Python - GitHub
A Visual Studio Code extension for PySide6, PySide2, PyQt6 and PyQt5. Highlight Features. All features support multi-root workspace project. QML. Syntax ...
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