@knro I see that you posted a similar question on the astrometry.net github repo, I did in fact have multiple versions laying around. I cleaned up a bunch of the old ones and it seems better now. try:
sudo find / -name image2pnm\* /home/jamie/projects/astrometry.net/util/image2pnm.py /home/jamie/projects/astrometry.net/bin/image2pnm /usr/local/astrometry/bin/image2pnm /usr/local/astrometry/lib/python/astrometry/util/image2pnm.py