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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

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.
Comment by Donovan Cameron (saultdon) - Saturday, 14 June 2014, 19:11 GMT
I tried changing the python2 portion of the PKGBUILD to configure.py instead of configure-ng.py but get some errors:

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
Comment by Andrea Scarpino (BaSh) - Monday, 16 June 2014, 17:40 GMT
Yep, that's why I used configure-ng: http://www.riverbankcomputing.com/pipermail/pyqt/2014-June/034344.html

I didn't know about the missing pyqtconfig...I'll ask in #pyqt
Comment by Donovan Cameron (saultdon) - Tuesday, 17 June 2014, 06:37 GMT
Looks like there is a ML thread for it too at http://www.riverbankcomputing.com/pipermail/pyqt/2014-June/034349.html

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 =)
Comment by Benjamin Chretien (bchretien) - Friday, 27 June 2014, 14:01 GMT
+1, this prevents ros-(hydro|indigo)-rviz from being compiled in the AUR (https://aur.archlinux.org/packages/ros-hydro-rviz/). Any word from upstream?
Comment by Andrea Scarpino (BaSh) - Thursday, 03 July 2014, 13:38 GMT
In the upstream thread, Phil said:
"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.

Loading...