<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi there,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm experimenting with Jalview <i>as Javascript</i> talking to Chimera over the latter's REST server.</p>
<p style="margin-top:0;margin-bottom:0">The first few 'list models' commands work fine, but when I send a command 'open cifID:4zhp' I (usually but not always) get an error '[Errno 32] Broken Pipe' in Chimera. Is there a clue in the stack traces below as to
 the reason for this? Thanks.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Chimera 1.12 (build 41481) on OSX Sierra 10.12.6.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>REST server on host 127.0.0.1 port 53135</div>
<div>127.0.0.1 - - [01/Feb/2019 10:06:14] "GET /run?command=list%20models%20type%20molecule HTTP/1.1" 200 -</div>
<div>127.0.0.1 - - [01/Feb/2019 10:32:03] "GET /run?command=list%20models%20type%20molecule HTTP/1.1" 200 -</div>
<div>127.0.0.1 - - [01/Feb/2019 10:32:03] "GET /run?command=list%20models%20type%20molecule HTTP/1.1" 200 -</div>
<div>127.0.0.1 - - [01/Feb/2019 10:32:03] "GET /run?command=open%20cifID%3A4zhp HTTP/1.1" 200 -</div>
<div>Traceback (most recent call last):</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/chimera/threadq.py", line 50, in _checkThread</div>
<div>    callable()</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/RESTServer/__init__.py", line 83, in run</div>
<div>    _run(q, h, args)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/RESTServer/__init__.py", line 163, in _run</div>
<div>    replyobj.error(str(v) + '\n')</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/chimera/replyobj.py", line 637, in error</div>
<div>    _replyStack[-1].error(s)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/RESTServer/__init__.py", line 184, in writeLine</div>
<div>    self.write(s)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/RESTServer/__init__.py", line 191, in write</div>
<div>    self.f.write(s)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/socket.py", line 328, in write</div>
<div>    self.flush()</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/socket.py", line 307, in flush</div>
<div>    self._sock.sendall(view[write_offset:write_offset+buffer_size])</div>
<div>error: [Errno 32] Broken pipe</div>
<div>thread callback:</div>
<div>error: [Errno 32] Broken pipe</div>
<div><br>
</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/socket.py", line 307, in flush</div>
<div>    self._sock.sendall(view[write_offset:write_offset+buffer_size])</div>
<div><br>
</div>
<div>See reply log for Python traceback.</div>
<div><br>
</div>
<div><br>
</div>
<div>----------------------------------------</div>
<div>Exception happened during processing of request from ('127.0.0.1', 53326)</div>
<div>Traceback (most recent call last):</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock</div>
<div>    self.process_request(request, client_address)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/SocketServer.py", line 321, in process_request</div>
<div>    self.finish_request(request, client_address)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/SocketServer.py", line 334, in finish_request</div>
<div>    self.RequestHandlerClass(request, client_address, self)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/SocketServer.py", line 657, in __init__</div>
<div>    self.finish()</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/SocketServer.py", line 716, in finish</div>
<div>    self.wfile.close()</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/socket.py", line 283, in close</div>
<div>    self.flush()</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/socket.py", line 307, in flush</div>
<div>    self._sock.sendall(view[write_offset:write_offset+buffer_size])</div>
<div>error: [Errno 32] Broken pipe</div>
<div>----------------------------------------</div>
<div>127.0.0.1 - - [01/Feb/2019 10:32:03] "GET /run?command=list%20models%20type%20molecule HTTP/1.1" 200 -</div>
<div>127.0.0.1 - - [01/Feb/2019 10:32:03] "GET /run?command=list%20model%20spec%20%230%20attribute%20color HTTP/1.1" 200 -</div>
<div>127.0.0.1 - - [01/Feb/2019 10:32:03] "GET /run?command=list%20residues%20spec%20%230 HTTP/1.1" 200 -</div>
<div>Traceback (most recent call last):</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/chimera/threadq.py", line 50, in _checkThread</div>
<div>    callable()</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/RESTServer/__init__.py", line 83, in run</div>
<div>    _run(q, h, args)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/RESTServer/__init__.py", line 159, in _run</div>
<div>    chimera.runCommand(cmd)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/chimera/__init__.py", line 2750, in runCommand</div>
<div>    makeCommand(*args, **kw)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/Midas/midas_text.py", line 69, in makeCommand</div>
<div>    f(c, args)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/ListInfo/ChimeraExtension.py", line 20, in command</div>
<div>    self.module("cmdline").process(cmdName, args)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/ListInfo/cmdline.py", line 12, in process</div>
<div>    doList(args)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/ListInfo/cmdline.py", line 543, in doList</div>
<div>    doExtensionFunc(func, otherArgs, **kwargs)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/Midas/midas_text.py", line 451, in doExtensionFunc</div>
<div>    extFunc(*tuple(processedArgs), **kw)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/ListInfo/cmdline.py", line 192, in listr</div>
<div>    replyobj.info(info)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/chimera/replyobj.py", line 625, in info</div>
<div>    _replyStack[-1].info(s)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/RESTServer/__init__.py", line 202, in message</div>
<div>    self.writeLine(s)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/RESTServer/__init__.py", line 184, in writeLine</div>
<div>    self.write(s)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/share/RESTServer/__init__.py", line 191, in write</div>
<div>    self.f.write(s)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/socket.py", line 328, in write</div>
<div>    self.flush()</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/socket.py", line 307, in flush</div>
<div>    self._sock.sendall(view[write_offset:write_offset+buffer_size])</div>
<div>error: [Errno 32] Broken pipe</div>
<div>thread callback:</div>
<div>error: [Errno 32] Broken pipe</div>
<div><br>
</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/socket.py", line 307, in flush</div>
<div>    self._sock.sendall(view[write_offset:write_offset+buffer_size])</div>
<div><br>
</div>
<div>See reply log for Python traceback.</div>
<div><br>
</div>
<div><br>
</div>
<div>----------------------------------------</div>
<div>Exception happened during processing of request from ('127.0.0.1', 53329)</div>
<div>Traceback (most recent call last):</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock</div>
<div>    self.process_request(request, client_address)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/SocketServer.py", line 321, in process_request</div>
<div>    self.finish_request(request, client_address)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/SocketServer.py", line 334, in finish_request</div>
<div>    self.RequestHandlerClass(request, client_address, self)</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/SocketServer.py", line 657, in __init__</div>
<div>    self.finish()</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/SocketServer.py", line 716, in finish</div>
<div>    self.wfile.close()</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/socket.py", line 283, in close</div>
<div>    self.flush()</div>
<div>  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/socket.py", line 307, in flush</div>
<div>    self._sock.sendall(view[write_offset:write_offset+buffer_size])</div>
<div>error: [Errno 32] Broken pipe</div>
<div>----------------------------------------</div>
<div>127.0.0.1 - - [01/Feb/2019 10:32:03] "GET /run?command=focus HTTP/1.1" 200 -</div>
<div>127.0.0.1 - - [01/Feb/2019 10:32:03] "GET /run?command=list%20models%20type%20molecule HTTP/1.1" 200 -</div>
<div>127.0.0.1 - - [01/Feb/2019 10:32:05] "GET /run?command=color%20%238db520%20%230%3A2-98.A HTTP/1.1" 200 -</div>
<div>127.0.0.1 - - [01/Feb/2019 10:32:05] "GET /run?command=color%20%238db520%20%230%3A2-98.A HTTP/1.1" 200 -</div>
<div><br>
</div>
<br>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<a href="" style="font-family:Times" id="LPNoLP"><img width="1" height="2" alt="Email signature" style="user-select: none;" src="https://www.dundee.ac.uk/media/dundeewebsite/emailsignature/tiny.png"></a>
<table border="0" cellpadding="0" cellspacing="0" style="font-family:Times; border-collapse:collapse; border-width:0px">
<tbody>
<tr>
<td colspan="4" height="10"> </td>
</tr>
<tr>
<td style="font-size:10px; width:73px!important; max-width:73px!important"><a href="http://uod.ac.uk/sig-home" rel="nofollow" id="LPNoLP"><img width="73" height="73" alt="University of Dundee shield logo" style="display: block; user-select: none;" src="https://www.dundee.ac.uk/media/dundeewebsite/themes/brandnewhope/img/university-of-dundee-email-favicon.png"></a></td>
<td style="width:12px"> </td>
<td class="uod-03" style="border-left:1px solid rgb(67,101,226); width:11px"> </td>
<td width="430">
<p style="font-size:13px; color:rgb(67,101,226); line-height:20px; font-family:Calibri,sans-serif">
<strong style="letter-spacing:1.2px; font-size:14px">Mungo Carstairs</strong><br>
Jalview Computational Scientist</p>
<p style="font-size:13px; color:rgb(67,101,226); line-height:20px; font-family:Calibri,sans-serif">
The Barton Group<br>
Division of Computational Biology</p>
<p style="font-size:13px; color:rgb(67,101,226); line-height:20px; font-family:Calibri,sans-serif">
School of Life Sciences</p>
<p style="font-size:13px; color:rgb(67,101,226); line-height:20px; font-family:Calibri,sans-serif">
University of Dundee, Dundee, Scotland, UK</p>
<p style="font-size:13px; color:rgb(67,101,226); line-height:20px; font-family:Calibri,sans-serif">
<a href="http://www.jalview.org" class="OWAAutoLink" id="LPNoLP">www.jalview.org</a></p>
<p style="font-size:13px; color:rgb(67,101,226); line-height:20px; font-family:Calibri,sans-serif">
<a href="http://www.compbio.dundee.ac.uk" class="OWAAutoLink" id="LPNoLP">www.compbio.dundee.ac.uk</a> <br>
<a href="mailto:g.m.carstairs@dundee.ac.uk" style="text-decoration:none; color:rgb(67,101,226)" id="LPNoLP">g.m.carstairs@dundee.ac.uk</a></p>
</td>
</tr>
<tr>
<td colspan="4" height="10"></td>
</tr>
<tr>
<td colspan="4"><span style="font-size:12px; color:rgb(67,101,226); line-height:20px; font-family:Calibri,sans-serif"><a href="http://uod.ac.uk/sig-fb" id="LPNoLP"><img width="35" height="35" alt="University of Dundee Facebook" style="max-width: 32px; margin-right: 8px; height: auto !important; user-select: none;" src="https://www.dundee.ac.uk/media/dundeewebsite/themes/brandnewhope/img/baxter-blue-facebook.png"></a> <a href="http://uod.ac.uk/sig-tw" alt="University of Dundee Twitter" id="LPNoLP"><img width="35" height="35" alt="University of Dundee Twitter" style="max-width: 32px; margin-right: 8px; height: auto !important; user-select: none;" src="https://www.dundee.ac.uk/media/dundeewebsite/themes/brandnewhope/img/baxter-blue-twitter.png"></a> <a href="http://uod.ac.uk/sig-li" id="LPNoLP"><img width="35" height="35" alt="University of Dundee LinkedIn" style="max-width: 32px; margin-right: 8px; height: auto !important; user-select: none;" src="https://www.dundee.ac.uk/media/dundeewebsite/themes/brandnewhope/img/baxter-blue-linkedin.png"></a> <a href="http://uod.ac.uk/sig-yt" id="LPNoLP"><img width="35" height="35" alt="University of Dundee YouTube" style="max-width: 32px; margin-right: 8px; height: auto !important; user-select: none;" src="https://www.dundee.ac.uk/media/dundeewebsite/themes/brandnewhope/img/baxter-blue-youtube.png"></a> <a href="http://uod.ac.uk/sig-ig" id="LPNoLP"><img width="35" height="35" alt="University of Dundee Instagram" style="max-width: 32px; margin-right: 8px; height: auto !important; user-select: none;" src="https://www.dundee.ac.uk/media/dundeewebsite/themes/brandnewhope/img/baxter-blue-instagram.png"></a> <a href="http://uod.ac.uk/sig-sc" id="LPNoLP"><img width="35" height="35" alt="University of Dundee Snapchat" style="max-width: 32px; margin-right: 8px; height: auto !important; user-select: none;" src="https://www.dundee.ac.uk/media/dundeewebsite/themes/brandnewhope/img/baxter-blue-snapchat.png"></a> </span></td>
</tr>
<tr>
<td colspan="4"><span style="font-size:11px; color:rgb(136,136,136); font-family:Calibri,sans-serif; line-height:12px"><a href="http://uod.ac.uk/sig-strapline" style="text-decoration:none; color:rgb(67,101,226)" id="LPNoLP"><strong>We're Scottish University
 of the Year again!</strong></a><br>
The Times / Sunday Times Good University Guide 2016 and 2017</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>