[PyQt] pyqtdeploy problems
Phil Thompson
phil at riverbankcomputing.com
Thu Mar 3 16:24:08 GMT 2016
On 3 Mar 2016, at 9:51 am, Jakob Simon-Gaarde <jakobsg at gmail.com> wrote:
>
> Hi
>
> I am trying to use pyqtdeploy for the first time. I have made a very simple PyQt5 application, main.py:
> from PyQt5.QtWidgets import *
> import sys
>
> a = QApplication(sys.argv)
> d = QDialog()
> d.show()
> a.exec_()
>
> I have made a pyqtdeploy project. From the dialog I have chosen main.py as my "Main script file". I have selected QtWidgets under PyQt modules and then I pressed "Build"
>
> This is the result:
>
> Traceback (most recent call last):
> File "/usr/local/lib/python3.4/dist-packages/pyqtdeploy/gui/build_page.py", line 173, in _build
> clean=bool(self._clean_button.checkState()))
> File "/usr/local/lib/python3.4/dist-packages/pyqtdeploy/builder/builder.py", line 198, in build
> standard_library_dir, job_writer, opt, resource_names)
> File "/usr/local/lib/python3.4/dist-packages/pyqtdeploy/builder/builder.py", line 395, in _write_qmake
> metadata = self._get_pyqt_module_metadata(pyqt_m)
> File "/usr/local/lib/python3.4/dist-packages/pyqtdeploy/builder/builder.py", line 984, in _get_pyqt_module_metadata
> return metadata[module_name]
> KeyError: 'QtW&idgets'
>
> It seems like the hot-key ampersand for QtWidgets is being used as a dictionary key - is that really right?
It would seem to be a (Linux specific) Qt bug where Qt is changing the text of a button under the covers.
There is now a workaround in hg.
Phil
More information about the PyQt
mailing list