Closed pvandegeer closed 5 years ago
Mmm, which version of QGIS are you running? Because in my QGIS 2.18 both work:
QGis 2.18.28 32-bit on Windows 10
Can you compare sip versions too?
On Debian I have 4.19.13 (I think?)
Maybe we should show this in About box ?
import sip
sip.SIP_VERSION_STR
On Linux: '4.19.13'
On Windows (2.18.27 Osgeo4W install): '4'14'7
Quite some things have changed regarding enums (https://www.riverbankcomputing.com/static/Docs/sip/incompatibilities.html)
I would just stick to the "compatible" version for now
QGis 2.18.28 32-bit on Windows 10
SIP is 4.16.5
See version 1.2.2, should be fixed now
Works for me. 👍
The latest version returns an error as QGis.UnitType.Meters is not recognized.
The Python enum is QGis.Meters, see: http://geoapis.sourcepole.com/qgispyapi/qgis#QGis.UnitType