Re: [GRASS-user] r.width.funct in correct version

2019-02-20 Thread Veronica Andreo
Hola Juan,

El mié., 20 feb. 2019 12:52, Juan Lopez  escribió:

> Dear Veronica.
> I am agree with you. Maybe Nikos needs maplotlib, but I get allways
> the same error. Here is a copy of my terminal messages:
>
> Traceback (most recent call last):
>   File "/home/jefe/.grass7/addons/scripts/r.width.funct",
> line 135, in 
> sys.exit(main())
>   File "/home/jefe/.grass7/addons/scripts/r.width.funct",
> line 84, in main
> prc[0,0] , prc[0,1] = findint(kl,0.05) , 0.05
>   File "/home/jefe/.grass7/addons/scripts/r.width.funct",
> line 128, in findint
> z1, z2, f1, f2 = kl[int(Xf[0])][0], kl[int(Xf[0]-1)][0],
> kl[int(Xf[0])][1], kl[int(Xf[0]-1)][1]
> IndexError: invalid index to scalar variable.
> ('Tot. cells', 3679327.0)
> ('Tot. area', 3456746376.8999004)
> ('Max distance', 69179.64466901)
>

But is this the error when installing?

It seems more like the error after using the command itself. If that's the
case, please share the exact command you used, so others can help. Also, if
you could reproduce the error with North Carolina dataset, that would be
even better.

Vero
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] r.width.funct in correct version

2019-02-20 Thread Veronica Andreo
Hi,

here it is installed without issues both in grass76 and development
version. Do you have matplotlib installed? AFAIU, that's what the error is
saying.

cheers,
Vero

El mié., 20 feb. 2019 a las 12:42, Juan Lopez ()
escribió:

> I am falling into this error because I am trying to upgrade the whole OS
> from 18 to 19 including qgis from 2.18 to 3.
> But it is not a simple task.
> Previously, r.width.funct was working just fine.
>
> Regards
>
> On Wed, Feb 20, 2019 at 7:22 AM Nikos Alexandris 
> wrote:
>
>> * Juan Lopez  [2019-02-20 06:20:48 -0400]:
>>
>> >I have found a discussion about r.width.funct in this list, but I am
>> >not sure about the meaning of the final comment in order to solve the
>> >problem.
>> >
>> >
>> >Discussion is in this link
>> >
>> >https://www.mail-archive.com/grass-user@lists.osgeo.org/msg37141.html
>> >
>> >Bartolomei Chris and Markus Neteler says that it is already fixed.
>> >
>> >
>> >I am trying to understand their comments.  I have exactly the same
>> >problem.  r.width.fucnt is not working.
>> >
>> >
>> >What I did:
>> >
>> >
>> >   - I have Linux Mint 19.1 Cinnamon, based on Ubuntu Bionic.
>> >   - Installed standard Grass 7.4.0 from Ubuntu repositories.
>> >   - Applied r.width.funct and failed.
>> >   - Removed this version and added new repository, recomended by
>> >https://grass.osgeo.org/news/78/15/GRASS-GIS-7-4-2-released
>> >   - System got updated and new version came to linux.
>> >   - Installed  Grass 7.6.0 (new stable) from
>> ppa:ubuntugis/ubuntugis-unstable
>> >   - Problem remains the same.
>> >   - Reinstalled  r.width.funct and failed.
>> >   - Replaced script in  r.width.funct for the one presented in this
>> >tread (
>> https://www.mail-archive.com/grass-user@lists.osgeo.org/msg37141.html)
>> >and failed.
>> >
>> >I would like to keep the original standard repositories in order to
>> >let administrative maintenance tasks as simple as possible.
>> >
>> >Did I missed something to solve the problem?
>>
>> Installation via g.extension fails here too:
>>
>> ```
>> → g.version -r
>> GRASS 7.7.svn (2019)
>> libgis Revision: 73998
>> libgis Date: 2019-01-22 12:04:06 +0100 (Tue, 22 Jan 2019)
>> ```
>> and
>> ```
>> → g.extension r.width.funct
>> Fetching  from GRASS GIS Addons repository (be patient)...
>> Compiling...
>> Traceback (most recent call last):
>>   File
>> "/tmp/grass7-nik-25324/tmpnmZ2V7/r.width.funct/scripts/r.width.funct", line
>> 45, in 
>> import matplotlib #required by windows
>> ImportError: No module named matplotlib
>> make: ***
>> [/osgeo/grasstrunk/dist.x86_64-pc-linux-gnu/include/Make/Html.make:14:
>> r.width.funct.tmp.html] Error 1
>> ERROR: Compilation failed, sorry. Please check above error messages.
>> ```
>>
>> Nikos
>>
>
>
> --
> Prof. Juan Ygnacio López Hernández Ing. MSc. PhD.
> Universidad de Los Andes 
> Escuela de Ingeniería Forestal
> Mérida, Venezuela.
> Tel. ++58 426 3185690
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] r.width.funct in correct version

2019-02-20 Thread Juan Lopez
I am falling into this error because I am trying to upgrade the whole OS
from 18 to 19 including qgis from 2.18 to 3.
But it is not a simple task.
Previously, r.width.funct was working just fine.

Regards

On Wed, Feb 20, 2019 at 7:22 AM Nikos Alexandris 
wrote:

> * Juan Lopez  [2019-02-20 06:20:48 -0400]:
>
> >I have found a discussion about r.width.funct in this list, but I am
> >not sure about the meaning of the final comment in order to solve the
> >problem.
> >
> >
> >Discussion is in this link
> >
> >https://www.mail-archive.com/grass-user@lists.osgeo.org/msg37141.html
> >
> >Bartolomei Chris and Markus Neteler says that it is already fixed.
> >
> >
> >I am trying to understand their comments.  I have exactly the same
> >problem.  r.width.fucnt is not working.
> >
> >
> >What I did:
> >
> >
> >   - I have Linux Mint 19.1 Cinnamon, based on Ubuntu Bionic.
> >   - Installed standard Grass 7.4.0 from Ubuntu repositories.
> >   - Applied r.width.funct and failed.
> >   - Removed this version and added new repository, recomended by
> >https://grass.osgeo.org/news/78/15/GRASS-GIS-7-4-2-released
> >   - System got updated and new version came to linux.
> >   - Installed  Grass 7.6.0 (new stable) from
> ppa:ubuntugis/ubuntugis-unstable
> >   - Problem remains the same.
> >   - Reinstalled  r.width.funct and failed.
> >   - Replaced script in  r.width.funct for the one presented in this
> >tread (
> https://www.mail-archive.com/grass-user@lists.osgeo.org/msg37141.html)
> >and failed.
> >
> >I would like to keep the original standard repositories in order to
> >let administrative maintenance tasks as simple as possible.
> >
> >Did I missed something to solve the problem?
>
> Installation via g.extension fails here too:
>
> ```
> → g.version -r
> GRASS 7.7.svn (2019)
> libgis Revision: 73998
> libgis Date: 2019-01-22 12:04:06 +0100 (Tue, 22 Jan 2019)
> ```
> and
> ```
> → g.extension r.width.funct
> Fetching  from GRASS GIS Addons repository (be patient)...
> Compiling...
> Traceback (most recent call last):
>   File
> "/tmp/grass7-nik-25324/tmpnmZ2V7/r.width.funct/scripts/r.width.funct", line
> 45, in 
> import matplotlib #required by windows
> ImportError: No module named matplotlib
> make: ***
> [/osgeo/grasstrunk/dist.x86_64-pc-linux-gnu/include/Make/Html.make:14:
> r.width.funct.tmp.html] Error 1
> ERROR: Compilation failed, sorry. Please check above error messages.
> ```
>
> Nikos
>


-- 
Prof. Juan Ygnacio López Hernández Ing. MSc. PhD.
Universidad de Los Andes 
Escuela de Ingeniería Forestal
Mérida, Venezuela.
Tel. ++58 426 3185690
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] r.width.funct in correct version

