Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. add new file XYZ.py to c:/pywps/pywps_processes
  2. change identifier inside XYZ.py
  3. add "XYZ.py" to c:/pywps/pywps_processes/_init_.py

Known installation issues

  • If the GetCapabilities request gives you this error

    Code Block
    titlehttp://localhost/cgi-bin/pywps.cgi?service=wps&request=GetCapabilities&version=1.0.0
    Internal Server Error
    

    in your html browser, please check your apache error.log in c:\Program Files (x86)\Apache Software Foundation\Apache2.2\logs.

  • In some cases it might contain this error message ImportError: No module named magic\r. In this case please manually install the python-magic package from https://github.com/ahupp/python-magic. For your convenience we included a windows distributable win32 Python2.7 version until the official binary is available at github. Restart apache afterwards (type services 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 the cygmagic-1.dll resides c:\Program Files (x86)\Cygwin\bin in the windows $PATH environment variable so magic.py can find it (bear in mind that this should be the System Variables Path setting).

    • If you don't want to have cygwin on your machine just copy the following dynamic link library (dll) files from the cygwin installation to the python root directory (where python.exe resides) and uninstall / remove cygwin:
      • cygmagic-1.dll (rename this to cygmagic.dll!!!!!)
      • cyggcc_s-1.dll
      • cygwin1.dll
      • cygz.dll
    • Pay attention to the CPU Type installation, if you have installed a 64 bits python use 64 bits libs!!
  • In some cases it might contain this error message : ImportError: No module named Template\r\r ; You probably have installed PyWPS version 3.2.2. Please remove this version and download and install version 3.2.1.

  • The following error AttributeError: 'exceptions.ImportError' object has no attribute 'replace'\r is caused by the fact that step 7 is not fully followed. So put some processes in your processes folder and try the GetCapabilities again.
  • 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 simply D.
  • Errors like these for import statements in a WPS process, e.g. import matplotlib causes

    Code Block
    PyWPS [2014-03-19 14:58:23,112] WARNING: Could not import processes from 'pywps_processes': ImportError('No module named pwd',) 

    have to do with the fact that WPS runs under apache user, so add any required user environmental
    variables to c:\Program Files (x86)\Apache Software Foundation\Apache2.2\cgi-bin\pywps.cgi:

    Code Block
    titlepywps.cgi
    os.environ['MPLCONFIGDIR']='C:/Python27/Lib/site-packages/matplotlib/mpl-data'
    

...