LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PyQt4 app broken (https://www.linuxquestions.org/questions/programming-9/pyqt4-app-broken-839416/)

MTK358 10-20-2010 07:28 PM

PyQt4 app broken
 
I updated my system using pacman -Syu, the updates included a new version of PyQt4 and the replacement of Python 2 with Python 3. Now my PyQt4 app crashes with this error message:

Code:

Traceback (most recent call last):
  File "/home/michael/Projects/pyqtetris/pyqtetris", line 7, in <module>
    from PyQt4.QtCore import *
ImportError: No module named PyQt4.QtCore


Sergei Steshenko 10-20-2010 08:34 PM

Quote:

Originally Posted by MTK358 (Post 4134123)
I updated my system using pacman -Syu, the updates included a new version of PyQt4 and the replacement of Python 2 with Python 3. Now my PyQt4 app crashes with this error message:

Code:

Traceback (most recent call last):
  File "/home/michael/Projects/pyqtetris/pyqtetris", line 7, in <module>
    from PyQt4.QtCore import *
ImportError: No module named PyQt4.QtCore


File a bug against your distro, specifically against packagers of PyQt4.

MTK358 10-21-2010 06:55 AM

I just thought that it might be normal because of changes in PyQt or Python, and I just need to make a minor change to my code. Here's the part that doesn't work, right at the beginning:

Code:

#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
import random
import time
from PyQt4.QtCore import * # here's where it fails
from PyQt4.QtGui import *


dugan 10-21-2010 08:16 AM

I would expect that Arch would have a new PyQt package for you to upgrade to.

If not, do what Sergei said.

MTK358 10-21-2010 08:31 AM

Quote:

Originally Posted by dugan (Post 4134748)
I would expect that Arch would have a new PyQt package for you to upgrade to.

I don't understand.

Sergei Steshenko 10-21-2010 10:13 AM

Quote:

Originally Posted by MTK358 (Post 4134775)
I don't understand.

You either use PyQt4 in a wrong way or the package is defective.

While preparing the suggested bug report you'll have to prove that you expectations are correct (by (re)reading documentation of the new/updated PyQt4 package).

If you indeed come to the conclusion that your expectations are correct, you'll file the bug report, if not, you'll close the thread as solved.


All times are GMT -5. The time now is 06:14 PM.