[Qgis-developer] Python error after digitizing branch merge

Martin Dobias wonder.sk at gmail.com
Wed Jan 9 16:57:43 EST 2008


Hi all,

I've fixed the compilation problems in r7893. Later I'll take a look
wheter the bindings also behave correctly and whether they need some
additional SIP annotations.

Marco: you should set PYTHONPATH variable to the directory where are
the installed bindings, i.e. QGIS_PREFIX/share/qgis/python on
linux/mac.

Regards
Martin

On Jan 9, 2008 6:33 PM, Marco Hugentobler
<marco.hugentobler at karto.baug.ethz.ch> wrote:
> Hi Tim,
>
> Is that after the latest merge commit?
> For me, it compiles but python bindings don't load when starting qgis. I tried
> to use the python console to find out why (as described in
> http://wiki.qgis.org/qgiswiki/PythonBindings), but didn't succeed. What is
> the PYTHONPATH I have to set? <qgisprefix>/python ?
>
> Regards,
> Marco
>
> Am Mittwoch 09 Januar 2008 17:58:54 schrieb Tim Sutton:
> > Hi Marco
> >
> > Congratulations on being the first to get your branch merged in for
> > the feature freeze :-) I get the following when trying to build on mac
> > with python bindings:
> >
> > sipguiQgsRubberBand.cpp: In function 'PyObject*
> > meth_QgsRubberBand_size(PyObject*, PyObject*)':
> > sipguiQgsRubberBand.cpp:1892: error: 'class QgsRubberBand' has no
> > member named 'size'
> > sipguiQgsRubberBand.cpp: In function 'PyObject*
> > meth_QgsRubberBand_getPoints(PyObject*, PyObject*)':
> > sipguiQgsRubberBand.cpp:1919: error: 'class QgsRubberBand' has no
> > member named 'getPoints'
> > sipguiQgsRubberBand.cpp: In function 'PyObject*
> > meth_QgsRubberBand_getPoint(PyObject*, PyObject*)':
> > sipguiQgsRubberBand.cpp:1949: error: 'class QgsRubberBand' has no
> > member named 'getPoint'
> > make[3]: *** [sipguiQgsRubberBand.o] Error 1
> > make[2]: *** [python/gui/gui.so] Error 2
> > make[1]: *** [python/CMakeFiles/python.dir/all] Error 2
> > make: *** [all] Error 2
> >
> > Peter Ersts reported similar issue on IRC (running Linux I think).
> >
> > Regards
>
>
>
> --
> Dr. Marco Hugentobler
> Institute of Cartography
> ETH Zurich
> Technical Advisor QGIS Project Steering Committee
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>



More information about the Qgis-developer mailing list