Thursday, February 19, 2009

Google Data API on the Nokia N800 Internet Tablet

Installing the Python library of Google Data API using distutils package is a straightforward proccess on a PC. However, the Python installation on N800 maemo is different than on PC. This raises an error when you try install the API on N800 using distutils:

distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.5/config/Makefile (No such file or directory)

To solve this problem connect as superuser via ssh into N800 and execute the following commands:

apt-get install python2.5 python2.5-dev python2.5-xml
mkdir /usr/lib/python2.5/config/
echo "" > /usr/lib/python2.5/config/Makefile
mkdir /usr/include/python2.5
echo "" > /usr/include/python2.5/pyconfig.h
tar xvzf
./ install
Ran 16 tests in 0.922s
Running all tests in module gdata_tests.blogger_test
Ran 6 tests in 0.095s
Running all tests in module gdata_tests.webmastertools_test
Ran 29 tests in 0.623s

Now you are ready to implement N800 applications using the Python library of Google Data API.

To read this post in portuguese, click here.