[Qgis-developer] Qt Signal Error on Mac OS X
Ziegler Stefan
Stefan.Ziegler at bd.so.ch
Wed Aug 4 01:35:35 EDT 2010
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.
regards
Stefan
More information about the Qgis-developer
mailing list