Python error after digitizing branch merge

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Python error after digitizing branch merge

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

--
Tim Sutton
QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: Python error after digitizing branch merge

Hugentobler  Marco
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
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: Python error after digitizing branch merge

Tim Sutton
Hi

With r7890 I now get

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

ie. same problem by the looks of things. Im not sure about what needs
to be done to fix it - looks like we need to call in the cavalry (i.e.
Martin). Martin can you help?

Regards

Tim

2008/1/9, Marco Hugentobler <[hidden email]>:

> 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
>


--
Tim Sutton
QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: Python error after digitizing branch merge

Tim Sutton
Hi again

Just an update on this - I removed my build dir and did a clean build,
now I get:

[ 69%] Generating core/core.so
make[3]: *** No rule to make target `sipAPIcore.h', needed by
`sipcorecmodule.o'.  Stop.
make[2]: *** [python/core/core.so] Error 2
make[1]: *** [python/CMakeFiles/python.dir/all] Error 2
make: *** [all] Error 2

Regards

Tim

2008/1/9, Tim Sutton <[hidden email]>:

> Hi
>
> With r7890 I now get
>
> 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
>
> ie. same problem by the looks of things. Im not sure about what needs
> to be done to fix it - looks like we need to call in the cavalry (i.e.
> Martin). Martin can you help?
>
> Regards
>
> Tim
>
> 2008/1/9, Marco Hugentobler <[hidden email]>:
> > 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
> >
>
>
> --
> Tim Sutton
> QGIS Project Steering Committee Member - Release  Manager
> Visit http://qgis.org for a great open source GIS
> openModeller Desktop Developer
> Visit http://openModeller.sf.net for a great open source ecological
> niche modelling tool
> Home Page: http://tim.linfiniti.com
> Skype: timlinux
> Irc: timlinux on #qgis at freenode.net
>


--
Tim Sutton
QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: Python error after digitizing branch merge

Peter Ersts

sip: /home/pete/devel/qgis/qgis/python/core/qgsgeometry.sip:304: syntax
error
304: double sqrDistToVertexAt(QgsPoint& point /In, int atVertex);
to
304: double sqrDistToVertexAt(QgsPoint& pointIn, int atVertex);

sip: /home/pete/devel/qgis/qgis/python/core/qgsvectorlayer.sip:248:
syntax error
248:int snapWithContext(const QgsPoint& startPoint, double
snappingTolerance, QMultiMap<double, QgsSnappingResult>&
snappingResults, QgsSnapper::SNAP_TO snap_to);

If you comment out 248, you get an error that QgsSnappingResult is not
defined, it will need a SIP file as well.

Don't know if that helps.

-pete

Tim Sutton wrote:

> Hi again
>
> Just an update on this - I removed my build dir and did a clean build,
> now I get:
>
> [ 69%] Generating core/core.so
> make[3]: *** No rule to make target `sipAPIcore.h', needed by
> `sipcorecmodule.o'.  Stop.
> make[2]: *** [python/core/core.so] Error 2
> make[1]: *** [python/CMakeFiles/python.dir/all] Error 2
> make: *** [all] Error 2
>
> Regards
>
> Tim
>
> 2008/1/9, Tim Sutton <[hidden email]>:
>  
>> Hi
>>
>> With r7890 I now get
>>
>> 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
>>
>> ie. same problem by the looks of things. Im not sure about what needs
>> to be done to fix it - looks like we need to call in the cavalry (i.e.
>> Martin). Martin can you help?
>>
>> Regards
>>
>> Tim
>>
>> 2008/1/9, Marco Hugentobler <[hidden email]>:
>>    
>>> 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
>>>
>>>      
>> --
>> Tim Sutton
>> QGIS Project Steering Committee Member - Release  Manager
>> Visit http://qgis.org for a great open source GIS
>> openModeller Desktop Developer
>> Visit http://openModeller.sf.net for a great open source ecological
>> niche modelling tool
>> Home Page: http://tim.linfiniti.com
>> Skype: timlinux
>> Irc: timlinux on #qgis at freenode.net
>>
>>    
>
>
>  


--
====================================
Peter J. Ersts, Project Specialist
American Museum of Natural History
Center for Biodiversity and Conservation
Central Park West at 79th Street
New York, New York 10024
Tel: Home Office (518)-632-4745 or NYC Office (212)-496-3488
Web: http://biodiversityinformatics.amnh.org
Web: http://cbc.amnh.org

Quantum GIS Raster Development Team. Visit http://www.qgis.org
to learn more about QGIS, a free and open source desktop GIS

Open Source,
...evolving through community cooperation to change the world bit by bit

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: Python error after digitizing branch merge

Martin Dobias
In reply to this post by Hugentobler Marco
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
<[hidden email]> 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
> [hidden email]
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer