Re: [maemo-developers] python on maemo

2006-05-11 Thread Daniel d'Andrada Tenório de Carvalho
Hello Christine, ext Christine Liu wrote: [...] [sbox-SDK_ARM: ~/Imaging-1.1.5] > python setup.py bdist_dumb [...] You should write "python2.4 setup.py bdist_dumb" instead. A simple "python" will call scratchbox's own "python2.3" (which is wrong) instead of Maemo's "python2.4". This is a c

Re: [maemo-developers] python on maemo

2006-05-10 Thread Teemu Harju
Hi,You can download the PIL package that I created from http://www.saunalahti.fi/~tsharju/pymaemo/- TeemuOn 5/11/06, Christine Liu <[EMAIL PROTECTED]> wrote: hello again - here are more gruesome error details on my scratchbox linux PC for compiling PIL. [sbox-SDK_ARM: ~/Imaging-1.1.5] > python se

Re: [maemo-developers] python on maemo

2006-05-10 Thread Christine Liu
hello again - here are more gruesome error details on my scratchbox linux PC for compiling PIL. [sbox-SDK_ARM: ~/Imaging-1.1.5] > python setup.py bdist_dumb running bdist_dumb running build running build_py running build_ext building '_imaging' extension /scratchbox/compilers/host-gcc/bin/gcc -spe

Re: [maemo-developers] python on maemo

2006-05-10 Thread Christine Liu
hey all - That's because you miss the first line, a functional comment, to instruct system how to run your file. You should use as first line: #!/var/lib/install/usr/bin/python2.4 that was it. thank you all (i thought it was a comment, heh). another question - i'm attempting to port PIL à la

Re: [maemo-developers] python on maemo

2006-05-09 Thread Gustavo Sverzut Barbieri
On Tuesday 09 May 2006 18:41, ext Christine Liu wrote: > hi all - > > i'm following teemu's tutorial on python on the 770, part 1: > http://www.teemuharju.net/2006/01/26/coding-for-nokia-770-using-python-part >-1/ > > so i'm running into issues with either run-standalone.sh + importing gtk > and hi

Re: [maemo-developers] python on maemo

2006-05-09 Thread August Joki
It looks like uitest.py and helloworld.py are being interpreted as bash scripts. You shoud put '#!/var/lib/install/usr/bin/python2.4' or the location of your python binary as the first line in the file so that the shell knows how to appropriately interpret the python script. Alternatively ' run-sta

Re: [maemo-developers] python on maemo

2006-05-09 Thread Simon Budig
Kasper Souren ([EMAIL PROTECTED]) wrote: > Looks like it's not executing as Python, but as shell. > The first line should look something like #/usr/bin/python2.4 make that #!/usr/bin/python2.4 Hope this helps, Simon -- [EMAIL PROTECTED] http://simon.budig.de/

Re: [maemo-developers] python on maemo

2006-05-09 Thread Kasper Souren
Nokia770-13:/home/user# run-standalone.sh ./uitest.py ./uitest.py: 1: import: not found ./uitest.py: 2: import: not found ./uitest.py: 4: class: not found ./uitest.py: 6: Syntax error: "(" unexpected Looks like it's not executing as Python, but as shell. The first line should look something like

[maemo-developers] python on maemo

2006-05-09 Thread Christine Liu
hi all -i'm following teemu's tutorial on python on the 770, part 1:http://www.teemuharju.net/2006/01/26/coding-for-nokia-770-using-python-part-1/ so i'm running into issues with either run-standalone.sh + importing gtk and hildon packages. i installed pymaemo in normal matter and i am ssh'ing into