maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [problem] python problem? -inner spin -msaber -papertoss (https://talk.maemo.org/showthread.php?t=72915)

amadeukaos 2011-05-09 23:21

[problem] python problem? -inner spin -msaber -papertoss
 
why papertoss, inner spin, msaber, all these python apps only work by open it via terminal, and not for his respectives icons??

anyone know if its an individual problem or something with cssu or missing libs with python apps??

thanks all

tpd 2011-05-10 15:44

Re: [problem] python problem? -inner spin -msaber -papertoss
 
Can't speak for the other apps but inner-spin should hopefully be functional now when run directly (let me know if not?)

amadeukaos 2011-05-10 16:19

Re: [problem] python problem? -inner spin -msaber -papertoss
 
fail to run directly... maybe is with my n900?
I run "apt-get install -f" and nothing is missing too...
How can I test this?
By the way, great game, u forgot to ANNOUNCE here in the forum :)

misiak 2011-05-10 16:20

Re: [problem] python problem? -inner spin -msaber -papertoss
 
Do you have any Linux knowledge? I would like to ask you the following:

1. Install Leafpad (if you don't have this program in your system yet)
2. Open terminal
3. Type
Code:

root
to become superuser
4. Type
Code:

leafpad /usr/bin/msaber
to edit it and replace the first line
Quote:

Originally Posted by original
#!/usr/bin/env python

with
Quote:

Originally Posted by replacement
#!/usr/bin/env python2.5

5. Save the file (tap the top bar and select "Save").
6. Close Leafpad
7. Close terminal
8. Try to run msaber from shortcut in the menu

What's the result?

towhatend 2011-05-10 16:41

Re: [problem] python problem? -inner spin -msaber -papertoss
 
apt-get install libsdl-mixer1.2=1:1.2.6-5+0m5

amadeukaos 2011-05-10 16:44

Re: [problem] python problem? -inner spin -msaber -papertoss
 
@misiak did all that, and nothing =/
In your device, it works?

misiak 2011-05-10 17:00

Re: [problem] python problem? -inner spin -msaber -papertoss
 
Quote:

Originally Posted by amadeukaos (Post 1003534)
@misiak did all that, and nothing =/
In your device, it works?

On my device I have problems with scripts, which have "#!/usr/bin/env python" in the beginning (when run from gui - nothing, when from command line - everything looks fine), while scripts with "#!/usr/bin/env python2.5" work in both situations... I have one more suggestion (I will stick to msaber):
Could you edit msaber.desktop:
Code:

root
leafpad /usr/share/applications/hildon/msaber.desktop

And change the line below in bold:
Quote:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Icon=msaber
Name=mSaber
Exec=/usr/bin/msaber > /home/user/MyDocs/msaberlog.txt
Type=Application
X-Osso-Type=application/x-executable
X-Osso-Service=net.khertan.msaber
Then after running it from gui (shortcut in the menu) you should see file "msaberlog.txt" in file manager in internal N900 memory. What are it's contents?

amadeukaos 2011-05-10 17:15

Re: [problem] python problem? -inner spin -msaber -papertoss
 
woa, did like you ask, but no .txt was created... weird... copy exactly like you said, I even double checked after run it... =/

misiak 2011-05-10 18:24

Re: [problem] python problem? -inner spin -msaber -papertoss
 
Quote:

Originally Posted by amadeukaos (Post 1003547)
woa, did like you ask, but no .txt was created... weird... copy exactly like you said, I even double checked after run it... =/

Yeah, my haven't created file either :P But on my device (PR1.3) msaber works out-of-the box from both gui shortcut and command line, so maybe my didn't create the file because there was no output... (everything seemed to work). What I would also try doing (just playing:P) is changing again the line "Exec=/usr/bin/msaber > /home/user/MyDocs/msaberlog.txt" to just "Exec=msaber" and checking if it works

amadeukaos 2011-05-10 19:19

Re: [problem] python problem? -inner spin -msaber -papertoss
 
Quote:

Originally Posted by misiak (Post 1003581)
....But on my device (PR1.3) msaber works out-of-the box from both gui shortcut....

Ops , mine is the last CSSU Update.... well, I´m gonna try what you said an already tell u


All times are GMT. The time now is 13:53.

vBulletin® Version 3.8.8