2019-02-20 Thread Nikos Alexandris

* Juan Lopez  [2019-02-20 06:20:48 -0400]:


I have found a discussion about r.width.funct in this list, but I am
not sure about the meaning of the final comment in order to solve the
problem.


Discussion is in this link

https://www.mail-archive.com/grass-user@lists.osgeo.org/msg37141.html

Bartolomei Chris and Markus Neteler says that it is already fixed.


I am trying to understand their comments.  I have exactly the same
problem.  r.width.fucnt is not working.


What I did:


  - I have Linux Mint 19.1 Cinnamon, based on Ubuntu Bionic.
  - Installed standard Grass 7.4.0 from Ubuntu repositories.
  - Applied r.width.funct and failed.
  - Removed this version and added new repository, recomended by
https://grass.osgeo.org/news/78/15/GRASS-GIS-7-4-2-released
  - System got updated and new version came to linux.
  - Installed  Grass 7.6.0 (new stable) from ppa:ubuntugis/ubuntugis-unstable
  - Problem remains the same.
  - Reinstalled  r.width.funct and failed.
  - Replaced script in  r.width.funct for the one presented in this
tread (https://www.mail-archive.com/grass-user@lists.osgeo.org/msg37141.html)
and failed.

I would like to keep the original standard repositories in order to
let administrative maintenance tasks as simple as possible.

Did I missed something to solve the problem?


Installation via g.extension fails here too:

```
→ g.version -r
GRASS 7.7.svn (2019)
libgis Revision: 73998
libgis Date: 2019-01-22 12:04:06 +0100 (Tue, 22 Jan 2019)
```
and
```
→ g.extension r.width.funct
Fetching  from GRASS GIS Addons repository (be patient)...
Compiling...
Traceback (most recent call last):
 File "/tmp/grass7-nik-25324/tmpnmZ2V7/r.width.funct/scripts/r.width.funct", line 45, 
in 
   import matplotlib #required by windows
ImportError: No module named matplotlib
make: *** 
[/osgeo/grasstrunk/dist.x86_64-pc-linux-gnu/include/Make/Html.make:14: 
r.width.funct.tmp.html] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
```

Nikos
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

[GRASS-user] r.width.funct in correct version

2019-02-20 Thread Juan Lopez
I have found a discussion about r.width.funct in this list, but I am
not sure about the meaning of the final comment in order to solve the
problem.


Discussion is in this link

https://www.mail-archive.com/grass-user@lists.osgeo.org/msg37141.html

Bartolomei Chris and Markus Neteler says that it is already fixed.


I am trying to understand their comments.  I have exactly the same
problem.  r.width.fucnt is not working.


What I did:


   - I have Linux Mint 19.1 Cinnamon, based on Ubuntu Bionic.
   - Installed standard Grass 7.4.0 from Ubuntu repositories.
   - Applied r.width.funct and failed.
   - Removed this version and added new repository, recomended by
https://grass.osgeo.org/news/78/15/GRASS-GIS-7-4-2-released
   - System got updated and new version came to linux.
   - Installed  Grass 7.6.0 (new stable) from ppa:ubuntugis/ubuntugis-unstable
   - Problem remains the same.
   - Reinstalled  r.width.funct and failed.
   - Replaced script in  r.width.funct for the one presented in this
tread (https://www.mail-archive.com/grass-user@lists.osgeo.org/msg37141.html)
and failed.

I would like to keep the original standard repositories in order to
let administrative maintenance tasks as simple as possible.

Did I missed something to solve the problem?


-- 
Prof. Juan Ygnacio López Hernández Ing. MSc. PhD.
Universidad de Los Andes 
Escuela de Ingeniería Forestal
Mérida, Venezuela.
Tel. ++58 426 3185690
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user