FS#13133 - The PyQt package has been broken here for ages

Attached to Project: Arch Linux
Opened by Chris Giles (Chris.Giles) - Friday, 06 February 2009, 09:44 GMT
Last edited by Allan McRae (Allan) - Friday, 06 February 2009, 23:27 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I currently have the following packages installed from 'extra': 'sip' 'qscintilla' 'pyqt' 'python-qscintilla'. Here's the output I get from within the Python shell:

>>> import PyQt4
>>> from PyQt4 import QtCore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name QtCore
>>>

I then created, installed and uploaded the following replacements to 'AUR': 'sip-dev' 'qscintilla-dev' 'pyqt-dev' 'python-qscintilla-dev'. Here's the output I get from within the Python shell:

>>> import PyQt4
>>> from PyQt4 import QtCore
>>>

What's going on here? I'm hoping someone else can test this out on their machine. It's very annoying when these packages from 'extra' don't work, as both of my Linux OSS applications depend on them.
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 06 February 2009, 23:27 GMT
Reason for closing:  Not a bug
Comment by Chris Giles (Chris.Giles) - Friday, 06 February 2009, 10:54 GMT
The difference was that my 'pyqt-dev' PKGBUILD contained "-d /usr/lib/python2.5/site-packages". When I changed this to "-d /usr/lib/python2.6/site-packages" and recreated the package, I started getting the above errors.

FYI, here's the output I got when I just tried to run 'pyuic4':
`--> pyuic4
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/PyQt4/uic/pyuic.py", line 7, in <module>
from PyQt4 import QtCore, uic
File "/usr/lib/python2.5/site-packages/PyQt4/uic/__init__.py", line 6, in <module>
from PyQt4.QtCore import PYQT_VERSION_STR
ImportError: No module named QtCore
Comment by Chris Giles (Chris.Giles) - Friday, 06 February 2009, 23:02 GMT
The problem was that the old "/usr/lib/python2.5/site-packages/PyQt4/" directory still contained some ".pyc" files, so I removed it completely and PyQt4 is now working again.

Loading...