Hi Maciej

Looks like you are using a plugin written for QGIS 0.11.

Try changing getMapCanvas() to mapCanvas().

There are numerous other API changes in QGIS 1.0 code base so likely
this wont be the only error you encounter. See 

http://wiki.qgis.org/qgiswiki/VisualChangeLog1.0.0

For more hints.

Regards

Tim

On Sun, 2008-11-16 at 22:54 +0100, Maciej Sieczka wrote:
> Hi
> 
> I'd like to get in touch with author, Janis Jatnieks from Latvia, to let
> him know there's an error in his MapSheetAutoGeoRef plugin. Janis email
> is not there in the plugin code or anywhere else, after a brief search,
> so I'm writing here in case he might be reading it. If anybody knows his
> email, please forward this message to him.
> 
> Using QGIS SVN trunk 9619.
> 
> 
> 
> Couldn't load plugin MapSheetAutoGeoRef due an error when calling its
> classFactory() method
> 
> Traceback (most recent call last):
>    File "", line 1, in
>    File
> "/home/shoofi/.qgis//python/plugins/MapSheetAutoGeoRef/__init__.py",
> line 18, in classFactory
>      return AutoRefPlugin(iface)
>    File
> "/home/shoofi/.qgis//python/plugins/MapSheetAutoGeoRef/mapsheetgeoref.py",
> line 632, in __init__
>      self.canvas = iface.getMapCanvas()
> AttributeError: getMapCanvas
> 
> Python version:
> 2.5.2 (r252:60911, Sep 29 2008, 21:26:45)
> [GCC 4.3.2]
> 
> Python path:
> ['/usr/local/qgis/share/qgis/python',
> '/home/shoofi/.qgis//python/plugins',
> '/usr/local/qgis/share/qgis/python/plugins',
> '/usr/lib/python2.5/site-packages/GDAL-1.6.0beta1-py2.5-linux-x86_64.egg',
> '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
> '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload',
> '/usr/local/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages/Numeric',
> '/usr/lib/python2.5/site-packages/PIL',
> '/usr/lib/python2.5/site-packages/gst-0.10',
> '/var/lib/python-support/python2.5',
> '/var/lib/python-support/python2.5/gtk-2.0',
> '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
> '/home/shoofi/.qgis/python/plugins/fTools/tools']
> 
> 
> Maciek
> 

-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Visit http://linfiniti.com to find out about:
 * QGIS programming services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting & Support Services
Skype: timlinux Irc: timlinux on #qgis at freenode.net
==============================================

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to