r.report fails in Processing

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

r.report fails in Processing

ghtmtt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi guys,
keeping on testing the dev version.. I have some trouble with
``r.reports`` of GRASS 7. Just choosing a grid file and run the algorith
m:

An error has occured while executing Python code:

TypeError: getObject() takes exactly 1 argument (2 given)
Traceback (most recent call last):
  File
"/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
line
168, in accept
    self.setParamValues()
  File
"/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
line
106, in setParamValues
    param, self.mainWidget.valueItems[param.name]):
  File
"/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
line
152, in setParamValue
    return param.setValue(widget.getValue())
  File
"/home/ma7730/.qgis2/python/plugins/processing/gui/ExtentSelectionPanel.
py",
line 185, in getValue
    return self.getMinCoveringExtent()
  File
"/home/ma7730/.qgis2/python/plugins/processing/gui/ExtentSelectionPanel.
py",
line 120, in getMinCoveringExtent
    layer = dataobjects.getObject(layername, first)
TypeError: getObject() takes exactly 1 argument (2 given)

I've tried different settings and layers but always the same error...

Thanks!

Matteo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWHRHdAAoJEBy7UYf0gaEOduAH/1zqOnjGP1OAvErwax1TyNLD
eKPGENYqCd/zBo9DmU5UEhYAGvW/BWt2mHsm4qNyS9b/sTkPSY9MK8ZCqiU7R9bk
ivNFowCBxcKXoVA/GLjFBBqz5rp4iPYqvQIxfTiJpU0sOXUmSGP9QWVWjKvwdRpW
2S+nyXhbOoVAV7y4bNgyENDNEYRcIYTbePwsFaDH+WbVQQHc8gUJh78W0TQw6H5w
2EUo4vORzDeq2TqmHUmWY3Fnr7GFGUD1Yn2f4ZUhuO0swTXhGh/psmXsC0gTvDNo
3tbmXKms/4TBZLSrdMA7qQDa6FXG3dXiRK8iiap110JXR2o7e9easpZ7v+4po18=
=rZqu
-----END PGP SIGNATURE-----
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: r.report fails in Processing

volaya
Matteo,

I just pushed a fix for that

Could you please test?

Thanks

2015-10-13 16:14 GMT+02:00 matteo <[hidden email]>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hi guys,
> keeping on testing the dev version.. I have some trouble with
> ``r.reports`` of GRASS 7. Just choosing a grid file and run the algorith
> m:
>
> An error has occured while executing Python code:
>
> TypeError: getObject() takes exactly 1 argument (2 given)
> Traceback (most recent call last):
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
> line
> 168, in accept
>     self.setParamValues()
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
> line
> 106, in setParamValues
>     param, self.mainWidget.valueItems[param.name]):
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
> line
> 152, in setParamValue
>     return param.setValue(widget.getValue())
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/ExtentSelectionPanel.
> py",
> line 185, in getValue
>     return self.getMinCoveringExtent()
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/ExtentSelectionPanel.
> py",
> line 120, in getMinCoveringExtent
>     layer = dataobjects.getObject(layername, first)
> TypeError: getObject() takes exactly 1 argument (2 given)
>
> I've tried different settings and layers but always the same error...
>
> Thanks!
>
> Matteo
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQEcBAEBCAAGBQJWHRHdAAoJEBy7UYf0gaEOduAH/1zqOnjGP1OAvErwax1TyNLD
> eKPGENYqCd/zBo9DmU5UEhYAGvW/BWt2mHsm4qNyS9b/sTkPSY9MK8ZCqiU7R9bk
> ivNFowCBxcKXoVA/GLjFBBqz5rp4iPYqvQIxfTiJpU0sOXUmSGP9QWVWjKvwdRpW
> 2S+nyXhbOoVAV7y4bNgyENDNEYRcIYTbePwsFaDH+WbVQQHc8gUJh78W0TQw6H5w
> 2EUo4vORzDeq2TqmHUmWY3Fnr7GFGUD1Yn2f4ZUhuO0swTXhGh/psmXsC0gTvDNo
> 3tbmXKms/4TBZLSrdMA7qQDa6FXG3dXiRK8iiap110JXR2o7e9easpZ7v+4po18=
> =rZqu
> -----END PGP SIGNATURE-----
> _______________________________________________
> Qgis-developer mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: r.report fails in Processing

pcav
Il 13/10/2015 20:04, Victor Olaya ha scritto:
> Matteo,
>
> I just pushed a fix for that
>
> Could you please test?

