The problem here is that with astropy-1.3, doctests are buggy: https://github.com/astropy/astropy/issues/5670 A workaround currently is to disable doctests during the build: python$* setup.py test --skip-docs -vv --args -v Cheers Ole