This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problems with pyqt apps in kde 4.3.x

Tags: None
(comma "," separated)
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS

Problems with pyqt apps in kde 4.3.x

Thu Sep 10, 2009 12:46 pm
I reported the problem on openSUSE's bugzilla, but without luck. PyQT apps do not work at all on kde 4.3.x but they worked on 4.2.x
I have python-kde4 and python-qt4 packages installed (more details in the bug report).
Someone else with this problem?


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
From the output pasted in that bugreport, it looks more like a problem with avogadro to me. Have you tried other pyQT/pykde apps?

It works here, at least the ones I'm using (the printer status systray, calibre, three different python-plasmoids) using suse 11.1, 64-bit and the factory-repos (the same as you in other words).

These are installed on my system:

python-base 2.6.2-14.3
python-kde4 4.3.1-85.4
python-qt4 4.5.4-32.4
python-kdebase4 4.3.1-340.1


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS
Convertall do not work: starts, I can select the units, but there is no conversion.
I have:
python-base 2.6.0.2.22.1
python-kde4 4.3.1-85.4
python-kdebase4 4.3.1-345.1 (this one is strange... the last in factory repo is 4.3.1-340.1 :o )
python-qt4 4.5.4-32.4


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
RGB wrote:python-kdebase4 4.3.1-345.1 (this one is strange... the last in factory repo is 4.3.1-340.1 :o )


Indeed. I've had that happen too occassionally, but is usually fixed during the next big factory update. You can always try to use zypper dup to see if it's reinstalled, or force a reinstall from yast. Still, that one shouldn't be a problem for your two programs since that package only gives you the ability to use plasmoids written in python.

Could you please try this "hello world" example, just to see if you can run anything using pyqt?

Just cut-and-paste it into a empty textfile, and do chmod u+x filename.py and start it with ./filename.py

Code: Select all
#!/usr/bin/env python

import sys
from PyQt4 import Qt

a = Qt.QApplication(sys.argv)

hello = Qt.QLabel("Hello, World")

hello.show()

a.exec_()


It's not a complex program by any means (understatement of the year, that is), but whether you can run it should tell us if python-qt4 works at all on your machine. If it runs, the problem most likely is elsewhere.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS
Thanks!
The script works without problems (a tiny window with the "Hello, World" appears) :?
Now, for the "elsewhere" ;)


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
RGB wrote:Thanks!
The script works without problems (a tiny window with the "Hello, World" appears) :?
Now, for the "elsewhere" ;)


I'm leaning towards a bug in convertall. I just tried it, and I get the interface. But as soon as I've chosen one unit in both columns I get this in the konsole I started it from:

Code: Select all
Traceback (most recent call last):
  File "/usr/local/lib/convertall/numedit.py", line 92, in setNum
    if numText.isNull():
AttributeError: 'str' object has no attribute 'isNull'


I also get that when I enter a value in either stringbox. Of course, it is also possible that there's a regression in the latest version of python-qt or that it is more strict than earlier versions. If you feel brave, you can try to downgrade python-qt to 4.4.3 although that may break other things (yast doesn't want to downgrade anything at least) - but if something does break, it's always possible to upgrade python-qt again.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS
Thanks!
I'll write to the convertall author.
Avogadro is still not working, it ends with a
Code: Select all
terminate called after throwing an instance of  'boost::python::error_already_set'

error. I noticed your are using python 2.6.2 and Avogadro works for you, but in "updates" there is only 2.6.0. Maybe the problem have many heads...


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
RGB wrote:ced your are using python 2.6.2 and Avogadro works for you, but in "updates" there is only 2.6.0. Maybe the problem have many heads...


I'm not sure if that's the reason. I've been using versions larger than 2.6.0 for quite some time and I'm not entirely sure when I started to and especially not 2.6.2. Larger than 2.6.0 was for sure sometime during KDE 4.1.x, but 2.6.2 specifically I can no longer tell.

If you want to try if it makes a difference though, my python version is installed from the following repo: http://download.opensuse.org/repositori ... SUSE_11.1/

Whether it works better or not, I may not be able to help you any further for some time. My computer (the only one I have) is developing a fault and come Monday it will have to be sent from Sweden to Germany for repairs.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS
Don't worry, I know the feeling when the only electronic child in the house is ill ;)
Thanks again!


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS
I've got an answer from Doug Bell, convertall author. He found a problem that only shows up with pyqt 4.5.4 and he will release a fix soon.


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS
There is a new ConvertAll version and it works without problems. Avogadro is still not running, but it is clear now that it is not a problem with kde nor pyqt so I tag this as solved.


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]