...
- If the GetCapabilities request gives you get this error
in your html browser, please check your apache error.log inCode Block title http://localhost/cgi-bin/pywps.cgi?service=wps&request=GetCapabilities&version=1.0.0 Internal Server Error
c:\Program Files (x86)\Apache Software Foundation\Apache2.2\logs
. In some cases it might contain this error messageImportError: No module named magic\r
. In this case please manually install the libmagic python-magic package from https://github.com/heynemannahupp/libmagicpython-magic. For your convenience we included a windows distributable win32 or win64 Python2.7 version until the official binary is available at github. Restart apache afterwards (typeservices
in your windows start menu or click small apache icon in icon tray). If you still get errors (failed to find libmagic
in the aforementioned Apache error.log) install cygwin http://cygwin.com/install.html which contains the magic dll. Set the path where thecygmagic-1.dll
residesc:\Program Files (x86)\Cygwin\bin
in the windows $PATH environment variable so magic.py can find it. - If you run this in a Virtual windows machine (e.g. via VMWare), regular disk mappings might not work in WPS because WPS runs as another users (apache), please try references like
//vmware-host/Shared%20Folders/D/
instead of simplyD
. - Errors like these for import statements in a WPS process, e.g.
import matplotlib
causes
have to do with the fact that WPS runs underCode Block PyWPS [2014-03-19 14:58:23,112] WARNING: Could not import processes from 'pywps_processes': ImportError('No module named pwd',)
apache
user, so add any required user environmental
variables toc:\Program Files (x86)\Apache Software Foundation\Apache2.2\cgi-bin\pywps.cgi
:
Notes:Code Block title pywps.cgi os.environ['MPLCONFIGDIR']='C:/Python27/Lib/site-packages/matplotlib/mpl-data'
- PyWPS can also be used with the Q-GIS WPS plugin by Dr. Horst Duester.
...