solved
Stephanes-MacBook-Air:Downloads stephane$ /Applications/kstars.app/Contents/MacOS/astrometry/bin/solve-field -O --no-plots --no-verify --resort --downsample 2 ~/Downloads/tet.fits
Reading input file 1 of 1: "/Users/stephane/Downloads/tet.fits"...
Extracting sources...
Downsampling by 2...
simplexy: found 217 sources.
/Library/Python/2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
PyFITSDeprecationWarning) # noqa
Reading sort column "FLUX"
Sorting sort column
mmapping input file
Copying table header.
Writing row 0
Done
/Library/Python/2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
PyFITSDeprecationWarning) # noqa
Solving...
Reading file "/Users/stephane/Downloads/tet.axy"...
Field 1 did not solve (index index-4214.fits, field objects 1-10).
Field 1 did not solve (index index-4208.fits, field objects 1-10).
Field 1 did not solve (index index-4214.fits, field objects 11-20).
log-odds ratio 208.441 (3.34806e+90), 30 match, 0 conflict, 89 distractors, 36 index.
RA,Dec = (17.5927,87.7719), pixel scale 3.09922 arcsec/pix.
Hit/miss: Hit/miss: ++++++++++++-+--++++++-++--+++--+-+
+
+
+
Field 1: solved with index index-4208.fits.
Field 1 solved: writing to file /Users/stephane/Downloads/tet.solved to indicate this.
Field: /Users/stephane/Downloads/tet.fits
Field center: (RA,Dec) = (17.587121, 87.771751) deg.
Field center: (RA H:M:S, Dec D:M:S) = (01:10:20.909, +87:46:18.302).
Field size: 71.8397 x 53.701 arcminutes
Field rotation angle: up is 147.008 degrees E of N
Field parity: neg
Creating new FITS file "/Users/stephane/Downloads/tet.new"...
Stephanes-MacBook-Air:Downloads stephane$
I had to first install pip outside brew
pip.pypa.io/en/stable/installing/#installing-with-get-pip-py
then pip install pyfits
then brew install netpbm