View Single Post
Old 10-26-2012, 11:37 PM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Kindle 5.

result okay

I DID have to move my previous install of python out of the path.

note to others:
If you get...
Quote:
[root@kindle python]# ./test.py
Traceback (most recent call last):
File "./test.py", line 5, in <module>
import pygtk
ImportError: No module named pygtk
(you probably already have a python install.)
[root@kindle python]# strace -fF -o /mnt/us/pyGTKstrace.txt ./test.py revealed my other ones location.

Code:
5451  getuid32()                        = 0
5451  execve("/mnt/us/usr/bin/python", ["python", "./test.py"], [/* 25 vars */]) = 0
5451  brk(0)                            = 0x11000
A quick mv to another name or unpathed folder will fix that up.

Thanks for the funky toy

EDIT:

I also amended the pythonenv to be a bit more forgiving since we are sourcing it to the main shell.

(with whitespace for clarity, obviously make it valid)

Quote:
#!/bin/sh
export PYTHONPATH=/mnt/us/extensions/python/usr/lib/python2.7/

export LD_LIBRARY_PATH=/mnt/us/extensions/python/usr/lib:\
/mnt/us/extensions/python/usr/lib/arm-linux-gnueabi:\
/mnt/us/extensions/python/lib/arm-linux-gnueabi:\
$LD_LIBRARY_PATH

export PATH=/mnt/us/extensions/python/usr/bin/:$PATH
(if it had pre-pended the $path initially it would have overridden my less local python)
Attached Thumbnails
Click image for larger version

Name:	TightVNC: kindle:0.0_296.png
Views:	509
Size:	31.0 KB
ID:	94987   Click image for larger version

Name:	TightVNC: kindle:0.0_299.png
Views:	314
Size:	28.8 KB
ID:	94988   Click image for larger version

Name:	TightVNC: kindle:0.0_297.png
Views:	257
Size:	13.4 KB
ID:	94989  

Last edited by twobob; 10-26-2012 at 11:57 PM. Reason: pythonenv
twobob is offline   Reply With Quote