dstndstn / astrometry.net

Astrometry.net -- automatic recognition of astronomical images
http://astrometry.net
Other
662 stars 186 forks source link

Fixed nonexistent __getattr__ on Python3/Ubuntu 20.04 #190

Closed hronellenfitsch closed 4 years ago

hronellenfitsch commented 4 years ago

This fixes issue #189 by using the getattr builtin function instead of the getattr method, which might not exist.

dstndstn commented 4 years ago

This is fantastic, thank you for the bug report and the fix!!

dstndstn commented 4 years ago

How are you using the code on Ubuntu -- via an apt package, or from source? Would it be helpful if I cut a new release with this fix?

hronellenfitsch commented 4 years ago

I installed using the doc/install_astrometry_on_linux.sh script.

It might be useful to also know that the python-pip package no longer exists in 20.04, instead there is only python3-pip, which installs the pip3 command. I also added PYTHON_SCRIPT="/usr/bin/env python3" to the make install command.