[Zoo-discuss] compile zoo kernel with python 3.7

Gérald Fenoy gerald.fenoy at geolabs.fr
Wed Feb 5 01:38:27 PST 2020


Hi Kobe,
sorry for late reply.

The Python 3 should be correctly supported, at least it is the version that is currently used within MapMint thanks to the work started during last year GSoC by Fenil Mehta (ref. https://github.com/fenilgmehta/mapmint <https://github.com/fenilgmehta/mapmint> ).

Thanks for your feedback about the comment line (617 of configure.ac) which is wrongly referring to libphp when lib python is verified, this will be fixed. For the version number, it is mainly used to find the right python-config that may be named python3-config on some platform (usually where there are both python 2 and 3 available), hence you can specify the specific version number you want to use. 

Nevertheless, from what you have provided I can notice that you mentioned the major, minor version number when only the major version is expected. Supposing that there is a « python-config » program named python3-config from your build system, then it should be ok and the python library should be properly found.

Hence, I suppose that in case you run you configure command by replacing the —with-pyvers=3.7 by —with-python=3 it should work.

I hope it helps.

Best regards,

Gérald Fenoy
ZOO-Project PSC Chair



> Le 4 févr. 2020 à 11:33, Kobe De Decker <kobededecker at gmail.com> a écrit :
> 
> Hi there,
> 
> I was using Zoo WPS successfully for many projects using it in a Docker image i built myself. Lately Python 2.7 has been deprecated, and I can't deploy new zoo services anymore as many of my processes use numpy and I get installation errors saying that numpy cant be installed anymore on this old Python.
> 
> I have been trying to compile the Kernel with Python 3.x (in Conda) for a couple of days now, but am stuck on the last phase of the configure step. This is wat I enter:
> 
> ./configure --with-python=/opt/app-root/src/miniconda3 --with-pyvers=3.7  --prefix=/usr --libdir=/usr/lib64
> 
> But the process breaks on this line:
> 
> checking Python.h usability... yes
> checking Python.h presence... yes
> checking for Python.h... yes
> checking for PyObject_CallObject in -lpython3.7... no
> configure: error: could not find libpython
> 
> So the configure phase definitely finds my python installation, but fails its last check. If i check in configure and configure.ac <http://configure.ac/> files, this should have something to do with linking with libphp (while I dont need php for my processes .. ).
> 
> When I install python included in Centos repositories (2.7), the configure phase just passes without errors .. 
> 
> 
> Any clues? 
> 
> Thanks,
> 
> Kobe
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/zoo-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20200205/b14ed0ef/attachment.html>


More information about the Zoo-discuss mailing list