<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym18_1_1459452030028_31929"><span id="yui_3_16_0_ym18_1_1459452030028_32390">Benjamin:<br>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...</span></div><div id="yui_3_16_0_ym18_1_1459452030028_31929" dir="ltr"><span id="yui_3_16_0_ym18_1_1459452030028_32554">I am trying the serve the SVS images in the folder: </span>C:/DATA/MySvsFiles</div><div id="yui_3_16_0_ym18_1_1459452030028_31929"><span><br></span></div><div id="yui_3_16_0_ym18_1_1459452030028_31929"><span id="yui_3_16_0_ym18_1_1459452030028_32091">This is my deepzoom.wsgi...</span></div><div id="yui_3_16_0_ym18_1_1459452030028_31929"><span id="yui_3_16_0_ym18_1_1459452030028_32093">-----------------------------------------</span></div><div id="yui_3_16_0_ym18_1_1459452030028_32141">import os, sys</div><div id="yui_3_16_0_ym18_1_1459452030028_32142">path = 'C:/Apache24/htdocs/openslide/deepzoom_server.py'</div><div id="yui_3_16_0_ym18_1_1459452030028_32143"><br id="yui_3_16_0_ym18_1_1459452030028_32144"></div><div id="yui_3_16_0_ym18_1_1459452030028_32145">if path not in sys.path: sys.path.append(os.path.dirname(path))</div><div id="yui_3_16_0_ym18_1_1459452030028_32146">from deepzoom_server import app as application</div><div id="yui_3_16_0_ym18_1_1459452030028_32148">application.config.update({'SLIDE_DIR':'C:/DATA/MySvsFiles','DEBUG': True,})</div><div id="yui_3_16_0_ym18_1_1459452030028_32149">from deepzoom_server import load_slide </div><div id="yui_3_16_0_ym18_1_1459452030028_31929"></div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32150">load_slide()</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32150"><br></div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32150">this gives me the Apache Traceback...</div><div id="yui_3_16_0_ym18_1_1459452030028_32073">mod_wsgi (pid=8412): Target WSGI script 'C:/Apache24/htdocs/openslide/deepzoom.wsgi' cannot be loaded as Python module.</div><div id="yui_3_16_0_ym18_1_1459452030028_32074">mod_wsgi (pid=8412): Exception occurred processing WSGI script 'C:/Apache24/htdocs/openslide/deepzoom.wsgi'.</div><div id="yui_3_16_0_ym18_1_1459452030028_32075">Traceback (most recent call last):\r</div><div id="yui_3_16_0_ym18_1_1459452030028_32076"> File "C:/Apache24/htdocs/openslide/deepzoom.wsgi", line 9, in <module>\r</div><div id="yui_3_16_0_ym18_1_1459452030028_32077"> load_slide()\r</div><div id="yui_3_16_0_ym18_1_1459452030028_31929"></div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32078">TypeError: 'NoneType' object is not callable\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32078">-------------------------------------------</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32078"><br></div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32078">If I remove the load_slide steps you had outlined in a similar post...</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32078">-------------------------------------------</div><div id="yui_3_16_0_ym18_1_1459452030028_32483">import os, sys</div><div id="yui_3_16_0_ym18_1_1459452030028_32484">path = 'C:/Apache24/htdocs/openslide/deepzoom_server.py'</div><div id="yui_3_16_0_ym18_1_1459452030028_32485"><br id="yui_3_16_0_ym18_1_1459452030028_32486"></div><div id="yui_3_16_0_ym18_1_1459452030028_32487">if path not in sys.path: sys.path.append(os.path.dirname(path))</div><div id="yui_3_16_0_ym18_1_1459452030028_32488">from deepzoom_server import app as application</div><div id="yui_3_16_0_ym18_1_1459452030028_32489">application.config.update({'SLIDE_DIR':'C:/DATA/MySvsFiles','DEBUG': True,})</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32490"><br id="yui_3_16_0_ym18_1_1459452030028_32491"></div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32440">I get the error...</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32440"><br></div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32440">mod_wsgi (pid=8412): Exception occurred processing WSGI script 'C:/Apache24/htdocs/openslide/deepzoom.wsgi'.</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32441">Traceback (most recent call last):\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32442"> File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1836, in __call__\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32443"> return self.wsgi_app(environ, start_response)\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32444"> File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1820, in wsgi_app\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32445"> response = self.make_response(self.handle_exception(e))\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32446"> File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1403, in handle_exception\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32447"> reraise(exc_type, exc_value, tb)\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32448"> File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\_compat.py", line 33, in reraise\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32449"> raise value\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32450"> File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1817, in wsgi_app\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32451"> response = self.full_dispatch_request()\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32452"> File "C:\\Users\\rraj\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\flask\\app.py", line 1470, in full_dispatch_request\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32453"> self.try_trigger_before_first_request_functions()\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32454"> 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</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32455"> func()\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32456"> File "C:/Apache24/htdocs/openslide\\deepzoom_server.py", line 53, in load_slide\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32457"> raise ValueError('No slide file specified')\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32458">ValueError: No slide file specified\r</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32078">-------------------------------------------</div><div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_32078"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym18_1_1459452030028_31944">Can you help me please.</div><div class="qtdSeparateBR" id="yui_3_16_0_ym18_1_1459452030028_31944">With Regards, Ranga</div><div class="qtdSeparateBR" id="yui_3_16_0_ym18_1_1459452030028_31944"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym18_1_1459452030028_31944"><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym18_1_1459452030028_31949" style="display: block;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym18_1_1459452030028_31948"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym18_1_1459452030028_31947"> <div dir="ltr" id="yui_3_16_0_ym18_1_1459452030028_31946"> <font size="2" face="Arial" id="yui_3_16_0_ym18_1_1459452030028_31945"> <hr size="1" id="yui_3_16_0_ym18_1_1459452030028_32556"> <b id="yui_3_16_0_ym18_1_1459452030028_32248"><span style="font-weight:bold;" id="yui_3_16_0_ym18_1_1459452030028_32247">From:</span></b> Benjamin Gilbert via openslide-users <openslide-users@lists.andrew.cmu.edu><br> <b><span style="font-weight: bold;">To:</span></b> "openslide-users@lists.andrew.cmu.edu" <openslide-users@lists.andrew.cmu.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, March 29, 2016 10:18 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Issues Running Deepzoom-server.py on Apache (Windows)<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym18_1_1459452030028_31952"><br>On Wed, Mar 23, 2016 at 02:30:17PM +0000, Ranga Raj via openslide-users wrote:<br clear="none">> Where should this DLL be placed?I have tried the obvious locations...In<br clear="none">> fact, my sample WSGI file lists the sys.path and other entries as below.<br clear="none"><br clear="none">sys.path is the search path for Python modules, not DLLs. The DLL search<br clear="none">path is documented here:<br clear="none"><br clear="none"> <a shape="rect" href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.aspx" target="_blank" id="yui_3_16_0_ym18_1_1459452030028_32127">https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.aspx</a><br clear="none"><br clear="none">On Wed, Mar 23, 2016 at 06:29:58PM +0000, Ranga Raj via openslide-users wrote:<br clear="none">> libopenslide-0 was found at: C:\Apache24\bin\libopenslide-0.dll<br clear="none">> libcairo-2 was found at: C:\DATA\openslide-win64-20150527\bin\libcairo-2.dll<br clear="none"><br clear="none">The path to libopenslide-0.dll looks reasonable, but note that *all* of the<br clear="none">DLLs from openslide-win64-20150527\bin need to be in the DLL search path.<div class="yqt8055037069" id="yqtfd20947"><br clear="none"><br clear="none">--Benjamin Gilbert<br clear="none">_______________________________________________<br clear="none">openslide-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:openslide-users@lists.andrew.cmu.edu" href="mailto:openslide-users@lists.andrew.cmu.edu">openslide-users@lists.andrew.cmu.edu</a><br clear="none"><a shape="rect" href="https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users" target="_blank" id="yui_3_16_0_ym18_1_1459452030028_32623">https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users</a><br clear="none"></div><br><br></div> </div> </div> </div></div></body></html>