FS#40842 - [python2-pyqt4] ImportError: No module named pyqtconfig
Attached to Project:
Arch Linux
Opened by Donovan Cameron (saultdon) - Saturday, 14 June 2014, 19:02 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 04 July 2014, 18:29 GMT
Opened by Donovan Cameron (saultdon) - Saturday, 14 June 2014, 19:02 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 04 July 2014, 18:29 GMT
|
Details
Description: After updating python2-pyqt4 I'm unable to
import pyqtconfig in python2.
Additional info: * python2-pyqt4 (4.10.4-2 -> 4.11-1) * Error message from compiling QGIS 2.2, Traceback (most recent call last): File "/tmp/makepkg/qgis/src/qgis-2.2.0/cmake/FindPyQt.py", line 33, in <module> import PyQt4.pyqtconfig ImportError: No module named pyqtconfig Steps to reproduce: $ python2 >>> import PyQt4.pyqtconfig Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named pyqtconfig It looks like the pyqtconfig module is only created if the package uses configure.py instead of configure-ng.py. http://pyqt.sourceforge.net/Docs/PyQt4/build_system.html#the-old-build-system |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Friday, 04 July 2014, 18:29 GMT
Reason for closing: Won't fix
Additional comments about closing: Upstream said configure.py is deprecated.
Friday, 04 July 2014, 18:29 GMT
Reason for closing: Won't fix
Additional comments about closing: Upstream said configure.py is deprecated.
Creating pyqtconfig.py...
make[1]: Entering directory '/tmp/makepkg/pyqt4/src/Py2Qt-x11-gpl-4.11/qpy'
make[2]: Entering directory '/tmp/makepkg/pyqt4/src/Py2Qt-x11-gpl-4.11/qpy/QtGui'
g++ -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-O1 -o w_qpygui -L/usr/lib -lQtGui -lQtCore -lpthread
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
Makefile:104: recipe for target 'w_qpygui' failed
make[2]: *** [w_qpygui] Error 1
make[2]: Leaving directory '/tmp/makepkg/pyqt4/src/Py2Qt-x11-gpl-4.11/qpy/QtGui'
Makefile:3: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/tmp/makepkg/pyqt4/src/Py2Qt-x11-gpl-4.11/qpy'
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 2
I didn't know about the missing pyqtconfig...I'll ask in #pyqt
Some one from Debian provided a patch as well to add the missing files,
http://www.riverbankcomputing.com/pipermail/pyqt/2014-June/034370.html
http://sources.debian.net/src/python-qt4/4.11+dfsg-1/debian/patches/add_pro_files.diff
But upstream mentions they will wait about a week to include any fixes =)
"configure-ng.py is the new build system, pyqtconfig.py is a product of the old (deprecated) build system."
So I guess we should stay with configure-ng.py and the projects using pyqtconfig should be updated.