Can't get pyQT


stratego

Still Fresh
Joined
May 5, 2011
Messages
67
Age
49
Location
Edinburgh, Scotland
I'm doing a little application to monitor EVE Online characters. A simple version of EVEMon if you know what it is. I'm using Python and pyQT on the PC, and it works great. Now I'm trying to make it work on the OP, as my main purpose was to do so.


I tried opkg install python-pyqt but I get an error message:



Code:
* opkg_install_cmd: Cannot install package python-pyqt


Anybody can help me? Thanks a lot.
 
Well that's not a very helpful error message :p . But looking at the package details, it seems to be available for only one specific feed, which is probably not the feed that the Pandora uses. You can try downloading and installing that package manually, but I expect it won't work (it says it uses glibc, whereas I think the Pandora uses eglibc). If that fails, you may just have to build it yourself. I'm certain other people have done so successfully, and hopefully one of them can help you.
 
I tried opkg install python-pyqt but I get an error message:



Code:
* opkg_install_cmd: Cannot install package python-pyqt

You must be root to install packages. try:


$ sudo opkg install python-pyqt


BTW, even if you successful install PyQt, I suppose your application will not work "out of the box".


When you try to run your app the first time, let me know the errors so I can help you.


EDIT:


Oh, you must install python-sip too!!!
 
Last edited by a moderator:
Well that's not a very helpful error message :p . But looking at the package details, it seems to be available for only one specific feed, which is probably not the feed that the Pandora uses. You can try downloading and installing that package manually, but I expect it won't work (it says it uses glibc, whereas I think the Pandora uses eglibc). If that fails, you may just have to build it yourself. I'm certain other people have done so successfully, and hopefully one of them can help you.
Wow, that's bad news for me :( I don't think my skills are enough to build it myself.

I tried opkg install python-pyqt but I get an error message:



Code:
* opkg_install_cmd: Cannot install package python-pyqt
Tried $ sudo opkg install python-pyqt python-sip with same result :(
 
it says it uses glibc, whereas I think the Pandora uses eglibc
I'm pretty sure they should be compatible to each other anyway, the programs are interacting with a standardised interface after all.


Well, eglibc's Website says that they "strive to be source and binary compatible with GLIBC"
 
Last edited by a moderator:
Tried $ sudo opkg install python-pyqt python-sip with same result :(

Hmm, strange. I was able to install it before.


Anyway you can download the packages (ipk) from here:


http://www.angstrom-distribution.org/repo/?pkgname=python-pyqt


http://www.angstrom-distribution.org/repo/?pkgname=python-sip


(grab the python-sip 4.7.x version, the other 4.8 crashed for me)


and do:


$ sudo opkg install python-sip.XXX.ipk python-pyqt.YYY.ipk


Still, your application may not run since you probably use a new version of PyQt. But you can overcome some error with some tips and mu (http://www.assembla.com/spaces/mu-dev)


Don't give up! :)
 
Tried $ sudo opkg install python-pyqt python-sip with same result :(

Hmm, strange. I was able to install it before.


Anyway you can download the packages (ipk) from here:


http://www.angstrom-distribution.org/repo/?pkgname=python-pyqt


http://www.angstrom-distribution.org/repo/?pkgname=python-sip


(grab the python-sip 4.7.x version, the other 4.8 crashed for me)


and do:


$ sudo opkg install python-sip.XXX.ipk python-pyqt.YYY.ipk


Still, your application may not run since you probably use a new version of PyQt. But you can overcome some error with some tips and mu (http://www.assembla.com/spaces/mu-dev)


Don't give up! :)
Many thanks Eric.


I did what you said. Now I get error: ImportError: cannot import name uic


I've seen here you had the same problem. I just have to understand that post :p
 
Last edited by a moderator:
Many thanks Eric.


I did what you said. Now I get error: ImportError: cannot import name uic


I've seen here you had the same problem. I just have to understand that post :p

*** First, I want to say that I am trying to build a recent and decent version of PyQt (and PySide) for OpenPandora. The idea is to put it on a PND file. PyQt would be easy as drag and drop. I suggest you to wait, but if you can't, keep readeing. ***


Well, that is the ugly part. If you look at your PyQt installation folder, you can find an "uic" folder. Since it is pure python, you may use it inside Pandora. But I used the Linux version and had some trouble with PyKDE import errors. Try using the windows version and it should work.


If not, I can send you my tweaked version of the uic folder.
 
Last edited by a moderator:
*** First, I want to say that I am trying to build a recent and decent version of PyQt (and PySide) for OpenPandora. The idea is to put it on a PND file. PyQt would be easy as drag and drop. I suggest you to wait, but if you can't, keep readeing. ***
That sounds great! I'm not in rush. It's an application that I did mainly for learning Python, and then thought about to release for OP, in case somebody finds it useful.


I'll be waiting for your PyQt PND. Thanks a lot.
 
Last edited by a moderator:
Back
Top