Open GoogleCodeExporter opened 9 years ago
[deleted comment]
typo: logfile does not logs "stderr" messages. "stderr" is where the traceback
goes
Original comment by alan.jus...@gmail.com
on 26 Jul 2013 at 7:16
moderator: please change from "defect" to "feature"
Original comment by alan.jus...@gmail.com
on 26 Jul 2013 at 7:25
Original comment by anthony....@gmail.com
on 29 Jul 2013 at 8:36
Seems the log file is flushed only from time to time (maybe StreamGobbler
issue: http://code.google.com/p/android-python27/issues/detail?id=5 ), in my
code I do see log there but with delay.
However I'm not using the log created by StreamGobbler, instead I'm using the
Python logging module and I redirect log entries into my own file.
As for the traceback I'm using the Python traceback module:
traceback.extract_tb(...
You can also run your script from the cmd line to check what's going on:
export PYTHONHOME=/data/data/com.android.python27/files/python
export
PYTHONPATH=/sdcard/com.android.python27/extras/python:/data/data/com.android.pyt
hon27/files/python/lib/python2.7/lib-dynload:/data/data/com.android.python27/fil
es/python/lib/python2.7
export PATH=$PYTHONHOME/bin:$PATH
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/data/com.android.python27/files/python/li
b:/data/data/com.android.python27/files/python/lib/python2.7/lib-dynload
export AP_HOST=localhost
export AP_PORT=45777
am start -a com.android.python27.LAUNCH_RPC_SERVER -n
com.android.python27/.RpcServerLauncher --ei
com.android.python27.RPC_SERVER_PORT 45777
python my_script.py
Original comment by anthony....@gmail.com
on 29 Jul 2013 at 8:45
Original issue reported on code.google.com by
alan.jus...@gmail.com
on 26 Jul 2013 at 7:14