
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 gdata.py-1.2.4.tar.gz
cd gdata.py-1.2.4
./setup.py install
./tests/run_data_tests.py
...
Ran 16 tests in 0.922s
OK
Running all tests in module gdata_tests.blogger_test
......
----------------------------------------------------------------------
Ran 6 tests in 0.095s
OK
Running all tests in module gdata_tests.webmastertools_test
.............................
----------------------------------------------------------------------
Ran 29 tests in 0.623s
OK
Now you are ready to implement N800 applications using the Python library of Google Data API.
To read this post in portuguese, click here.
No comments:
Post a Comment