Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QLabel broken with PySide 6.7.0 #547

Closed
bburan opened this issue Apr 12, 2024 · 4 comments
Closed

QLabel broken with PySide 6.7.0 #547

bburan opened this issue Apr 12, 2024 · 4 comments

Comments

@bburan
Copy link
Contributor

bburan commented Apr 12, 2024

A fresh checkout of enaml with pip install enaml[qt6-pyside] pulls in PySide 6.7.0. Running enaml-run enaml/examples/widgets/field.enaml gives the following stacktrace:

(test-enaml) C:\Users\bburan\projects\src\enaml\examples\widgets>enaml-run field.enaml
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\bburan\anaconda3\envs\test-enaml\Scripts\enaml-run.exe\__main__.py", line 7, in <module>
  File "C:\Users\bburan\projects\src\enaml\enaml\runner.py", line 69, in main
    window.show()
  File "C:\Users\bburan\projects\src\enaml\enaml\widgets\window.py", line 382, in show
    self.activate_proxy()
  File "C:\Users\bburan\projects\src\enaml\enaml\widgets\toolkit_object.py", line 213, in activate_proxy
    child.activate_proxy()
  File "C:\Users\bburan\projects\src\enaml\enaml\widgets\toolkit_object.py", line 213, in activate_proxy
    child.activate_proxy()
  File "C:\Users\bburan\projects\src\enaml\enaml\widgets\toolkit_object.py", line 210, in activate_proxy
    self.activate_top_down()
  File "C:\Users\bburan\projects\src\enaml\enaml\widgets\toolkit_object.py", line 226, in activate_top_down
    self.proxy.activate_top_down()
  File "C:\Users\bburan\projects\src\enaml\enaml\qt\qt_toolkit_object.py", line 73, in activate_top_down
    self.create_widget()
  File "C:\Users\bburan\projects\src\enaml\enaml\qt\qt_label.py", line 47, in create_widget
    self.widget = QLabel(self.parent_widget())
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'PySide6.QtWidgets.QLabel.__init__' called with wrong argument types:
  PySide6.QtWidgets.QLabel.__init__(QContainer)
Supported signatures:
  PySide6.QtWidgets.QLabel.__init__(Optional[PySide6.QtWidgets.QWidget] = None, PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags))
  PySide6.QtWidgets.QLabel.__init__(str, Optional[PySide6.QtWidgets.QWidget] = None, PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags))
@sccolbert
Copy link
Member

sccolbert commented Apr 12, 2024 via email

@bburan
Copy link
Contributor Author

bburan commented Apr 15, 2024

Yes, makes sense. I will close this issue and notify the PySide devs.

@bburan bburan closed this as completed Apr 15, 2024
@MatthieuDartiailh
Copy link
Member

Thanks @bburan

@bburan
Copy link
Contributor Author

bburan commented May 21, 2024

For reference, this is the core issue. spyder-ide/qtpy#480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants