python - numdisplay ds9 crashes on Debian linux -


i started use python astronomer , have been using package numdisplay display , manipulate images on sao ds9. computer lab of university has updated linux version debian 7.1. running python 2.7.3 python 0.13.1 , numdisplay v.1.5.6, pyds9 v.1.7 , pyfits v2.3.1.

i using display procedure given in http://stsdas.stsci.edu/perry/pydatatut.pdf.

once loaded fits image , opened ds9 interface, try display image on ds9 ds9 crashes. hereafter steps use in interactive mode:

in [2]: import pyfits pf

in [3]: import numdisplay nd

in [4]: import ds9

in [5]: ds9.ds9()

out[5]: ds9.ds9 @ 0xa3e870c

in [6]: im = pf.getdata('m52b.fit')

in [7]: nd.display(im)

and following error message:

    error                                     traceback (most recent call last)     <ipython-input-7-6988a1e88909> in <module>() ----> 1 nd.display(im)      /usr/local/lib/python2.7/dist-packages/numdisplay/__init__.pyc in display(self, pix, name, bufname, z1, z2, transform, zscale, contrast, scale, offset, frame)     395      396         # initialize specified frame buffer --> 397         _d.setframe(self.frame)     398         _d.eraseframe()     399       /usr/local/lib/python2.7/dist-packages/numdisplay/displaydev.pyc in setframe(self, frame_num)     405      406         code = self._lut | self._command --> 407         self._writeheader(self._iis_write, code, -1, 0, 0, 0, 0)     408      409         # update user specified frame number      /usr/local/lib/python2.7/dist-packages/numdisplay/displaydev.pyc in _writeheader(self, tid, subunit, thingct, x, y, z, t)     540         sum = 0xffff - (sum & 0xffff)     541         a[3] = sum  --> 542         self._write(a.tostring())     543      544     def close(self, os_close=os.close):  /usr/local/lib/python2.7/dist-packages/numdisplay/displaydev.pyc in _write(self, s)     578             n = len(s)     579             while n>0: --> 580                 nwritten = self._socket.send(s[-n:])     581                 n -= nwritten     582                 if nwritten <= 0:  error: [errno 104] connection reset peer  in [8]: 

can me?

thank you

marco

the error message means "i sending data remote side closed connection."

so need check error log of server find out problem was. doesn't mean client correct or not (the client might send illegal data server making crash) need debug server first find out reason aborted connection is.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -