To use AsPyLib, Python 2.6 or 2.7 must be installed on the system.
Later versions (3.0, 3.1, 3.2) are not backward compatible with 2.6 or 2.7 and should be avoided. This is discussed here.
Earlier versions (2.5 and before) might fail due to some function called by AsPyLib that is missing.
The following modules must be installed for AsPyLib:
Windows
On Windows, you only have to install Python(x,y) (click here) to get the right Python distribution and modules.
Linux
On Ubuntu 10.04, Python 2.6 is installed by default.
The following commands:
apt-get install python-numpy
apt-get install python-scipy
apt-get install python-matplotlib
will install Numpy 1.3 and Matplotlib 0.99 which are too old. AsPyLib cannot work with those versions.
So first, remove (if needed) the Ubuntu versions with
apt-get remove python-numpy
apt-get remove python-scipy
apt-get remove matplotlib
Then install newer versions from the sources. To do it install the following
apt-get install python-setuptools
apt-get install python-dev
apt-get install libfreetype6-dev
apt-get install libpng12-dev
apt-get install gtk2-dev
apt-get build-dep python-numpy
Then download the latest Numpy, Scipy and Matplotlib versions (.tar.gz) from sourceforge, unzip the archives and in each folder type the following
python setup.py build
python setup.py install
If you get an error message, you are most probably missing a component. To identify the missing part: read carefully the error messages and look for missing file (such as headers .h, compiler, etc). Find what needs to be installed with apt-cache search xxx, or Google. Once this is done, repeat the installation steps until you are successful.
The following modules are also needed and must be installed separately.
The following modules are also needed and must be installed separately.
The modules Parallel Python and vo.table are only required since AsPyLib version 1.2.0.
Windows
On Windows, the following error may occur during installation of vo.table:
error: Unable to find vcvarsall.bat
This problem is solved by performing the following steps:
[build]
compiler=mingw32
Then, re-start the installation of vo.table, now it should work.
The solution was found at this link. In case of any other difficulty, some help can be found quickly on the very active AstroPy mailing list.