<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1">Hi and thanks very much. I have been working on the
setup - unfortunately I'm new to WSGI as well so that's added some
speed bumps as well.<br>
<br>
I have apache2 working with WSGI now, with the following outcomes:<br>
<br>
(my files are in /var/www/slidetest/)<br>
<br>
when I go to the web site and specify /slidetest/ I can see the
directory listing<br>
</font><br>
<font size="-1"><font size="-1">when I go to /slidetest/myapp.wsgi,
it does what it is supposed to ("Hello world"), so WSGI is
apparently set up OK<br>
</font></font><font size="-1"><font size="-1"><font size="-1">when
I go to /myapp, which is aliased to /slidetest/myapp.wsgi, it
also works, so I assume this means aliases are not the problem</font></font></font><br>
<font size="-1">when I go to /slidetest/deepzoom.wsgi, (directly or
via an alias) I get "Internal Server Error..." and the generic
"contact the server administrator" message<br>
<br>
the code is this file is:<br>
<blockquote type="cite"><br>
import os, sys<br>
from deepzoom_server import app as application<br>
application.config.update({<br>
'DEEPZOOM_SLIDE':
'/var/www/slidetest/openslide_testdata/CMU-1.svs',<br>
})<br>
<br>
<br>
</blockquote>
...and now I'm kind of stuck. Any suggestions on what to try next?<br>
<br>
thanks<br>
<br>
Mark<br>
<br>
</font>
<div class="moz-cite-prefix">On 1/11/2014 2:00 AM, Benjamin Gilbert
wrote:<br>
</div>
<blockquote cite="mid:52D1082D.3050103@cs.cmu.edu" type="cite">
<pre wrap="">Hi Mark,
On 01/10/2014 02:00 PM, Mark Ungrin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I successfully installed via apt-get install openslide-tools, and am
now looking at the wiki instructions to get the server working.
</pre>
</blockquote>
<pre wrap="">
The wiki instructions are for running deepzoom_server with Apache, but
that's not really required. For testing purposes or small sites, you
can run it directly from the command line.
</pre>
<blockquote type="cite">
<pre wrap="">Did the openslide-tools install also bring the Python stuff along with
it or do I need to do that separately?
</pre>
</blockquote>
<pre wrap="">
Nope, you need to do it separately. Grab the OpenSlide Python tarball
from the download page, unpack, cd into the unpacked directory, and
"sudo python setup.py install". You will also need the python-imaging
and python-flask Ubuntu packages.
</pre>
<blockquote type="cite">
<pre wrap="">Also, if it did already install,
can anyone tell me where in the file tree I would find
deepzoom_server.py?
</pre>
</blockquote>
<pre wrap="">
deepzoom_server.py is in the examples/deepzoom directory of the source
tarball, and isn't actually installed anywhere.
</pre>
<blockquote type="cite">
<pre wrap="">Also, if I understand correctly, I will need to make
one copy of deepzoom.wsgi (with a different name) for each slide I want
to make accessible, is this correct?
</pre>
</blockquote>
<pre wrap="">
Correct. deepzoom_server.py is intended as an example of how to build a
server application, not as a real server itself.
SlideDeck is another demo application which can handle an entire
directory tree of slides:
<a class="moz-txt-link-freetext" href="https://github.com/bgilbert/slidedeck">https://github.com/bgilbert/slidedeck</a>
You can run it from the command line, or adapt the wiki instructions to
run it with Apache. In the Apache case, instead of DEEPZOOM_SLIDE, you
would set SLIDE_DIR to the directory containing your slides.
You will need to use an older version of SlideDeck:
<a class="moz-txt-link-freetext" href="https://github.com/bgilbert/slidedeck/tree/d53bc583">https://github.com/bgilbert/slidedeck/tree/d53bc583</a>
since the current one requires features not in the released version of
OpenSlide.
--Benjamin Gilbert
_______________________________________________
openslide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:openslide-users@lists.andrew.cmu.edu">openslide-users@lists.andrew.cmu.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users">https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Dr. Mark Ungrin, Ph.D.
Assistant Professor
Department of Comparative Biology & Experimental Medicine
HMRB 320, 3330 Hospital Drive NW
Calgary, AB T2N 4N1
University of Calgary, Faculty of Veterinary Medicine
Email: <a class="moz-txt-link-abbreviated" href="mailto:mark.ungrin@ucalgary.ca">mark.ungrin@ucalgary.ca</a>
<a class="moz-txt-link-freetext" href="http://www.ucalgary.ca/ungrinlab">http://www.ucalgary.ca/ungrinlab</a>
office: 403.210.6203
cell: 403.561.6817
lab: 403.210.6545
fax: 403.210.8821
The information contained in this e-mail is only for the use of the individual or entity to whom it is intended. Its contents (including any attachments) are confidential and may contain privileged information. If you are not an intended recipient you must not use, disclose, disseminate, copy or print its contents. If you receive this e-mail in error, please notify the sender by e-mail and delete and destroy the message and all copies.</pre>
</body>
</html>