[PyQt] pyqtdeploy problems

Jakob Simon-Gaarde jakobsg at gmail.com
Thu Mar 3 09:51:39 GMT 2016


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?

Best regards
Jakob Simon-Gaarde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160303/42bd4876/attachment-0001.html>


More information about the PyQt mailing list