Need a little help again with Python bindings

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

Need a little help again with Python bindings

Peter Ersts
Martin,

When you get a change can you take a look at the SIP files in the raster
transparency branch? I have been trying to keep them up-to-date and
adding new SIP files where necessary, but it seems I have run into a
snag. All the SIP file that I have been modifying (qgsrasterlayer.sip)
or adding correspond to file in /src/core/raster/

Everything compiles without error, but the bindings will not load when
QGIS starts. I am sure it is something very simple, but I am a
python/SIP idiot. The problem seems to be centered around the
QgsRasterShader class. If I comment out the rastershader class in the
core.sip file and a corresponding line in the qgsrasterlayer.sip file,
everything compiles and at least loads. Uncomment it, and it compiles
with out errors but fails to load at runtime.  I have even gone as far
as to comment out all functions/methods in the qgsrastershader.sip file
and it  compiles but still does not load. ldd does report many undefined
symbols but most seems nonsensical, as they are common functions/methods
in the core.

Again, I am sure it is something very simple. If you can commit to the
branch, feel free to do so, otherwise send me a patch and I will apply
the fixes.

Thanks.
-pete

--
====================================
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: Need a little help again with Python bindings

Martin Dobias
Hi Pete,

I've took a look at it, the problem was in missing body of destructor
for QgsRasterShader. It seems that gcc handles this situation
gracefully without any warnings, however binding was not able to
encounter symbol for the destructor. I've commited fix for it in
r7864.

Regards
Martin


On Jan 7, 2008 4:45 AM, Peter Ersts <[hidden email]> wrote:

> Martin,
>
> When you get a change can you take a look at the SIP files in the raster
> transparency branch? I have been trying to keep them up-to-date and
> adding new SIP files where necessary, but it seems I have run into a
> snag. All the SIP file that I have been modifying (qgsrasterlayer.sip)
> or adding correspond to file in /src/core/raster/
>
> Everything compiles without error, but the bindings will not load when
> QGIS starts. I am sure it is something very simple, but I am a
> python/SIP idiot. The problem seems to be centered around the
> QgsRasterShader class. If I comment out the rastershader class in the
> core.sip file and a corresponding line in the qgsrasterlayer.sip file,
> everything compiles and at least loads. Uncomment it, and it compiles
> with out errors but fails to load at runtime.  I have even gone as far
> as to comment out all functions/methods in the qgsrastershader.sip file
> and it  compiles but still does not load. ldd does report many undefined
> symbols but most seems nonsensical, as they are common functions/methods
> in the core.
>
> Again, I am sure it is something very simple. If you can commit to the
> branch, feel free to do so, otherwise send me a patch and I will apply
> the fixes.
>
> Thanks.
> -pete
>
> --
> ====================================
> 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: Need a little help again with Python bindings

Peter Ersts
Martin,

Thank you very much for the fix!

-pete

Martin Dobias wrote:

> Hi Pete,
>
> I've took a look at it, the problem was in missing body of destructor
> for QgsRasterShader. It seems that gcc handles this situation
> gracefully without any warnings, however binding was not able to
> encounter symbol for the destructor. I've commited fix for it in
> r7864.
>
> Regards
> Martin
>
>
> On Jan 7, 2008 4:45 AM, Peter Ersts <[hidden email]> wrote:
>  
>> Martin,
>>
>> When you get a change can you take a look at the SIP files in the raster
>> transparency branch? I have been trying to keep them up-to-date and
>> adding new SIP files where necessary, but it seems I have run into a
>> snag. All the SIP file that I have been modifying (qgsrasterlayer.sip)
>> or adding correspond to file in /src/core/raster/
>>
>> Everything compiles without error, but the bindings will not load when
>> QGIS starts. I am sure it is something very simple, but I am a
>> python/SIP idiot. The problem seems to be centered around the
>> QgsRasterShader class. If I comment out the rastershader class in the
>> core.sip file and a corresponding line in the qgsrasterlayer.sip file,
>> everything compiles and at least loads. Uncomment it, and it compiles
>> with out errors but fails to load at runtime.  I have even gone as far
>> as to comment out all functions/methods in the qgsrastershader.sip file
>> and it  compiles but still does not load. ldd does report many undefined
>> symbols but most seems nonsensical, as they are common functions/methods
>> in the core.
>>
>> Again, I am sure it is something very simple. If you can commit to the
>> branch, feel free to do so, otherwise send me a patch and I will apply
>> the fixes.
>>
>> Thanks.
>> -pete
>>
>> --
>> ====================================
>> 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
>>
>>
>>    


--
====================================
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: Need a little help again with Python bindings

Peter Ersts
In reply to this post by Martin Dobias
Martin,

Thank you very much for the fix!

-pete

Martin Dobias wrote:

> Hi Pete,
>
> I've took a look at it, the problem was in missing body of destructor
> for QgsRasterShader. It seems that gcc handles this situation
> gracefully without any warnings, however binding was not able to
> encounter symbol for the destructor. I've commited fix for it in
> r7864.
>
> Regards
> Martin
>
>
> On Jan 7, 2008 4:45 AM, Peter Ersts <[hidden email]> wrote:
>  
>> Martin,
>>
>> When you get a change can you take a look at the SIP files in the raster
>> transparency branch? I have been trying to keep them up-to-date and
>> adding new SIP files where necessary, but it seems I have run into a
>> snag. All the SIP file that I have been modifying (qgsrasterlayer.sip)
>> or adding correspond to file in /src/core/raster/
>>
>> Everything compiles without error, but the bindings will not load when
>> QGIS starts. I am sure it is something very simple, but I am a
>> python/SIP idiot. The problem seems to be centered around the
>> QgsRasterShader class. If I comment out the rastershader class in the
>> core.sip file and a corresponding line in the qgsrasterlayer.sip file,
>> everything compiles and at least loads. Uncomment it, and it compiles
>> with out errors but fails to load at runtime.  I have even gone as far
>> as to comment out all functions/methods in the qgsrastershader.sip file
>> and it  compiles but still does not load. ldd does report many undefined
>> symbols but most seems nonsensical, as they are common functions/methods
>> in the core.
>>
>> Again, I am sure it is something very simple. If you can commit to the
>> branch, feel free to do so, otherwise send me a patch and I will apply
>> the fixes.
>>
>> Thanks.
>> -pete
>>
>> --
>> ====================================
>> 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
>>
>>
>>    


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