Re: [Qgis-developer] p.write() throws an error

2017-03-06 Thread Paolo Cavallini
Il 06/03/2017 15:33, kimaidou ha scritto:
> 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.)

Thanks Michaël for following this up.
QGIS both 2.14 and 2.18, latest version
OS both Debian Testing and Windows 10 (on other PC with Win it did not
happen)
It seems to happen (only?) when there are unsaved changes to the project.
All the best.

-- 
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
https://www.google.com/trends/explore?date=all=IT=qgis,arcgis
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] p.write() throws an error

2017-03-06 Thread kimaidou
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 :

> 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=IT=qgis,arcgis
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] p.write() throws an error

2017-03-03 Thread Paolo Cavallini
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=IT=qgis,arcgis
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer