Issues Running Deepzoom-server.py on Apache (Windows)
Ranga Raj
snrangaraj at yahoo.com
Wed Mar 23 10:30:17 EDT 2016
Benjamin: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. Please advise.With Regards, Ranga
-------------------------sys.platform = 'win32'sys.version = '3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)]'sys.prefix = 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35'sys.path = C:\Users\myself\AppData\Local\Programs\Python\Python35\lib\site-packages\openslide_python-1.1.0-py3.5-win-amd64.egg-- C:\Users\myself\AppData\Local\Programs\Python\Python35\python35.zip-- C:\Users\myself\AppData\Local\Programs\Python\Python35\Lib-- C:\Users\myself\AppData\Local\Programs\Python\Python35\DLLs-- C:\Apache24\bin-- C:\Users\myself\AppData\Local\Programs\Python\Python35-- C:\Users\myself\AppData\Local\Programs\Python\Python35\lib\site-packages-- C:/Apache24/htdocs/openslidesys.modules = sys.modules = {'builtins': <module 'builtins' (built-in)>, '_warnings': <module '_warnings' (built-in)>, 'types': <module 'types' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\types.py'>, '_locale': <module '_locale' (built-in)>, 'encodings.mbcs': <module 'encodings.mbcs' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\encodings\\mbcs.py'>, 'os.path': <module 'ntpath' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\ntpath.py'>, 'genericpath': <module 'genericpath' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\genericpath.py'>, 'sys': <module 'sys' (built-in)>, '_mod_wsgi_ba6c502ca1b41cc36d10426b0c51aa8b': <module '_mod_wsgi_ba6c502ca1b41cc36d10426b0c51aa8b' from 'C:/Apache24/htdocs/openslide/wsgi_handler.wsgi'>, '_weakrefset': <module '_weakrefset' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\_weakrefset.py'>, 'apache': <module 'apache'>, 're': <module 're' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\re.py'>, 'sysconfig': <module 'sysconfig' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\sysconfig.py'>, '_operator': <module '_operator' (built-in)>, '_bootlocale': <module '_bootlocale' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\_bootlocale.py'>, 'collections': <module 'collections' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\collections\\__init__.py'>, '_frozen_importlib_external': <module '_frozen_importlib_external' (frozen)>, 'site': <module 'site' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\site.py'>, 'encodings': <module 'encodings' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\encodings\\__init__.py'>, 'encodings.cp1252': <module 'encodings.cp1252' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\encodings\\cp1252.py'>, 'sre_constants': <module 'sre_constants' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\sre_constants.py'>, 'token': <module 'token' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\token.py'>, 'io': <module 'io' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\io.py'>, 'codecs': <module 'codecs' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\codecs.py'>, 'operator': <module 'operator' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\operator.py'>, '_io': <module 'io' (built-in)>, 'tokenize': <module 'tokenize' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\tokenize.py'>, 'marshal': <module 'marshal' (built-in)>, 'mod_wsgi': <module 'mod_wsgi'>, 'itertools': <module 'itertools' (built-in)>, '_codecs': <module '_codecs' (built-in)>, '_sre': <module '_sre' (built-in)>, 'os': <module 'os' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\os.py'>, 'nt': <module 'nt' (built-in)>, '_sitebuiltins': <module '_sitebuiltins' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\_sitebuiltins.py'>, 'weakref': <module 'weakref' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\weakref.py'>, 'ntpath': <module 'ntpath' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\ntpath.py'>, 'traceback': <module 'traceback' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\traceback.py'>, '_frozen_importlib': <module '_frozen_importlib' (frozen)>, 'sre_compile': <module 'sre_compile' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\sre_compile.py'>, '_signal': <module '_signal' (built-in)>, '_thread': <module '_thread' (built-in)>, '__main__': <module '__main__' (built-in)>, 'collections.abc': <module 'collections.abc' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\collections\\abc.py'>, 'encodings.latin_1': <module 'encodings.latin_1' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\encodings\\latin_1.py'>, 'encodings.aliases': <module 'encodings.aliases' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\encodings\\aliases.py'>, '_collections_abc': <module '_collections_abc' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\_collections_abc.py'>, 'enum': <module 'enum' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\enum.py'>, 'encodings.ascii': <module 'encodings.ascii' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\encodings\\ascii.py'>, 'encodings.utf_8': <module 'encodings.utf_8' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\encodings\\utf_8.py'>, 'errno': <module 'errno' (built-in)>, '_stat': <module '_stat' (built-in)>, '_collections': <module '_collections' (built-in)>, 'stat': <module 'stat' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\stat.py'>, 'functools': <module 'functools' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\functools.py'>, 'abc': <module 'abc' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\abc.py'>, 'linecache': <module 'linecache' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\linecache.py'>, 'winreg': <module 'winreg' (built-in)>, 'keyword': <module 'keyword' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\keyword.py'>, '_functools': <module '_functools' (built-in)>, 'heapq': <module 'heapq' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\heapq.py'>, '_heapq': <module '_heapq' (built-in)>, 'signal': <module 'signal' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\signal.py'>, 'zipimport': <module 'zipimport' (built-in)>, 'time': <module 'time' (built-in)>, 'threading': <module 'threading' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\threading.py'>, '_imp': <module '_imp' (built-in)>, 'reprlib': <module 'reprlib' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\reprlib.py'>, '_weakref': <module '_weakref' (built-in)>, 'sre_parse': <module 'sre_parse' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\sre_parse.py'>, 'copyreg': <module 'copyreg' from 'C:\\Users\\myself\\AppData\\Local\\Programs\\Python\\Python35\\Lib\\copyreg.py'>}
-------------------------
From: Benjamin Gilbert via openslide-users <openslide-users at lists.andrew.cmu.edu>
To: openslide-users at lists.andrew.cmu.edu
Sent: Wednesday, March 23, 2016 1:09 AM
Subject: Re: Issues Running Deepzoom-server.py on Apache (Windows)
On Tue, Mar 22, 2016 at 07:10:35AM +0000, Ranga Raj via openslide-users wrote:
> _lib = cdll.LoadLibrary('libopenslide-0.dll')
> OSError: [WinError 193] %1 is not a valid Win32 application
It appears that OpenSlide Python can't load the OpenSlide DLL. Verify that
OpenSlide (32-bit or 64-bit, as appropriate) is 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/20160323/7cec7345/attachment-0001.html>
More information about the openslide-users
mailing list