[Qgis-developer] p.write() throws an error
kimaidou
kimaidou at gmail.com
Mon Mar 6 06:33:13 PST 2017
Hi Paolo,
As you tested, this is not related to Lizmap plugin, because you told me
you tested the following python code inside your Python console and got the
same error
p = QgsProject.instance()
if p.isDirty():
p.write()
Can anyone else test and report there is no pbm ? Paolo, could you give
more information on QGIS Version / Platform and status of project file (
new not saved, saved, etc.)
Cheers
Michaƫl
2017-03-03 9:33 GMT+01:00 Paolo Cavallini <cavallini at faunalia.it>:
> Hi all,
> while using the latest version of Lizmap plugin, I get an error on some
> machines;
> ===
> 2017-03-01T16:50:09 1 Traceback (most recent call last):
> File "/home/paolo/.qgis2/python/plugins/lizmap/lizmap.py",
> line
> 2718, in run
> if not self.dlg.isVisible() and self.
> checkGlobalProjectOptions():
> File "/home/paolo/.qgis2/python/plugins/lizmap/lizmap.py",
> line
> 2377, in checkGlobalProjectOptions
> p.write()
> TypeError: write() takes exactly 2 arguments (1
> given)
> ===
> So apparently sip bindings have a problem here.
>
> All the best, and thanks.
> --
> Paolo Cavallini - www.faunalia.eu
> QGIS & PostGIS courses: http://www.faunalia.eu/training.html
> https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170306/705b2742/attachment.html>
More information about the Qgis-developer
mailing list