Install advice?

Mark Ungrin mdungrin at ucalgary.ca
Mon Jan 13 18:28:50 EST 2014


OK, so I managed to resolve that error by adding to sys.path like so
(line 2):

> import os, sys
> sys.path.append('/var/www/slidetest')
> from deepzoom_server import app as application
> application.config.update({
>     'DEEPZOOM_SLIDE': '/var/www/slidetest/openslide_testdata/CMU-1.svs',
>      'DEBUG': True,
> })
>

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):
*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.

> [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'.
> [Mon Jan 13 16:17:32.008610 2014] [:error] [pid 16560] [remote
> 136.159.176.124:52105] Traceback (most recent call last):
> [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__
> [Mon Jan 13 16:17:32.008990 2014] [:error] [pid 16560] [remote
> 136.159.176.124:52105]     return self.wsgi_app(environ, start_response)
> [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
> [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))
> [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
> [Mon Jan 13 16:17:32.009026 2014] [:error] [pid 16560] [remote
> 136.159.176.124:52105]     reraise(exc_type, exc_value, tb)
> [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
> [Mon Jan 13 16:17:32.009037 2014] [:error] [pid 16560] [remote
> 136.159.176.124:52105]     response = self.full_dispatch_request()
> [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
> [Mon Jan 13 16:17:32.009048 2014] [:error] [pid 16560] [remote
> 136.159.176.124:52105]     rv = self.handle_user_exception(e)
> [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
> [Mon Jan 13 16:17:32.009059 2014] [:error] [pid 16560] [remote
> 136.159.176.124:52105]     reraise(exc_type, exc_value, tb)
> [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
> [Mon Jan 13 16:17:32.009069 2014] [:error] [pid 16560] [remote
> 136.159.176.124:52105]     rv = self.dispatch_request()
> [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
> [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)
> [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
> [Mon Jan 13 16:17:32.009128 2014] [:error] [pid 16560] [remote
> 136.159.176.124:52105]     for name in app.associated_images)
> [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'


On 1/13/2014 3:35 PM, Mark Ungrin wrote:
> in the apache error.log I see:
>
>> [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.
>> [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'.
>> [Mon Jan 13 15:34:31.730608 2014] [:error] [pid 16019] [remote
>> 136.159.176.124:51402] Traceback (most recent call last):
>> [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>
>> [Mon Jan 13 15:34:31.730716 2014] [:error] [pid 16019] [remote
>> 136.159.176.124:51402]     from deepzoom_server import app as application
>> [Mon Jan 13 15:34:31.730758 2014] [:error] [pid 16019] [remote
>> 136.159.176.124:51402] ImportError: No module named deepzoom_server
>
> I assume I need to specify a path somewhere?
>
> thanks
>
> Mark
>
> On 1/13/2014 2:51 PM, Benjamin Gilbert wrote:
>> On 01/13/2014 03:43 PM, Mark Ungrin wrote:
>>> 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:
>>>> import os, sys
>>>> from deepzoom_server import app as application
>>>> application.config.update({
>>>>     'DEEPZOOM_SLIDE': '/var/www/slidetest/openslide_testdata/CMU-1.svs',
>>>> })
>>>>
>>>>
>>> ...and now I'm kind of stuck. Any suggestions on what to try next?
>> 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
>> openslide-users at lists.andrew.cmu.edu
>> https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users
>>
>
> -- 
> 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: mark.ungrin at ucalgary.ca
> http://www.ucalgary.ca/ungrinlab
>
> 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.

-- 
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: mark.ungrin at ucalgary.ca
http://www.ucalgary.ca/ungrinlab

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20140113/609f710a/attachment.html 


More information about the openslide-users mailing list