[Qgis-developer] Qt Signal Error on Mac OS X

William Kyngesburye woklist at kyngchaos.com
Thu Aug 5 18:59:10 EDT 2010


From the python path, it looks like you have the full.  While I've seen some definite python problems with the standalone version on Leopard, the full version and both on Snow seem to be fine.

This easyprint plugin sounds familiar, but I don't see it on the standard repositories.  Where can I find it, or maybe it's very old and doesn't work in Qgis 1.5, or it's experimental?

On Aug 4, 2010, at 12:35 AM, Ziegler Stefan wrote:

> Hi 
> 
> I could need some help from the Mac OS X fraction. While trying to open a new composer window I get this error:
> 
> Fehler bei der Ausführung von Python-Code:
> 
> Traceback (most recent call last):
>  File "/Users/stefan/.qgis/python/plugins/easyprint/easyprint.py",
> line 351, in createMap
>    composition = composerView.composition()
> TypeError: type 'const QgsComposerItem*' is not supported as a native
> Qt signal type
> 
> Python-Version:
> 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
> [GCC 4.2.1 (Apple Inc. build 5646)]
> 
> 
> QGIS-Version:
> 1.5.0-Tethys Tethys, 13925
> 
> Python-Pfad: ['/Applications/Qgis.app/Contents/MacOS/../Resources/python',
> '/Users/stefan/.qgis/python', '/Users/stefan/.qgis/python/plugins',
> '/Applications/Qgis.app/Contents/MacOS/../Resources/python/plugins',
> '/Library/Frameworks/SQLite3.framework/Versions/3/Python',
> '/Library/Frameworks/GDAL.framework/Versions/1.7/Python/site-packages',
> '/Library/Frameworks/cairo.framework/Versions/1/Python',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
> '/Library/Python/2.6/site-packages',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
> '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode',
> u'/Users/stefan/.qgis//python/plugins',
> '/Applications/Qgis.app/Contents/Resources/python/plugins/fTools/tools',
> '/Users/stefan/.qgis/python/plugins/cadtools/tools',
> '/Users/stefan/Documents']
> 
> 
> The suspicous code looks like this:
> 
>        beforeList = self.iface.activeComposers()
>        self.iface.actionPrintComposer().trigger()  
>        afterList = self.iface.activeComposers()
> 
>        diffList = []
>        for item in afterList:
>            if not item in  beforeList:
>                diffList.append(item)
> 
>        composerView = diffList[0]
>        composition = composerView.composition()
>        composition.setPaperSize(float(paperwidth),  float(paperheight))
> 
> 
> I'm using the 1.5 build from KyngChaos on Snow Leopard. It works on Linux. Thanks for any hints.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day."

<Ha, ha> "And it might give 'em all stomach ulcers."

- Tarzan, on war



More information about the Qgis-developer mailing list