[GRASS-user] GUI/Addons

Hello everyone,

This is my first time using a mailing list so i hope it would be a great experience.
Since my second day using grass evrything is a nightmare to use … There is always something wrong.

I/Grass -gui
So i cant use the gui interface because i don’t have wxPython:

Démarrage du SIG GRASS …
ERROR: wxGUI requires wxPython. No module named ‘wx’
You can still use GRASS GIS modules in the command line or in Python.
ERREUR: Erreur lors du lancement de l’interface graphique. Lire les messages ci-dessous (s’il y en a), et si nécessaire merci de rapporter cette erreur aux dévelopeurs GRASS. Sur un système avec un gestionnaire de paquets, assurez-vous d’avoir le bon paquet d’interface graphique installé, probablement nommé grass-gui.
Pour lancer GRASS en mode texte utilisez l’option --text.
Utilisez ‘–help’ pour plus d’options

And when i try to install it via sudo apt-get install wxPython

‘python-wxWidgets-3_0’ fournissant ‘wxPython’ est déjà installé.
Résolution des dépendances des paquets…
Rien à faire.

So it says i have already wxPython. With that i just dont know what to do.

II/Addons
Since i can’t get the graphical interface working i was resolved to use the text interface.

when i try to use g.extension extension=r.neighboorhoodmatrix i get:

/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/bin/ld : /usr/lib64/libgdal.so.28 : référence indéfinie vers « opj_encoder_set_extra_options »
collect2: error: ld returned 1 exit status
make: *** [/usr/lib64/grass78/include/Make/Module.make:18: /tmp/grass7-cyril.gainon-15457/tmp8hn9bx9x/r.neighborhoodmatrix/bin/r.neighborhoodmatrix] Error 1
ERREUR : Compilation failed, sorry. Please check above error messages.

For information when i still had the interface i had the svn pb when trying to install an addon. i did resolve it by installing grass-dev and make an update since then it’s note working.
Also i’m working on Opensuse 15.2 and grass 7.8

Hope i gave you sufficient info, either way ask me and i can give you more.

thanks for reading and hope you can help me

Hi Cyril,

On Thu, May 6, 2021 at 9:51 AM Cyril Gainon <Gainon.Cyril@hotmail.fr> wrote:

Hello everyone,

This is my first time using a mailing list so i hope it would be a great experience.
Since my second day using grass evrything is a nightmare to use ... There is always something wrong.

I/Grass -gui
So i cant use the gui interface because i don't have wxPython:

Démarrage du SIG GRASS ...
ERROR: wxGUI requires wxPython. No module named 'wx'
You can still use GRASS GIS modules in the command line or in Python.

Which Linux distribution are you using?

I have started to create a FAQ entry in the Wiki (@all, please expand
as needed):

https://grasswiki.osgeo.org/wiki/ERROR:_wxGUI_requires_wxPython

And when i try to install it via sudo apt-get install wxPython

This looks like Debian, Mint, Ubuntu...: it might be:

sudo apt-get install python3-wxgtk4.0

Please see the new FAQ page for names, depending on the Linux
distribution in use.

'python-wxWidgets-3_0' fournissant 'wxPython' est déjà installé.
Résolution des dépendances des paquets...
Rien à faire.

So it says i have already wxPython. With that i just dont know what to do.

In Debian, the name seems to be

sudo apt-get install python-wxgtk3.0

II/Addons
Since i can't get the graphical interface working i was resolved to use the text interface.

when i try to use g.extension extension=r.neighboorhoodmatrix i get:

/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld : /usr/lib64/libgdal.so.28 : référence indéfinie vers « opj_encoder_set_extra_options »

Is this a different computer? Here "suse" appears...

Nonetheless: this is an OpenJPEG library conflict. Means: your GDAL
installation and OpenJPEG version are somehow in conflict. Perhaps
SuSe and Debian/Ubuntu sources are mixed (in case you report all about
the same computer)?

For information when i still had the interface i had the svn pb when trying to install an addon. i did resolve it by installing grass-dev and make an update since then it's note working.
Also i'm working on Opensuse 15.2 and grass 7.8

Is this a different computer than that mentioned in the beginning of your email?

Best,
Markus

--
Markus Neteler, PhD
https://www.mundialis.de - free data with free software
https://grass.osgeo.org
https://courses.neteler.org/blog

(please keep the list in CC so that all can contribute/benefit)

On Thu, May 6, 2021 at 11:27 AM Cyril Gainon <gainon.cyril@hotmail.fr> wrote:

Hello Markus,

First thanks for your reactivity.

I thought i mentioned it at the end of my mail. I'm currently using OpenSuse Leap 15.2, both error are on the same computer.

I see. I was just confused about

And when i try to install it via sudo apt-get install wxPython

Isn't it zypper on OpenSuse?

I checked the wiki page you linked, and it seems that i already have the package, maybe as you said lower i have some conflict.

Please send the list of wxpython related packages which are installed.

