Indeed, some apps may run fine, but they will fail if they need any file in the plugins/ folder. Unfortunately the qt build search for them at the /mnt/utmp/kde-libs/plugins and a simple symbolic link works around. But I dont know why other problem appear when I do this (cant resize windows).
Indeed, some apps may run fine, but they will fail if they need any file in the plugins/ folder. Unfortunately the qt build search for them at the /mnt/utmp/kde-libs/plugins and a simple symbolic link works around. But I dont know why other problem appear when I do this (cant resize windows).
This env. variable solves the linking problem, but there is something wrong with the OpenGL graphicsystem plugin. When Qt don't find it, it uses the default software backend and everything is Ok. But try resizing a window when the plugin is loaded.
Eric, I have installed the PND. It only asked me for my password and then disappeared. Is it OK? Is there any way to know if the installation has been successful? My program in Python still shows the error ImportError: cannot import name uic. Thanks a lot.
is it 'uic' or should i tbe sometghign like qt.uic or Qt4.uic or...? I forget now, been too long since I've started from scratch on that, but be sure you're qualifying it right for pyqt4 (it is different to pyqt3)
is it 'uic' or should i tbe sometghign like qt.uic or Qt4.uic or...? I forget now, been too long since I've started from scratch on that, but be sure you're qualifying it right for pyqt4 (it is different to pyqt3)
is it 'uic' or should i tbe sometghign like qt.uic or Qt4.uic or...? I forget now, been too long since I've started from scratch on that, but be sure you're qualifying it right for pyqt4 (it is different to pyqt3)
But it will not magically see our PyQt and Qt. You should run instead:
Code:
$ pyqt-run yourscript.py
The PyQt installer ask your password to install this pyqt-run script at your Pandora's /usr/bin
I should have put a dialog, just after the instalation explaining this. Sorry. I should also put a doc file explaining this. That's why I called it a BETA
But it will not magically see our PyQt and Qt. You should run instead:
Code:
$ pyqt-run yourscript.py
The PyQt installer ask your password to install this pyqt-run script at your Pandora's /usr/bin
I should have put a dialog, just after the instalation explaining this. Sorry. I should also put a doc file explaining this. That's why I called it a BETA
Thanks a lot for the tip. Now I can see a different error. Strangely is complaining about a zero length field name in format. I said strangely, because in Windows doesn't crash. It may be related with different versions of Pyhton and/or pyQT?
As before it works on Windows, but fails on the OP. How do you show numbers with separator for thousands and decimals? Thanks a lot.
EDITED: found a workaround that works in both systems :-D Great to see my little application running on the OP. Now I have to learn how to put all together on a PND.
EDITED: found a workaround that works in both systems :-D Great to see my little application running on the OP. Now I have to learn how to put all together on a PND.
First, one must install this PyQt PND (and leave it in the same SD card that he/she installed).
Then one may put your Python app into another (small) PND. You may create a shell script that tests if the PyQt PND was correcly installed and then "pyqt-run" your app.
EDITED: found a workaround that works in both systems :-D Great to see my little application running on the OP. Now I have to learn how to put all together on a PND.
First, one must install this PyQt PND (and leave it in the same SD card that he/she installed).
Then one may put your Python app into another (small) PND. You may create a shell script that tests if the PyQt PND was correcly installed and then "pyqt-run" your app.
The PyQt installation process is very simple. The main task is to find the exact path to the PyQt PND file. If your SD card name is "mysd", when you stick it into the Pandora, it will be mounted as "/media/mysd". If there is no name it uses a strange name that depends on the slot you stick it.
Suppose you want to install PyQt on this hypothetic SD card. First, you drop the PyQt PND at some special folder (pandora/menu or pandora/desktop). Then, the install script "finds out" where it is (let's say, "/media/mysd/pandora/menu") and writes it to a file named .pyqtpnd (or .pyqtpath just not remember now) at your home dir (say, /home/stratego)
Further, the installer copies the "pyqt-run" and "pyqt-env" scripts to your /usr/bin folder, so you can run PyQt apps properly.
As I said before, pyqt-run sets the environment variables (using pyqt-env) to make python find PyQt and Qt at /mnt/utmp/pyqt subfolders. This folder will be mounted and unmounted explictly by pyqt-run using the information in .pyqtpnd file (that's why you need the instalation).
The installation is obviously not necessary, but an ordinary user would never be able to play with PyQt without knowing about the pnd_run script and the correct env variables setup.
---
About making the PND:
Put all your files at some folder, create a PXML.xml file (take a look at the pandorawiki), make a beautiful icon.png for you app and create a start.sh script that will basically have:
# some optional pyqt correct installation test, and
pyqt-run myapp.py
Then you should run the pnd_make with some options:
-p PNDNAME
-d DISTFOLDER
-x PXMLFILE
-i ICONFILE
-c (compress with squasfh, not iso)
Since I suppose your app will only have one start script, you will only need to write one entry at the PXML file. Take a look at mine and adapt to your app
I am thinking of releasing a new PND for PyQt with the plugins path (missing in the pyqt-env), remove the buggy opengl graphicsystem plugin, and put some documentation of how to install and use PyQt (at least) and how to distribute PyQt apps as PND (we can use this thread as reference).
Eric, many thanks for the instructions. As soon as I have some free time (currently really busy with multiple projects) I'll give it a try and report back here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.