You are not logged in.

#1 2010-10-26 16:37:37

MTK358
Member
Registered: 2010-09-22
Posts: 9

PyQt app doesn't work

Since a recent update (which included Python 2 -> Python 3), PyQt doesn't work. When I try to import it, is says it doesn't exist.

Offline

#2 2010-10-26 16:40:57

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: PyQt app doesn't work

"doesn't work" is too general. provide concrete steps on how to replicate it.


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-10-26 16:48:35

MTK358
Member
Registered: 2010-09-22
Posts: 9

Re: PyQt app doesn't work

$ python
Python 3.1.2 (r312:79147, Oct  4 2010, 12:45:09) 
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4.QtCore
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named PyQt4.QtCore

Offline

#4 2010-10-26 16:52:02

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: PyQt app doesn't work

mda, pyhon2 not python. read the latest news to understand what happened


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-10-26 18:06:47

MTK358
Member
Registered: 2010-09-22
Posts: 9

Re: PyQt app doesn't work

I don't understand what you mean.

I know that the old Python is now in the Python2 package.

I would like my PyQt apps to work with Python 3.

Offline

#6 2010-10-26 18:28:45

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: PyQt app doesn't work


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2010-10-26 18:47:54

MTK358
Member
Registered: 2010-09-22
Posts: 9

Re: PyQt app doesn't work

I installed python2 and changed the shebang line in my PyQt app to use python2, and it works now.

I just wouldn't expect that Arch would upgrade to a newer version of a package even when other packages haven't been updated to work with the new one!

Offline

Board footer

Powered by FluxBB