maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   D-Bus error: Not enough memory?? Weird compiling python error. (https://talk.maemo.org/showthread.php?t=37423)

krk969 2010-01-03 16:02

Re: D-Bus error: Not enough memory?? Weird compiling python error.
 
Quote:

Originally Posted by thp (Post 451287)
You have started Xephyr, did an "export DISPLAY=:2" and ran "af-sb-init.sh start" and after that (in the same session) did the "run-standalone.sh python2.5 py.py"? Maybe your installation is simply broken. You can try copying the file to your device and trying it out there (you might need to install the necessary packages on the device or simply install an app that drags in the required dependencies).

yes worked.
had to start the hildon desktop using af-sb-init.sh

thanks thp.

So, until we can start the hildon destop in ARMEL maybe we cant use hildon python bindings in ARMEL ?
maybe thats the issue :confused:

i really want to be able to use it there for my purpose lies in ARMEL :(

danielwilms 2010-01-04 09:02

Re: D-Bus error: Not enough memory?? Weird compiling python error.
 
Quote:

Originally Posted by krk969 (Post 451297)
So, until we can start the hildon destop in ARMEL maybe we cant use hildon python bindings in ARMEL ?
maybe thats the issue :confused:

i really want to be able to use it there for my purpose lies in ARMEL :(

The ARMEL target is just there for cross-compiling and not to test or run applications. Therefore please use the X86 target. As you don't have to cross-compile with python there is no need for the ARMEL target in your case. And always specify the python version you want to run it with like:

Code:

run-standalone.sh python2.5 <script.py>
otherwise it might happen that you start it with python 2.3.

Daniel

krk969 2010-01-04 10:47

Re: D-Bus error: Not enough memory?? Weird compiling python error.
 
Quote:

Originally Posted by danielwilms (Post 452238)
The ARMEL target is just there for cross-compiling and not to test or run applications. Therefore please use the X86 target. As you don't have to cross-compile with python there is no need for the ARMEL target in your case. And always specify the python version you want to run it with like:

Code:

run-standalone.sh python2.5 <script.py>
otherwise it might happen that you start it with python 2.3.

Daniel

thanks , but , yes have done exactly that

danielwilms 2010-01-04 10:51

Re: D-Bus error: Not enough memory?? Weird compiling python error.
 
Quote:

Originally Posted by krk969 (Post 452326)
thanks , but , yes have done exactly that

Yes but in the ARMEL target. As I said, it is not meant to run applications. Just the X86 target.

Daniel

krk969 2010-01-04 10:57

Re: D-Bus error: Not enough memory?? Weird compiling python error.
 
thanks Daniel.

do you think it would run on the N900 itself ?

Im keen to use the python-hildon bindings to test it on the N900 , as I have extensions compiled in ARM that I would like to use, is this possible ? any chance you have tried using the hildon bindings on maemo ?

danielwilms 2010-01-04 15:01

Re: D-Bus error: Not enough memory?? Weird compiling python error.
 
Quote:

Originally Posted by krk969 (Post 452334)
thanks Daniel.

do you think it would run on the N900 itself ?

Im keen to use the python-hildon bindings to test it on the N900 , as I have extensions compiled in ARM that I would like to use, is this possible ? any chance you have tried using the hildon bindings on maemo ?

Which extensions have you compiled? Have you created them? Are they available somewhere? what is exactly your setup?

Daniel

krk969 2010-01-04 15:21

Re: D-Bus error: Not enough memory?? Weird compiling python error.
 
Quote:

Originally Posted by danielwilms (Post 452573)
Which extensions have you compiled? Have you created them? Are they available somewhere? what is exactly your setup?

Daniel

I havent yet created the extensions for my lib. (qtsysteminfo present in extras-devel )
Was going through some swig documentation for the same.

Anyways my intention was to use python scripts to create apps based on QT mobility api's.
Ive tried the apps using c++ without hildonizing.
For a start I wanted to write a python script to call an existing app Ive created batlevel_1.0-3 ( extras-devel ) which uses qtsysteminfo.
All this is currently compiled in ARM so I will need to make extensions for them to use them in my python script.

Hope this is the right direction.

thanks

lizardo 2010-01-04 17:14

Re: D-Bus error: Not enough memory?? Weird compiling python error.
 
@krk969:

To test your Python applications, you have two options: either you test them on the X86 target, or you test on the N900 directly. Testing on the ARMEL target will almost always not work.

Now you said your application has a custom extension, is that right? If those are real (*.so) extensions (written in C) and not just plain Python modules (*.py), you have to compile them on the x86 target to be able to test them on your desktop. Otherwise you should only compile them on the ARMEL target, install the generated packages on the N900 and test them there.

nux 2010-01-08 13:39

Re: D-Bus error: Not enough memory?? Weird compiling python error.
 
Is it possible to package python application without scratchbox.
I have a python program in one py file.
It run's just fine in N900 via command "python filename.py"

But if I want to pacage it for uploading to garage it gave me an error.
See this thread: http://talk.maemo.org/showthread.php?p=458283


All times are GMT. The time now is 10:30.

vBulletin® Version 3.8.8