Skip to content

Fix weather statistics script #1

@nodeg

Description

@nodeg

When executing the Python script on the Kobo Libra Colour, I get a segmentation fault:

telnet 192.168.179.13 1023
Trying 192.168.179.13...
Connected to kobo.fritz.box.
Escape character is '^]'.

kobo login: admin
Password:
login: cant change directory to '/home/admin'
[root@kobo ~]# echo C > /mnt/onboard/.apps/koboWeather/unit.txt
[root@kobo ~]# cat /mnt/onboard/.apps/koboWeather/unit.txt
C
[root@kobo ~]# /mnt/onboard/.python/install-python.sh
Installing python and pygame libraries . . .
Python successfully installed!
[root@kobo ~]# /mnt/onboard/.python/weather.sh

For the weather forecast to work, please enter your latitude and longitude.
There is an easy to use map at http://stereopsis.com/flux/map.html

Enter your latitude: XX.XXXXX
Enter your longitude: XX.XXXX
Just a moment . . .
Segmentation fault

[root@kobo ~]# cd /mnt/onboard/.apps/koboWeather
[root@kobo koboWeather]# ls -l
total 704
-rwxr-xr-x    1 root     root         97908 Mar 21  2011 Cabin-Regular.ttf
-rwxr-xr-x    1 root     root        169096 Jan  2  2012 Comfortaa-Regular.ttf
-rwxr-xr-x    1 root     root         16312 May  1  2011 Fabrica.otf
-rwxr-xr-x    1 root     root        303316 Oct 16  2012 Forum-Regular.ttf
-rwxr-xr-x    1 root     root           391 Oct 20  2012 autoupdate.sh
-rwxr-xr-x    1 root     root            42 Oct 19  2012 cron
drwxr-xr-x    2 root     root         16384 Jun  2 11:16 icons
-rwxr-xr-x    1 root     root            16 Jun  2 12:18 location
-rwxr-xr-x    1 root     root           361 Oct 19  2012 set_location.sh
-rwxr-xr-x    1 root     root             2 Jun  2 12:17 unit.txt
-rwxr-xr-x    1 root     root         11904 Nov  2  2012 weather.py
[root@kobo koboWeather]# python --version
Python 2.7.2
[root@kobo koboWeather]# python weather.py
Segmentation fault

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions