Reply
Thread Tools
Posts: 12 | Thanked: 5 times | Joined on Jul 2008
#1
Am I being an idiot here? My N800 (now running Diablo) arrived a couple of days ago, and I'm just starting on my first app (planning to begin with a GPE/osso contacts synchroniser). However when I run a "hello world" program, nothing gets printed to stdout unless I run it as root. So, I tried adding a test file write. This appears to work, but still nothing on stdout. I'm a reasonably experienced python developer, and long-term linux user, but am I missing something obvious?

The code is trivial, but here it is:
Code:
#!/usr/bin/python

print "Sample text output"

f = open("testfile.txt", "w")
f.write("Strange behaviour!")
f.close()
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#2
lol ...

This is this stupid (not stupid for user but annoying for dev the first time) python2.5-launcher which preload some python libs, and don't display std log.

There is two ways :
- Disable python launcher
- use /usr/bin/python2.5 as it was binded only to /usr/bin/python

 

The Following 3 Users Say Thank You to Khertan For This Useful Post:
Posts: 12 | Thanked: 5 times | Joined on Jul 2008
#3
Yup, that's the one - either method works, although I did need to relink /usr/bin/python to /usr/bin/python2.5 after uninstalling python launcher, as the uninstallation process didn't take care of that.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 02:58.