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)