Another GRASS issue, possibly unrelated:
http://hub.qgis.org/issues/13591
All the best, and thanks Victor for the fixes.

--
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html


_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: r.report fails in Processing

ghtmtt
In reply to this post by volaya

Hi Victor,
tested but I have this error:

'NoneType' object has no attribute 'value' See log for more details

same error with v.report..

thanks Victor!

Matteo

Il giorno 13/ott/2015 20.04, "Victor Olaya" <[hidden email]> ha scritto:
Matteo,

I just pushed a fix for that

Could you please test?

Thanks

2015-10-13 16:14 GMT+02:00 matteo <[hidden email]>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hi guys,
> keeping on testing the dev version.. I have some trouble with
> ``r.reports`` of GRASS 7. Just choosing a grid file and run the algorith
> m:
>
> An error has occured while executing Python code:
>
> TypeError: getObject() takes exactly 1 argument (2 given)
> Traceback (most recent call last):
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
> line
> 168, in accept
>     self.setParamValues()
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
> line
> 106, in setParamValues
>     param, self.mainWidget.valueItems[param.name]):
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
> line
> 152, in setParamValue
>     return param.setValue(widget.getValue())
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/ExtentSelectionPanel.
> py",
> line 185, in getValue
>     return self.getMinCoveringExtent()
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/ExtentSelectionPanel.
> py",
> line 120, in getMinCoveringExtent
>     layer = dataobjects.getObject(layername, first)
> TypeError: getObject() takes exactly 1 argument (2 given)
>
> I've tried different settings and layers but always the same error...
>
> Thanks!
>
> Matteo
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQEcBAEBCAAGBQJWHRHdAAoJEBy7UYf0gaEOduAH/1zqOnjGP1OAvErwax1TyNLD
> eKPGENYqCd/zBo9DmU5UEhYAGvW/BWt2mHsm4qNyS9b/sTkPSY9MK8ZCqiU7R9bk
> ivNFowCBxcKXoVA/GLjFBBqz5rp4iPYqvQIxfTiJpU0sOXUmSGP9QWVWjKvwdRpW
> 2S+nyXhbOoVAV7y4bNgyENDNEYRcIYTbePwsFaDH+WbVQQHc8gUJh78W0TQw6H5w
> 2EUo4vORzDeq2TqmHUmWY3Fnr7GFGUD1Yn2f4ZUhuO0swTXhGh/psmXsC0gTvDNo
> 3tbmXKms/4TBZLSrdMA7qQDa6FXG3dXiRK8iiap110JXR2o7e9easpZ7v+4po18=
> =rZqu
> -----END PGP SIGNATURE-----
> _______________________________________________
> Qgis-developer mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: r.report fails in Processing

volaya
could you provide the full stack trace?

thanks!

2015-10-14 9:19 GMT+02:00 Matteo Ghetta <[hidden email]>:

