Install advice?
Mark Ungrin
mdungrin at ucalgary.ca
Mon Jan 13 18:58:40 EST 2014
I get:
> [Mon Jan 13 16:53:27.606541 2014] [:error] [pid 23617] [remote
136.159.176.124:894] mod_wsgi (pid=23617): Target WSGI script
'/var/www/slidetest/deepzoom.wsgi' cannot be loaded as Python module.
> [Mon Jan 13 16:53:27.606564 2014] [:error] [pid 23617] [remote
136.159.176.124:894] mod_wsgi (pid=23617): Exception occurred processing
WSGI script '/var/www/slidetest/deepzoom.wsgi'.
> [Mon Jan 13 16:53:27.606579 2014] [:error] [pid 23617] [remote
136.159.176.124:894] Traceback (most recent call last):
> [Mon Jan 13 16:53:27.606591 2014] [:error] [pid 23617] [remote
136.159.176.124:894] File "/var/www/slidetest/deepzoom.wsgi", line 8,
in <module>
> [Mon Jan 13 16:53:27.606627 2014] [:error] [pid 23617] [remote
136.159.176.124:894] application.load_slide()
> [Mon Jan 13 16:53:27.606642 2014] [:error] [pid 23617] [remote
136.159.176.124:894] AttributeError: 'Flask' object has no attribute
'load_slide'
and
> [Mon Jan 13 16:52:53.461586 2014] [:error] [pid 23617] [remote
136.159.176.124:894] mod_wsgi (pid=23617): Target WSGI script
'/var/www/slidetest/slidedir.wsgi' cannot be loaded as Python module.
> [Mon Jan 13 16:52:53.461606 2014] [:error] [pid 23617] [remote
136.159.176.124:894] mod_wsgi (pid=23617): Exception occurred processing
WSGI script '/var/www/slidetest/slidedir.wsgi'.
> [Mon Jan 13 16:52:53.461621 2014] [:error] [pid 23617] [remote
136.159.176.124:894] Traceback (most recent call last):
> [Mon Jan 13 16:52:53.461637 2014] [:error] [pid 23617] [remote
136.159.176.124:894] File "/var/www/slidetest/slidedir.wsgi", line 9,
in <module>
> [Mon Jan 13 16:52:53.461690 2014] [:error] [pid 23617] [remote
136.159.176.124:894] application._setup()
> [Mon Jan 13 16:52:53.461707 2014] [:error] [pid 23617] [remote
136.159.176.124:894] AttributeError: 'Flask' object has no attribute
'_setup'
respectively (this is adding the code you suggested as a new line that
is now the last line in the file)
thanks
Mark
On 1/13/2014 4:49 PM, Benjamin Gilbert wrote:
> On 01/13/2014 06:28 PM, Mark Ungrin wrote:
>> sys.path.append('/var/www/slidetest')
> The python-path declaration in your Apache configuration should point to
> the directory containing deepzoom_server.py, not to the file itself.
> The sys.path.append() line works around this (I assume
> deepzoom_server.py is in /var/www/slidetest). I've updated the wiki to
> make this clear.
>
>>> [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'
> It sounds as though the deepzoom_server initialization code isn't being
> run before the first request, as it ought to be. What happens if you add
>
> application.load_slide()
>
> at the end of deepzoom.wsgi? (That's for deepzoom_server.py. For
> slidedeck.py it would be application._setup().)
>
> --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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20140113/6ef5372e/attachment-0001.html
More information about the openslide-users
mailing list