I am running imexam with DS9 on Linux (Rocky8), mostly non-interactively (calling functions through Python scripts). This also happens when I run it on my Mac laptop (Big Sur 11.2.3).
If I load a FITS image and run imexam(), everything works as expected except for the arrow keys, which crash the program with an XPA Exception. Here is the launch sequence from my script:
And here is the error I get when I use an arrow key in DS9:
Traceback (most recent call last):
File "/Users/eliothalley/Astronomy/test.py", line 59, in
inp = viewer.imexam()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/imexam/connect.py", line 150, in imexam
self._run_imexam()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/imexam/connect.py", line 252, in _run_imexam
self.cursor(x=x, y=y)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/imexam/connect.py", line 348, in cursor
self.window.cursor(**kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/imexam/ds9_viewer.py", line 931, in cursor
self.set("cursor {0:s} {1:s}".format(str(x), str(y)))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/imexam/ds9_viewer.py", line 667, in set
self.xpa.set(param, buf)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/imexam/xpa_wrap.py", line 18, in set
super(XPA, self).set(param.encode('utf-8', 'strict'), buf)
File "wrappers/xpa.pyx", line 177, in imexam.imexamxpa.xpa.set
File "wrappers/xpa.pyx", line 147, in imexam.imexamxpa._set
imexam.imexamxpa.XpaException: b'XPA$ERROR parse error, expecting: integer, found 485.23958 (DS9:myds9 7f000001:54597)\n'
I am running imexam with DS9 on Linux (Rocky8), mostly non-interactively (calling functions through Python scripts). This also happens when I run it on my Mac laptop (Big Sur 11.2.3).
If I load a FITS image and run imexam(), everything works as expected except for the arrow keys, which crash the program with an XPA Exception. Here is the launch sequence from my script:
And here is the error I get when I use an arrow key in DS9:
Let me know if any other info would be helpful!