Plugin autoSaver in QGIS 2.18.21 LTR

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Plugin autoSaver in QGIS 2.18.21 LTR

suburbanstudio
Buongiorno a tutti.
questa mattina ho aggiornato la mia versione QGIS LTR all'ultima versione QGIS 2.18.21
ed è apparso un problema python con questo plugin.

E' un mio problema o potrebbe essere un bug ?

Utilizzo Windows 10 a 64 bit

Grazie

Massimo




https://plugins.qgis.org/plugins/autoSaver/

Si è verificato un errore durante l'esecuzione del codice Python:

TypeError: write() takes exactly 2 arguments (1 given)

Traceback (most recent call last):
  File "C:/Users/info/.qgis2/python/plugins\autoSaver\autosave.py", line 370, in cronEvent
    self.saveCurrentProject()
  File "C:/Users/info/.qgis2/python/plugins\autoSaver\autosave.py", line 399, in saveCurrentProject
    QgsProject.instance().write()
TypeError: write() takes exactly 2 arguments (1 given)


Versione Python: 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)]
Versione di QGIS: 2.18.21 Las Palmas, 9fba24a3f2

Percorso Python:

  • C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python/plugins\processing
  • C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python
  • C:/Users/info/.qgis2/python
  • C:/Users/info/.qgis2/python/plugins
  • C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python/plugins
  • C:\PROGRA~1\QGIS2~1.18\bin\python27.zip
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\DLLs
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\plat-win
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\lib-tk
  • C:\PROGRA~1\QGIS2~1.18\bin
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\win32
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\win32\lib
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Pythonwin
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\wx-2.8-msw-unicode
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg
  • C:/Users/info/.qgis2//python
  • C:/Users/info/.qgis2/python/plugins\go2streetview
  • C:\Users\info\.qgis2\python\plugins\mmqgis/forms
  • C:\Users\info\.qgis2\python\plugins
  • C:\Users\info\.qgis2\python\plugins
  • C:\Users\info\.qgis2\python\plugins\QuickMultiAttributeEdit/forms


_______________________________________________
QGIS-it-user mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-it-user
Reply | Threaded
Open this post in threaded view
|

Re: Plugin autoSaver in QGIS 2.18.21 LTR

enricofer
Con l'ultima versione(2.4) del plugin nella medesima configurazione non ottengo nessun errore.
Potresti dare qualche istruzione in più per riprodurre il problema?

Il giorno 28 giugno 2018 13:14, Massimo A. <[hidden email]> ha scritto:
Buongiorno a tutti.
questa mattina ho aggiornato la mia versione QGIS LTR all'ultima versione QGIS 2.18.21
ed è apparso un problema python con questo plugin.

E' un mio problema o potrebbe essere un bug ?

Utilizzo Windows 10 a 64 bit

Grazie

Massimo




https://plugins.qgis.org/plugins/autoSaver/

Si è verificato un errore durante l'esecuzione del codice Python:

TypeError: write() takes exactly 2 arguments (1 given)

Traceback (most recent call last):
  File "C:/Users/info/.qgis2/python/plugins\autoSaver\autosave.py", line 370, in cronEvent
    self.saveCurrentProject()
  File "C:/Users/info/.qgis2/python/plugins\autoSaver\autosave.py", line 399, in saveCurrentProject
    QgsProject.instance().write()
TypeError: write() takes exactly 2 arguments (1 given)


Versione Python: 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)]
Versione di QGIS: 2.18.21 Las Palmas, 9fba24a3f2

Percorso Python:

  • C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python/plugins\processing
  • C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python
  • C:/Users/info/.qgis2/python
  • C:/Users/info/.qgis2/python/plugins
  • C:/PROGRA~1/QGIS2~1.18/apps/qgis-ltr/./python/plugins
  • C:\PROGRA~1\QGIS2~1.18\bin\python27.zip
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\DLLs
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\plat-win
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\lib-tk
  • C:\PROGRA~1\QGIS2~1.18\bin
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\win32
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\win32\lib
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Pythonwin
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\wx-2.8-msw-unicode
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg
  • C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg
  • C:/Users/info/.qgis2//python
  • C:/Users/info/.qgis2/python/plugins\go2streetview
  • C:\Users\info\.qgis2\python\plugins\mmqgis/forms
  • C:\Users\info\.qgis2\python\plugins
  • C:\Users\info\.qgis2\python\plugins
  • C:\Users\info\.qgis2\python\plugins\QuickMultiAttributeEdit/forms


_______________________________________________
QGIS-it-user mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-it-user



_______________________________________________
QGIS-it-user mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-it-user
Reply | Threaded
Open this post in threaded view
|

Re: Plugin autoSaver in QGIS 2.18.21 LTR

suburbanstudio

On 29/06/2018 11:01, Enrico Ferreguti wrote:

Con l'ultima versione(2.4) del plugin nella medesima configurazione non ottengo nessun errore.
Potresti dare qualche istruzione in più per riprodurre il problema?


L´errore dal pannello messaggi log di Python che ricevo è questo :

2018-07-04T13:31:38 1 Traceback (most recent call last):

File "C:/Users/info/.qgis2/python/plugins\autoSaver\autosave.py", line 370, in cronEvent

self.saveCurrentProject()

File "C:/Users/info/.qgis2/python/plugins\autoSaver\autosave.py", line 399, in saveCurrentProject

QgsProject.instance().write()

TypeError: write() takes exactly 2 arguments (1 given)



opero con questa versione di QGIS

Versione di QGIS

2.18.21

Revisione codice QGIS

9fba24a3f2

Compilato con Qt

4.8.5

Esecuzione con Qt

4.8.5

Compilato con GDAL/OGR

2.2.4

Esecuzione con GDAL/OGR

2.2.4

Compilato con GEOS

3.6.1-CAPI-1.10.1

Esecuzione con GEOS

3.6.1-CAPI-1.10.1 r0

Versione client PostgreSQL

9.2.4

Versione SpatiaLite

4.3.0

Versione QWT

5.2.3

Versione PROJ.4

493

Versione QScintilla2

2.7.2





_______________________________________________
QGIS-it-user mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-it-user