› Forums › Variable Stars › Introducing MetroPSF – a program for ensemble photometry › not opening images
I can get the program to run now, but when I open an image, only the FITS header loads in the lower panel – the image itself does not load.
I note that the Command Prompt window states the following:
WARNING: Astrometry.net API key not found in configuration file [astroquery.astrometry_net.core]
WARNING: You need to manually edit the configuration file and add it [astroquery.astrometry_net.core]
WARNING: You may also register it for this session with AstrometryNet.key = ‘XXXXXXXX’ [astroquery.astrometry_net.core]
Exception in Tkinter callback
Traceback (most recent call last):
File “C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0libtkinter__init__.py”, line 1892, in __call__
return self.func(*args)
File “C:metropsfmetropsf.py”, line 593, in update_histogram_high
self.update_display()
File “C:metropsfmetropsf.py”, line 502, in update_display
self.display_image()
File “C:metropsfmetropsf.py”, line 91, in display_image
generate_FITS_thumbnail(self.histogram_slider_low, self.histogram_slider_high, self.zoom_level)
File “C:metropsfmetropsf.py”, line 57, in generate_FITS_thumbnail
generated_image = Image.fromarray(image_data)
NameError: name ‘image_data’ is not defined