<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1">OK, so I managed to resolve that error by adding to
sys.path like so (line 2):<br>
<br>
<blockquote type="cite">import os, sys<br>
sys.path.append('/var/www/slidetest')<br>
from deepzoom_server import app as application<br>
application.config.update({<br>
'DEEPZOOM_SLIDE':
'/var/www/slidetest/openslide_testdata/CMU-1.svs',<br>
'DEBUG': True,<br>
})<br>
<br>
</blockquote>
<br>
but now I get a new error I am guessing is related to the
specification of DEEPZOOM_SLIDE* (and enabling DEBUG does not
replace the generic error page I see in the browser):<br>
*because making a similar path append in a file that imports
slidedeck.py, the browser successfully loads the template, but
under Associated Images it says "None" and there is no image
loaded. I double-checked and the path specified is correct. So I
think I just need to tell it where to find the files and I must be
missing some detail of that process.<br>
<br>
<blockquote type="cite">[Mon Jan 13 16:17:32.008567 2014] [:error]
[pid 16560] [remote 136.159.176.124:52105] mod_wsgi (pid=16560):
Exception occurred processing WSGI script
'/var/www/slidetest/deepzoom.wsgi'.<br>
[Mon Jan 13 16:17:32.008610 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] Traceback (most recent call last):<br>
[Mon Jan 13 16:17:32.008624 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] File
"/usr/lib/python2.7/dist-packages/flask/app.py", line 1836, in
__call__<br>
[Mon Jan 13 16:17:32.008990 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] return self.wsgi_app(environ,
start_response)<br>
[Mon Jan 13 16:17:32.009000 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] File
"/usr/lib/python2.7/dist-packages/flask/app.py", line 1820, in
wsgi_app<br>
[Mon Jan 13 16:17:32.009013 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] response =
self.make_response(self.handle_exception(e))<br>
[Mon Jan 13 16:17:32.009018 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] File
"/usr/lib/python2.7/dist-packages/flask/app.py", line 1403, in
handle_exception<br>
[Mon Jan 13 16:17:32.009026 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] reraise(exc_type, exc_value, tb)<br>
[Mon Jan 13 16:17:32.009030 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] File
"/usr/lib/python2.7/dist-packages/flask/app.py", line 1817, in
wsgi_app<br>
[Mon Jan 13 16:17:32.009037 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] response =
self.full_dispatch_request()<br>
[Mon Jan 13 16:17:32.009041 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] File
"/usr/lib/python2.7/dist-packages/flask/app.py", line 1477, in
full_dispatch_request<br>
[Mon Jan 13 16:17:32.009048 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] rv = self.handle_user_exception(e)<br>
[Mon Jan 13 16:17:32.009052 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] File
"/usr/lib/python2.7/dist-packages/flask/app.py", line 1381, in
handle_user_exception<br>
[Mon Jan 13 16:17:32.009059 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] reraise(exc_type, exc_value, tb)<br>
[Mon Jan 13 16:17:32.009063 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] File
"/usr/lib/python2.7/dist-packages/flask/app.py", line 1475, in
full_dispatch_request<br>
[Mon Jan 13 16:17:32.009069 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] rv = self.dispatch_request()<br>
[Mon Jan 13 16:17:32.009073 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] File
"/usr/lib/python2.7/dist-packages/flask/app.py", line 1461, in
dispatch_request<br>
[Mon Jan 13 16:17:32.009080 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] return
self.view_functions[rule.endpoint](**req.view_args)<br>
[Mon Jan 13 16:17:32.009084 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] File
"/var/www/slidetest/deepzoom_server.py", line 67, in index<br>
[Mon Jan 13 16:17:32.009128 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] for name in app.associated_images)<br>
[Mon Jan 13 16:17:32.009142 2014] [:error] [pid 16560] [remote
136.159.176.124:52105] AttributeError: 'Flask' object has no
attribute 'associated_images'<br>
</blockquote>
<br>
<br>
</font>
<div class="moz-cite-prefix">On 1/13/2014 3:35 PM, Mark Ungrin
wrote:<br>
</div>
<blockquote cite="mid:52D46A20.9040408@ucalgary.ca" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<font size="-1">in the apache error.log I see:<br>
<br>
<blockquote type="cite">[Mon Jan 13 15:34:31.730505 2014]
[:error] [pid 16019] [remote 136.159.176.124:51402] mod_wsgi
(pid=16019): Target WSGI script
'/var/www/slidetest/deepzoom.wsgi' cannot be loaded as Python
module.<br>
[Mon Jan 13 15:34:31.730560 2014] [:error] [pid 16019] [remote
136.159.176.124:51402] mod_wsgi (pid=16019): Exception
occurred processing WSGI script
'/var/www/slidetest/deepzoom.wsgi'.<br>
[Mon Jan 13 15:34:31.730608 2014] [:error] [pid 16019] [remote
136.159.176.124:51402] Traceback (most recent call last):<br>
[Mon Jan 13 15:34:31.730653 2014] [:error] [pid 16019] [remote
136.159.176.124:51402] File
"/var/www/slidetest/deepzoom.wsgi", line 2, in <module><br>
[Mon Jan 13 15:34:31.730716 2014] [:error] [pid 16019] [remote
136.159.176.124:51402] from deepzoom_server import app as
application<br>
[Mon Jan 13 15:34:31.730758 2014] [:error] [pid 16019] [remote
136.159.176.124:51402] ImportError: No module named
deepzoom_server<br>
</blockquote>
<br>
I assume I need to specify a path somewhere?<br>
<br>
thanks<br>
<br>
Mark<br>
<br>
</font>
<div class="moz-cite-prefix">On 1/13/2014 2:51 PM, Benjamin
Gilbert wrote:<br>
</div>
<blockquote cite="mid:52D45FF3.6050009@cs.cmu.edu" type="cite">
<pre wrap="">On 01/13/2014 03:43 PM, Mark Ungrin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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
the code is this file is:
</pre>
<blockquote type="cite">
<pre wrap="">import os, sys
from deepzoom_server import app as application
application.config.update({
'DEEPZOOM_SLIDE': '/var/www/slidetest/openslide_testdata/CMU-1.svs',
})
</pre>
</blockquote>
<pre wrap="">...and now I'm kind of stuck. Any suggestions on what to try next?
</pre>
</blockquote>
<pre wrap="">If the server error is coming from Apache, there should be more
information in the Apache error log. If it's coming from deepzoom.wsgi,
you can enable debugging:
application.config.update({
'DEEPZOOM_SLIDE': '/var/www/slidetest/openslide_testdata/CMU-1.svs',
'DEBUG': True,
})
which should replace the generic "server error" page with a debug traceback.
--Benjamin Gilbert
_______________________________________________
openslide-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:openslide-users@lists.andrew.cmu.edu">openslide-users@lists.andrew.cmu.edu</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:mark.ungrin@ucalgary.ca">mark.ungrin@ucalgary.ca</a>
<a moz-do-not-send="true" 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>
</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>