Now to your separate g.extension problem:

GDAL work fines, i just used gdalwarp 2 min ago.

OK, good.

So now, how can i see there is a conflict and how can i fix it ?

No idea. I just tried here:

GRASS nc_spm_08_grass7/user1:~ > g.extension extension=r.neighborhoodmatrix
Fetching <r.neighborhoodmatrix> from GRASS GIS Addons repository (be
patient)...
Compiling...
main.c: In function ‘main’:
main.c:83:28: warning: unused variable ‘nbp_search’ [-Wunused-variable]
   83 | struct nbp *nbp_found, nbp_search, *nbp_new;
      | ^~~~~~~~~~
main.c:66:9: warning: unused variable ‘i’ [-Wunused-variable]
   66 | int i;
      | ^
At top level:
main.c:47:13: warning: ‘free_pavl_item’ defined but not used [-Wunused-function]
   47 | static void free_pavl_item(void *p)
      | ^~~~~~~~~~~~~~
Installing...
Updating extensions metadata file...
Updating extension modules metadata file...
Installation of <r.neighborhoodmatrix> successfully finished

The compile warnings are not dramatic and unrelated. Perhaps you can
send the entire error message to better understand.

Markus

Oh yeah sorry abour that.

you’re right i totally forgot about it, i mainly used apt-get (in my studies i was mostly on mint) so i guess we go back to your theory conflit with unbuntu library.

Here are all the wx i got with zypper pa | grep wx

| openSUSE-Leap-15.2-1 | plplotwxwidgets-devel | 5.15.0-lp152.2.4 | x86_64
| Dépôt principal | plplotwxwidgets-devel | 5.15.0-lp152.2.4 | x86_64
i+ | openSUSE-Leap-15.2-1 | python-wxWidgets-3_0 | 3.0.2.0-lp152.4.8 | x86_64
i+ | Dépôt principal | python-wxWidgets-3_0 | 3.0.2.0-lp152.4.8 | x86_64
| openSUSE-Leap-15.2-1 | python-wxWidgets-3_0-devel | 3.0.2.0-lp152.4.8 | x86_64
| Dépôt principal | python-wxWidgets-3_0-devel | 3.0.2.0-lp152.4.8 | x86_64
i+ | openSUSE-Leap-15.2-1 | python-wxWidgets-3_0-lang | 3.0.2.0-lp152.4.8 | x86_64
i+ | Dépôt principal | python-wxWidgets-3_0-lang | 3.0.2.0-lp152.4.8

btw does any package from pip influence on the behavior of grass ?

Here is the full error message

GRASS 7.8.4 (nc_spm_08_grass7):~ > g.extension extension=r.neighborhoodmatrix
Fetching <r.neighborhoodmatrix> from GRASS GIS Addons repository (be
patient)…
Compiling…
/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/bin/ld : /usr/lib64/libgdal.so.28 : référence indéfinie vers « opj_encoder_set_extra_options »
collect2: error: ld returned 1 exit status
make: *** [/usr/lib64/grass78/include/Make/Module.make:18: /tmp/grass7-cyril.gainon-13653/tmpsqayrj_1/r.neighborhoodmatrix/bin/r.neighborhoodmatrix] Error 1
ERREUR : Compilation failed, sorry. Please check above error messages.
GRASS 7.8.4 (nc_spm_08_grass7):~ >


(please keep the list in CC so that all can contribute/benefit)

On Thu, May 6, 2021 at 11:27 AM Cyril Gainon gainon.cyril@hotmail.fr wrote:

Hello Markus,

First thanks for your reactivity.

I thought i mentioned it at the end of my mail. I’m currently using OpenSuse Leap 15.2, both error are on the same computer.

I see. I was just confused about

And when i try to install it via sudo apt-get install wxPython

Isn’t it zypper on OpenSuse?

I checked the wiki page you linked, and it seems that i already have the package, maybe as you said lower i have some conflict.

Please send the list of wxpython related packages which are installed.

Now to your separate g.extension problem:

GDAL work fines, i just used gdalwarp 2 min ago.

OK, good.

So now, how can i see there is a conflict and how can i fix it ?

No idea. I just tried here:

GRASS nc_spm_08_grass7/user1:~ > g.extension extension=r.neighborhoodmatrix
Fetching <r.neighborhoodmatrix> from GRASS GIS Addons repository (be
patient)…
Compiling…
main.c: In function ‘main’:
main.c:83:28: warning: unused variable ‘nbp_search’ [-Wunused-variable]
83 | struct nbp *nbp_found, nbp_search, *nbp_new;
| ^~~~~~~~~~
main.c:66:9: warning: unused variable ‘i’ [-Wunused-variable]
66 | int i;
| ^
At top level:
main.c:47:13: warning: ‘free_pavl_item’ defined but not used [-Wunused-function]
47 | static void free_pavl_item(void *p)
| ^~~~~~~~~~~~~~
Installing…
Updating extensions metadata file…
Updating extension modules metadata file…
Installation of <r.neighborhoodmatrix> successfully finished

