dstndstn / astrometry.net

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

AttributeError in plotstuff.py #200

Closed gvnnlgl closed 3 years ago

gvnnlgl commented 3 years ago

While using plotann.py (version 0.80), I am getting an attribute error for line 62 of plotstuff.py (final line of def getattr in Plotstuff class:

return self.pargs.getattr(name)

However I get both solve-field and plot-constellations generate annotated images correctly... I am not enough expert in python to understand if there is a problem with the use of getattr or is this a symptom of incomplete installation?

gvnnlgl commented 3 years ago

Here is the complete test output:

... :~/code/static $ export PYTHONPATH=${PYTHONPATH}:/usr/local/astrometry/lib/python
... :~/code/static $ sudo python3 /usr/local/astrometry/bin/plotann.py shoot_lyr.new shoot_lyr.jpg shoot_lyr-ann.png -v

Traceback (most recent call last): File "/usr/local/astrometry/bin/plotann.py", line 368, in anns = get_annotations(plot.wcs, opt) File "/usr/local/astrometry/lib/python/astrometry/blind/plotstuff.py", line 62, in getattr return self.pargs.getattr(name) AttributeError: 'plot_args' object has no attribute 'getattr'

dstndstn commented 3 years ago

This is fixed in the 0.82 release.

On Fri, Sep 18, 2020 at 5:08 AM gvnnlgl notifications@github.com wrote:

Here is the complete test output:

... :/code/static $ export PYTHONPATH=${PYTHONPATH}:/usr/local/astrometry/lib/python ... :/code/static $ sudo python3 /usr/local/astrometry/bin/plotann.py shoot_lyr.new shoot_lyr.jpg shoot_lyr-ann.png -v

Traceback (most recent call last): File "/usr/local/astrometry/bin/plotann.py", line 368, in anns = get_annotations(plot.wcs, opt) File "/usr/local/astrometry/lib/python/astrometry/blind/plotstuff.py", line 62, in getattr return self.pargs.getattr(name) AttributeError: 'plot_args' object has no attribute 'getattr'

— 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/200#issuecomment-694751719, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEH7K3UZ7J7L6IAITG7I3SGMPQNANCNFSM4RRTPYKA .

gvnnlgl commented 3 years ago

Thanks, I will upgrade then... Please point me to update instructions if any, I couldn't find... Or maybe I just delete all /usr/local/astrometry and roll make, make py, make extra, make install again

dstndstn commented 3 years ago

Yep, it should work fine to just delete /usr/local/astrometry and reinstall. (Move any index or config files you might have in /usr/local/astrometry/data or etc)