LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-20-2010, 07:28 PM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Exclamation 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
 
Old 10-20-2010, 08:34 PM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by MTK358 View Post
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.
 
Old 10-21-2010, 06:55 AM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
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 *
 
Old 10-21-2010, 08:16 AM   #4
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,771

Rep: Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468
I would expect that Arch would have a new PyQt package for you to upgrade to.

If not, do what Sergei said.

Last edited by dugan; 10-21-2010 at 08:18 AM.
 
Old 10-21-2010, 08:31 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by dugan View Post
I would expect that Arch would have a new PyQt package for you to upgrade to.
I don't understand.
 
Old 10-21-2010, 10:13 AM   #6
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by MTK358 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pyqt4 and mysql problem almost solved but not quite gary_in_springhill Programming 1 08-22-2010 11:06 PM
PyQt4 Signals and Slots MTK358 Programming 3 06-20-2010 08:23 PM
PyQt4 fails install on CentOs Poopzilla Linux - Software 3 01-06-2010 11:40 AM
[SOLVED] Porting Qt highlighting example code to PyQt4 Snouffelaire Programming 4 11-20-2009 12:02 PM
broken app hendoc Linux - Software 2 04-28-2007 09:47 AM


All times are GMT -5. The time now is 01:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration