Deepzoom-server.py on Apache (Windows)

Ranga Raj snrangaraj at yahoo.com
Thu Mar 31 19:30:00 EDT 2016


Benjamin:
Thanks for pointing this out... I did seem to have some corrupt DLLs and once I replaced the openslide DLLs, things seem to move ahead...I am trying the serve the SVS images in the folder: C:/DATA/MySvsFiles
This is my deepzoom.wsgi...-----------------------------------------import os, syspath = 'C:/Apache24/htdocs/openslide/deepzoom_server.py'
if path not in sys.path: sys.path.append(os.path.dirname(path))from deepzoom_server import app as applicationapplication.config.update({'SLIDE_DIR':'C:/DATA/MySvsFiles','DEBUG': True,})from deepzoom_server import load_slide load_slide()
this gives me the Apache Traceback...mod_wsgi (pid=8412): Target WSGI script 'C:/Apache24/htdocs/openslide/deepzoom.wsgi' cannot be loaded as Python module.mod_wsgi (pid=8412): Exception occurred processing WSGI script 'C:/Apache24/htdocs/openslide/deepzoom.wsgi'.Traceback (most recent call last):\r  File "C:/Apache24/htdocs/openslide/deepzoom.wsgi", line 9, in <module>\r    load_slide()\rTypeError: 'NoneType' object is not callable\r-------------------------------------------
If I remove the load_slide steps you had outlined in a similar post...-------------------------------------------import os, syspath = 'C:/Apache24/htdocs/openslide/deepzoom_server.py'
if path not in sys.path: sys.path.append(os.path.dirname(path))from deepzoom_server import app as applicationapplication.config.update({'SLIDE_DIR':'C:/DATA/MySvsFiles','DEBUG': True,})
I get the error...
mod_wsgi (pid=8412): Exception occurred processing WSGI script 'C:/Apache24/htdocs/openslide/deepzoom.wsgi'.Traceback (most recent call last):\r  File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1836, in __call__\r    return self.wsgi_app(environ, start_response)\r  File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1820, in wsgi_app\r    response = self.make_response(self.handle_exception(e))\r  File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1403, in handle_exception\r    reraise(exc_type, exc_value, tb)\r  File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\_compat.py", line 33, in reraise\r    raise value\r  File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1817, in wsgi_app\r    response = self.full_dispatch_request()\r  File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1470, in full_dispatch_request\r    self.try_trigger_before_first_request_functions()\r  File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1497, in try_trigger_before_first_request_functions\r    func()\r  File "C:/Apache24/htdocs/openslide\\deepzoom_server.py", line 53, in load_slide\r    raise ValueError('No slide file specified')\rValueError: No slide file specified\r-------------------------------------------
Can you help me please.With Regards, Ranga

      From: Benjamin Gilbert via openslide-users <openslide-users at lists.andrew.cmu.edu>
 To: "openslide-users at lists.andrew.cmu.edu" <openslide-users at lists.andrew.cmu.edu> 
 Sent: Tuesday, March 29, 2016 10:18 PM
 Subject: Re: Issues Running Deepzoom-server.py on Apache (Windows)
   
On Wed, Mar 23, 2016 at 02:30:17PM +0000, Ranga Raj via openslide-users wrote:
> Where should this DLL be placed?I have tried the obvious locations...In
> fact, my sample WSGI file lists the sys.path and other entries as below.

sys.path is the search path for Python modules, not DLLs.  The DLL search
path is documented here:

    https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.aspx

On Wed, Mar 23, 2016 at 06:29:58PM +0000, Ranga Raj via openslide-users wrote:
> libopenslide-0 was found at: C:\Apache24\bin\libopenslide-0.dll
> libcairo-2 was found at: C:\DATA\openslide-win64-20150527\bin\libcairo-2.dll

The path to libopenslide-0.dll looks reasonable, but note that *all* of the
DLLs from openslide-win64-20150527\bin need to be in the DLL search path.

--Benjamin Gilbert
_______________________________________________
openslide-users mailing list
openslide-users at lists.andrew.cmu.edu
https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users


  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20160331/973abdbe/attachment.html>


More information about the openslide-users mailing list