dstndstn / astrometry.net

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

plotann.py fails on Ubuntu 20.04/python3 #189

Closed hronellenfitsch closed 4 years ago

hronellenfitsch commented 4 years ago

Hello.

I recently installed astrometry-latest (0.80) on Ubuntu 20.04 with setting the python executable to python3 (which is the default on 20.04). Following this, plotann.py failed with an AttributeError:

AttributeError: 'plot_args' object has no attribute '__getattr__'

This seems to be an issue with the plot_args object and SWIG. It turns out that it can be fixed by changing line 62 in plotstuff.py from

return self.pargs.__getattr__(name)

to

return getattr(self.pargs, name)

I hope this report helps others with the same issue.

dstndstn commented 4 years ago

Would you be able to send a Pull Request with this change?

On Sat, Jun 13, 2020 at 11:35 AM Henrik Ronellenfitsch < notifications@github.com> wrote:

Hello.

I recently installed astrometry-latest (0.80) on Ubuntu 20.04 with setting the python executable to python3 (which is the default on 20.04). Following this, plotann.py failed with an AttributeError:

AttributeError: 'plot_args' object has no attribute 'getattr'

This seems to be an issue with the plot_args object and SWIG. It turns out that it can be fixed by changing line 62 in plotstuff.py from

return self.pargs.getattr(name)

to

return getattr(self.pargs, name)

I hope this report helps others with the same issue.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEH7LKRQD4JU6V4GW6IELRWOME3ANCNFSM4N5BBRYA .

hronellenfitsch commented 4 years ago

Thanks, I created a pull request. If it somehow does not adhere to the standards of this project, please let me know.

dstndstn commented 4 years ago

Thanks again!