[Qgis-user] Ubuntu 8.04, Qgis 1.0.0 preview & fTools issue
Borys Jurgiel
borys at wolf.most.org.pl
Thu Oct 23 00:30:01 PDT 2008
> fTools had been working before the update, but failed to load after with
> this error:
>
> File "/home/brian/.qgis//python/plugins/fTools/fTools.py",
> line 52, in __init__
> self.QgisVersion = unicode(QGis.qgisVersion)
> AttributeError: qgisVersion
>
>
> Not sure if this is Carson's or Jeff's issue to resolve.
>
> A simple workaround got fTools working again:
> ftools.py
> changed line 52 from - self.QgisVersion = unicode(QGis.qgisVersion)
> to this - self.QgisVersion = '1'
The 0.x API requires the form: QGis.qgisVersion
while the 1.x API requires the: QGis.QGIS_VERSION
So my solution is:
self.QgisVersion = '1'
try:
if unicode(QGis.qgisVersion)[0] == '0':
self.QgisVersion = '0'
except:
pass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20081023/5dec95a1/attachment.html>
More information about the Qgis-user
mailing list