Trying to run Python for the first time on a Kobo mini.
I've backed up the SD card, installed telnet and python OK; I can do "Hello world". But Python dies silently if I attempt to import a library, anything other than 'sys'.
Is there an obvious gotcha?
it died!
It died again!
In other words, attempting to import sys works; attempting to import either of the two libraries used by weather.py fails immediately, and stops python.
The above is from python shell, but the same happens in python scripts.
I've tried deleting the .pyo and .pyc files for urllib2; then running the script that attempts to "import urllib2" again. The files were recreated, Python halted again.
I'm hoping this is something obvious that I'm doing wrong.... what would it be? Any suggestions for how I can move forward?
(Mini firmware is 3.4.1, btw.)
Many thanks!
I've backed up the SD card, installed telnet and python OK; I can do "Hello world". But Python dies silently if I attempt to import a library, anything other than 'sys'.
Is there an obvious gotcha?
Code:
[root@(none) ~]# python
Python 2.7.2 (default, Feb 4 2012, 12:18:06)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/mnt/onboard/.python/lib/python27.zip', '/mnt/onboard/.python/lib/python2.7', '/mnt/onboard/.python/lib/python2.7/plat-linux2', '/mnt/onboard/.python/lib/python2.7/lib-tk', '/mnt/onboard/.python/lib/python2.7/lib-old', '/mnt/onboard/.python/lib/python2.7/lib-dynload', '/mnt/onboard/.python/lib/python2.7/site-packages']
>>> import pygame,os
[root@(none) ~]#
Code:
>>> import pygame,os
[root@(none) ~]# python
Python 2.7.2 (default, Feb 4 2012, 12:18:06)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
[root@(none) ~]#
In other words, attempting to import sys works; attempting to import either of the two libraries used by weather.py fails immediately, and stops python.
The above is from python shell, but the same happens in python scripts.
I've tried deleting the .pyo and .pyc files for urllib2; then running the script that attempts to "import urllib2" again. The files were recreated, Python halted again.
I'm hoping this is something obvious that I'm doing wrong.... what would it be? Any suggestions for how I can move forward?
(Mini firmware is 3.4.1, btw.)
Many thanks!