[Zoo-discuss] Zoo kernel not loading Python services

Balajee R.C balajee at vizexperts.com
Sun Jul 10 23:31:22 PDT 2016


I have built zoo from svn (rev. 784) with --with-python enabled. I am using
Python version: 2.7.5

I have the following Python based service:

import zoo
> def test(conf, inputs, outputs):
>    outputs["output"]["value"] = "Hello from Python World !"
>    return 3


When I execute the above service, I get the following error:

<?xml version="1.0" encoding="utf-8"?>
> <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> http://www.opengis.net/ows/1.1
> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"
> xml:lang="en-US" version="1.1.0">
>     <ows:Exception exceptionCode="NoApplicableCode">
>         <ows:ExceptionText>Python module test.py cannot be loaded.
> Message: TRACE: No module named py
> <type 'exceptions.ImportError'>
> </ows:ExceptionText>
>     </ows:Exception>
> </ows:ExceptionReport>


 However, I do notice that they pyc file for my service test.py file HAS
indeed been created. Hence, it appears that the trouble is that there is
another module named py that it is trying to load.

I have already done pip install py for my python installation. When I
launch my python interpreter directly and do:

import py


then this works without an error.

What could be going wrong? Can someone please point me in the right
direction?

Regards,
Balajee.R.C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20160711/72f44418/attachment.html>


More information about the Zoo-discuss mailing list