The compile warnings are not dramatic and unrelated. Perhaps you can
send the entire error message to better understand.

Markus

Cyril,

I also use openSUSE (Tumbleweed, not Leap). I believe you are experiencing problems that have different causes.

In first place you seem to use Python modules installed using both the package manager (zypper) and pip. My experience is that this is often cause for conflicts that are hard to diagnose and solve. My suggestion is to uninstall everything and install again using one or the other approach exclusively.

One reason I use Tumbleweed instead of Leap is that packages in the latter may be outdated and pose problems. In tumbleweed everything is bleeding edge. This is most often and advantage although of course it sometimes poses a different sort of problem.

Then I see you also have problems with openJPEG but I cannot help with that.

Good luck!

Hernán

···

On 2021-05-06 15:20, Cyril Gainon wrote:

Oh yeah sorry abour that.

you’re right i totally forgot about it, i mainly used apt-get (in my studies i was mostly on mint) so i guess we go back to your theory conflit with unbuntu library.

Here are all the wx i got with zypper pa | grep wx

| openSUSE-Leap-15.2-1 | plplotwxwidgets-devel | 5.15.0-lp152.2.4 | x86_64
| Dépôt principal | plplotwxwidgets-devel | 5.15.0-lp152.2.4 | x86_64
i+ | openSUSE-Leap-15.2-1 | python-wxWidgets-3_0 | 3.0.2.0-lp152.4.8 | x86_64
i+ | Dépôt principal | python-wxWidgets-3_0 | 3.0.2.0-lp152.4.8 | x86_64
| openSUSE-Leap-15.2-1 | python-wxWidgets-3_0-devel | 3.0.2.0-lp152.4.8 | x86_64
| Dépôt principal | python-wxWidgets-3_0-devel | 3.0.2.0-lp152.4.8 | x86_64
i+ | openSUSE-Leap-15.2-1 | python-wxWidgets-3_0-lang | 3.0.2.0-lp152.4.8 | x86_64
i+ | Dépôt principal | python-wxWidgets-3_0-lang | 3.0.2.0-lp152.4.8

btw does any package from pip influence on the behavior of grass ?

Here is the full error message

GRASS 7.8.4 (nc_spm_08_grass7):~ > g.extension extension=r.neighborhoodmatrix
Fetching <r.neighborhoodmatrix> from GRASS GIS Addons repository (be
patient)…
Compiling…
/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/bin/ld : /usr/lib64/libgdal.so.28 : référence indéfinie vers « opj_encoder_set_extra_options »
collect2: error: ld returned 1 exit status
make: *** [/usr/lib64/grass78/include/Make/Module.make:18: /tmp/grass7-cyril.gainon-13653/tmpsqayrj_1/r.neighborhoodmatrix/bin/r.neighborhoodmatrix] Error 1
ERREUR : Compilation failed, sorry. Please check above error messages.
GRASS 7.8.4 (nc_spm_08_grass7):~ >


(please keep the list in CC so that all can contribute/benefit)

On Thu, May 6, 2021 at 11:27 AM Cyril Gainon gainon.cyril@hotmail.fr wrote:

Hello Markus,

First thanks for your reactivity.

I thought i mentioned it at the end of my mail. I’m currently using OpenSuse Leap 15.2, both error are on the same computer.

I see. I was just confused about

And when i try to install it via sudo apt-get install wxPython

Isn’t it zypper on OpenSuse?

I checked the wiki page you linked, and it seems that i already have the package, maybe as you said lower i have some conflict.

Please send the list of wxpython related packages which are installed.

Now to your separate g.extension problem:

GDAL work fines, i just used gdalwarp 2 min ago.

OK, good.

So now, how can i see there is a conflict and how can i fix it ?

No idea. I just tried here:

GRASS nc_spm_08_grass7/user1:~ > g.extension extension=r.neighborhoodmatrix
Fetching <r.neighborhoodmatrix> from GRASS GIS Addons repository (be
patient)…
Compiling…
main.c: In function ‘main’:
main.c:83:28: warning: unused variable ‘nbp_search’ [-Wunused-variable]
83 | struct nbp *nbp_found, nbp_search, *nbp_new;
| ^~~~~~~~~~
main.c:66:9: warning: unused variable ‘i’ [-Wunused-variable]
66 | int i;
| ^
At top level:
main.c:47:13: warning: ‘free_pavl_item’ defined but not used [-Wunused-function]
47 | static void free_pavl_item(void *p)
| ^~~~~~~~~~~~~~
Installing…
Updating extensions metadata file…
Updating extension modules metadata file…
Installation of <r.neighborhoodmatrix> successfully finished

The compile warnings are not dramatic and unrelated. Perhaps you can
send the entire error message to better understand.

Markus

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[https://lists.osgeo.org/mailman/listinfo/grass-user](https://lists.osgeo.org/mailman/listinfo/grass-user)