Apologies! I’ve found the typo in my code which was causing issues! The python is working as I hoped – and the JS applet now displays .mrc files using the python output





From: Robert Hanson [mailto:hansonr@stolaf.edu]
Sent: 01 August 2014 15:16
To: jmol-users@lists.sourceforge.net
Subject: Re: [Jmol-users] Server-side scripts


Great! Or at least almost great!

"zapped" is the name given to the "current model" after the ZAP command. Something in your code is trying to load that as a file and, of course, not finding it. It's not Jmol code that is doing that, I think.

Web site for viewing?

probably need the report that is going to the JavaScript console "behind" the applet viewable with the drop-down  menu item "JavaScript Console"

You can add all sorts of debuging messages

document.title = ....





into JSmol.



On Fri, Aug 1, 2014 at 8:57 AM, <chris.wood@stfc.ac.uk> wrote:

Due to the setup of a server I’ve got, I’ve rewritten the part of the PHP script which deals with converting binary to base64 into python, including setting the correct headers; the output I get seems identical to the output from the original PHP script. However, running the file results in:


Unrecognized file format for file http://localhost/zapped




<title>Error response</title>




Is there anything I can do to get around this?!






Dr Chris Wood

STFC Rutherford Appleton Laboratory


OX11 0QX



Tel: +44(0)1235 567864

Tel: +44(0)7909 586624
Fax: +44(0)1235 567801


Skype: chris_c_wood



Scanned by iCritical.


Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
Jmol-users mailing list


Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN

If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900