Hi, while trying to use vitables after an upgrade to PySide6 I noticed that qtpy.uic.loadUiType is failing:
File "/home/jschmidt/mambaforge/envs/CPG_stable/lib/python3.11/site-packages/vitables/vtwidgets/renamedlg.py", line 63, in <module>
loadUiType(os.path.join(os.path.dirname(__file__), 'rename_dlg.ui'))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jschmidt/mambaforge/envs/CPG_stable/lib/python3.11/site-packages/qtpy/uic.py", line 278, in loadUiType
compileUi(fd, code_stream, indent=0, from_imports=from_imports)
^^^^^^^^^
NameError: name 'compileUi' is not defined. Did you mean: 'compile'?
This seems to be a bug in qtpy as compileUi is indeed only imported in the PySide2 branch of the imports. Or shouldn't loadUiType be used with PySide6?
I'm using (installed from conda-forge):
Python 3.11.4
qtpy 2.3.1
PySide6 6.5.1
vitables 3.0.2
Hi, while trying to use vitables after an upgrade to PySide6 I noticed that
qtpy.uic.loadUiTypeis failing:This seems to be a bug in qtpy as
compileUiis indeed only imported in the PySide2 branch of the imports. Or shouldn'tloadUiTypebe used with PySide6?I'm using (installed from conda-forge):
Python 3.11.4
qtpy 2.3.1
PySide6 6.5.1
vitables 3.0.2