> Hi Victor,
> tested but I have this error:
>
> 'NoneType' object has no attribute 'value' See log for more details
>
> same error with v.report..
>
> thanks Victor!
>
> Matteo
>
> Il giorno 13/ott/2015 20.04, "Victor Olaya" <[hidden email]> ha scritto:
>>
>> Matteo,
>>
>> I just pushed a fix for that
>>
>> Could you please test?
>>
>> Thanks
>>
>> 2015-10-13 16:14 GMT+02:00 matteo <[hidden email]>:
>> > -----BEGIN PGP SIGNED MESSAGE-----
>> > Hash: SHA256
>> >
>> > Hi guys,
>> > keeping on testing the dev version.. I have some trouble with
>> > ``r.reports`` of GRASS 7. Just choosing a grid file and run the algorith
>> > m:
>> >
>> > An error has occured while executing Python code:
>> >
>> > TypeError: getObject() takes exactly 1 argument (2 given)
>> > Traceback (most recent call last):
>> >   File
>> > "/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
>> > line
>> > 168, in accept
>> >     self.setParamValues()
>> >   File
>> > "/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
>> > line
>> > 106, in setParamValues
>> >     param, self.mainWidget.valueItems[param.name]):
>> >   File
>> > "/home/ma7730/.qgis2/python/plugins/processing/gui/AlgorithmDialog.py",
>> > line
>> > 152, in setParamValue
>> >     return param.setValue(widget.getValue())
>> >   File
>> > "/home/ma7730/.qgis2/python/plugins/processing/gui/ExtentSelectionPanel.
>> > py",
>> > line 185, in getValue
>> >     return self.getMinCoveringExtent()
>> >   File
>> > "/home/ma7730/.qgis2/python/plugins/processing/gui/ExtentSelectionPanel.
>> > py",
>> > line 120, in getMinCoveringExtent
>> >     layer = dataobjects.getObject(layername, first)
>> > TypeError: getObject() takes exactly 1 argument (2 given)
>> >
>> > I've tried different settings and layers but always the same error...
>> >
>> > Thanks!
>> >
>> > Matteo
>> > -----BEGIN PGP SIGNATURE-----
>> > Version: GnuPG v2
>> >
>> > iQEcBAEBCAAGBQJWHRHdAAoJEBy7UYf0gaEOduAH/1zqOnjGP1OAvErwax1TyNLD
>> > eKPGENYqCd/zBo9DmU5UEhYAGvW/BWt2mHsm4qNyS9b/sTkPSY9MK8ZCqiU7R9bk
>> > ivNFowCBxcKXoVA/GLjFBBqz5rp4iPYqvQIxfTiJpU0sOXUmSGP9QWVWjKvwdRpW
>> > 2S+nyXhbOoVAV7y4bNgyENDNEYRcIYTbePwsFaDH+WbVQQHc8gUJh78W0TQw6H5w
>> > 2EUo4vORzDeq2TqmHUmWY3Fnr7GFGUD1Yn2f4ZUhuO0swTXhGh/psmXsC0gTvDNo
>> > 3tbmXKms/4TBZLSrdMA7qQDa6FXG3dXiRK8iiap110JXR2o7e9easpZ7v+4po18=
>> > =rZqu
>> > -----END PGP SIGNATURE-----
>> > _______________________________________________
>> > Qgis-developer mailing list
>> > [hidden email]
>> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: r.report fails in Processing

ghtmtt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

> could you provide the full stack trace?
>
> thanks!

here it is.. first the last lines of the log:

|1984.904889-1992.787789|from to . . . . . . . . . . . . . . . . .|
0.00772|
|1992.787789-2000.670689|from to . . . . . . . . . . . . . . . . .|
0.00386|
|2000.670689-2008.553589|from to . . . . . . . . . . . . . . . . .|
0.00772|
|-----------------------------------------------------------------------
- ------|

|TOTAL |8816.17656|
+-----------------------------------------------------------------------
- ------+

Execution of '/home/ma7730/.qgis2//processing/grass7_batch_job.sh'
finished.
Cleaning up temporary files...

'NoneType' object has no attribute 'value' See log for more details



and here the trace:

015-10-14T10:12:27 2 Uncaught error while executing algorithm
                        Traceback (most recent call last):
                        Traceback (most recent call last):|  File
"/home/ma7730/.qgis2/python/plugins/processing/core/GeoAlgorithm.py",
line 230, in execute|    self.processAlgorithm(progress)|  File
"/home/ma7730/.qgis2/python/plugins/processing/algs/grass7/Grass7Algorit
hm.py",
line 429, in processAlgorithm|    with
open(self.getOutputFromName("rawoutput").value) as f:|AttributeError:
'NoneType' object has no attribute 'value'|


do you need more information? can I help you in some way?

thanks!

Matteo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWHg7VAAoJEBy7UYf0gaEO1tUH/1uP2yjf1UJNSQmfBYeVlWJm
UnoP60sLG988ucVTPsZ2ow1BdpY+l63sQObaMQI51v5o1Bmnruv0PuDnaWC1GePn
kAlRk0vKtvZqlVDXMoCpq2pVLWizMkVVw9/e6YPNwBWCE0Lyyyvoa4AVefbQBaH9
OnzyyOmhPWnEJCoIbnmnsXBRQcvZKWNvgaciBWElyJ/VsBRPA1zYmzHaGWy2u8vW
YGT0Glgce530HJy3hgDoKkzarbQLnOeT2o/hF9zsSSkyqVz7iqiLzMy/6ABOK57I
+ziGZhvQAgBHNMBHMrwOnvflLEd6onAYbtLBGbnMCjLL/8n0CKxYQkPL+GFYzI0=
=IpM0
-----END PGP SIGNATURE-----
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: r.report fails in Processing

ghtmtt
In reply to this post by volaya
Hi Victor,
just to let you know that both r.report and v.report are working now

Thanks!

Matteo
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer