Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XPA Error "No response from server during handshake" #215

Open
jchavez1992 opened this issue Sep 8, 2020 · 1 comment
Open

XPA Error "No response from server during handshake" #215

jchavez1992 opened this issue Sep 8, 2020 · 1 comment

Comments

@jchavez1992
Copy link

I am running imexam on a MacOS 10.14.6 using the following setup:

conda 4.8.4
python 3.6.10
ds9 8.1
imexam 0.8.1

I run the following lines in a Python console of PyCharm, and it works great:

viewer = imexam.connect() 
viewer.view(stamp)     # 'stamp' is a numpy array extracted from a fits image
viewer.scale()
viewer.imexam()
viewer.close()

When I try to run it in a script, or in a python session in the terminal, I get the following error: imexam.imexamxpa.XpaException: b'XPA$ERROR: no response from server during handshake (?:?)\n'
Sometimes it complains at imexam.connect(), other times it stops atviewer.view(stamp).

I made sure the XPA_METHOD="local". I also tried adding a time.sleep(2) after the connect(), but I am still having trouble. I have also tried going back to ds9=8.0.1, which works for another XPA issue reported here #186

P.S. Details of the iPython console where it does work:

miniconda3/envs/dragons/bin/python "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/pydevconsole.py" --mode=client --port=57250
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/Users/jchavez/Work/GSAOIFlats'])
Python 3.6.10 |Anaconda, Inc.| (default, May  7 2020, 23:06:31) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.16.1 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.16.1
Python 3.6.10 |Anaconda, Inc.| (default, May  7 2020, 23:06:31) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
@sosey
Copy link
Member

sosey commented Sep 8, 2020

interesting. Thankyou for the detailed information! I'll try and dig into this with some other bug fixes I hope to push in the next couple weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants