Re: [GRASS-user] winGRASS tester needed ... to fix upcoming releases :-) .... nobody out there willing to test?
Sorry and If I added "set PYTHONUTF8=1" in C:\OSGeo4W64\apps\grass\grass78\etc\env.bat just before GRASS_PYTHON is setting, grass stops to work... [image: image.png] El jue, 6 de may. de 2021 a la(s) 17:47, Maria Cecilia Zalazar ( zalazarmariaceci...@gmail.com) escribió: > Dear Grass community, I´m using wingrass 7.8.5 (daily, mainly to process > and analyze raster DEM). No new issues to report in my daily task. But if > I try to install i.fusion.hpf, as Helmut suggested, I obtain the following > error message. I hope it is useful. Best regards > > Downloading precompiled GRASS Addons ... > Fetching from < > http://wingrass.fsv.cvut.cz/grass78/x86_64/addons/grass-7.8.5/i.fusion.hpf.zip> > (be patient)... > Traceback (most recent call last): > File > "C:\OSGeo4W64\apps\grass\grass78/scripts/g.extension.py", > line 2350, in > sys.exit(main()) > File > "C:\OSGeo4W64\apps\grass\grass78/scripts/g.extension.py", > line 2330, in main > install_extension(source=source, url=url, xmlurl=xmlurl, > branch=branch) > File > "C:\OSGeo4W64\apps\grass\grass78/scripts/g.extension.py", > line 871, in install_extension > ret1, new_modules_ext, new_files_ext = > install_extension_win(extension) > File > "C:\OSGeo4W64\apps\grass\grass78/scripts/g.extension.py", > line 1259, in install_extension_win > for line in file: > File "C:\OSGeo4W64\apps\Python37\lib\fileinput.py", line > 252, in __next__ > line = self._readline() > File "C:\OSGeo4W64\apps\Python37\lib\fileinput.py", line > 366, in _readline > return self._readline() > File "C:\OSGeo4W64\apps\Python37\lib\encodings\cp1252.py", > line 23, in decode > return > codecs.charmap_decode(input,self.errors,decoding_table)[0] > UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d > in position 401: character maps to > > El jue, 6 de may. de 2021 a la(s) 17:27, Helmut Kudrnovsky (hel...@web.de) > escribió: > >> mail below was sent on Wed Apr 14 2021 => no reaction, no one a minute to >> test? >> >> if no one of the community has a minute to test winGRASS, then I guess >> it's time to propose to the PSC dropping winGRASS at all >> >> kind regards >> Helmut >> >> >> --- >> dear GRASS GIS community, >> >> testing of winGRASS is a important piece of puzzle to guarantee a stable >> and useable software on the MS windows platform in the future. >> >> For this, we would need the help of the community now. :-) >> >> background is an _error in g.extension while installing i.fusion.hpf in >> windows_ >> >> some more information >> >> https://github.com/OSGeo/grass/issues/1477 >> https://github.com/OSGeo/grass/pull/1496 >> >> it's an encoding issue while opening files via python. >> >> a possible solution may be set PYTHONUTF8=1 as environment variable. >> >> and a way how you could help, just add >> >> set PYTHONUTF8=1 >> >> in C:\OSGeo4W64\apps\grass\grass79\etc\env.bat just before GRASS_PYTHON >> is set. (or in the same file in the standalone winGRASS installation). >> >> it would look like: >> >> [...] >> set PYTHONUTF8=1 >> set GRASS_PYTHON=%OSGEO4W_ROOT%\bin\python3.exe >> [...] >> >> and then happy GRASS GIS working :-) and report back if there are any >> issues in your daily winGRASS work. >> >> kind regards >> Helmut >> ___ >> 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] winGRASS tester needed ... to fix upcoming releases :-) .... nobody out there willing to test?
Dear Grass community, I´m using wingrass 7.8.5 (daily, mainly to process and analyze raster DEM). No new issues to report in my daily task. But if I try to install i.fusion.hpf, as Helmut suggested, I obtain the following error message. I hope it is useful. Best regards Downloading precompiled GRASS Addons ... Fetching from < http://wingrass.fsv.cvut.cz/grass78/x86_64/addons/grass-7.8.5/i.fusion.hpf.zip> (be patient)... Traceback (most recent call last): File "C:\OSGeo4W64\apps\grass\grass78/scripts/g.extension.py", line 2350, in sys.exit(main()) File "C:\OSGeo4W64\apps\grass\grass78/scripts/g.extension.py", line 2330, in main install_extension(source=source, url=url, xmlurl=xmlurl, branch=branch) File "C:\OSGeo4W64\apps\grass\grass78/scripts/g.extension.py", line 871, in install_extension ret1, new_modules_ext, new_files_ext = install_extension_win(extension) File "C:\OSGeo4W64\apps\grass\grass78/scripts/g.extension.py", line 1259, in install_extension_win for line in file: File "C:\OSGeo4W64\apps\Python37\lib\fileinput.py", line 252, in __next__ line = self._readline() File "C:\OSGeo4W64\apps\Python37\lib\fileinput.py", line 366, in _readline return self._readline() File "C:\OSGeo4W64\apps\Python37\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 401: character maps to El jue, 6 de may. de 2021 a la(s) 17:27, Helmut Kudrnovsky (hel...@web.de) escribió: > mail below was sent on Wed Apr 14 2021 => no reaction, no one a minute to > test? > > if no one of the community has a minute to test winGRASS, then I guess > it's time to propose to the PSC dropping winGRASS at all > > kind regards > Helmut > > > --- > dear GRASS GIS community, > > testing of winGRASS is a important piece of puzzle to guarantee a stable > and useable software on the MS windows platform in the future. > > For this, we would need the help of the community now. :-) > > background is an _error in g.extension while installing i.fusion.hpf in > windows_ > > some more information > > https://github.com/OSGeo/grass/issues/1477 > https://github.com/OSGeo/grass/pull/1496 > > it's an encoding issue while opening files via python. > > a possible solution may be set PYTHONUTF8=1 as environment variable. > > and a way how you could help, just add > > set PYTHONUTF8=1 > > in C:\OSGeo4W64\apps\grass\grass79\etc\env.bat just before GRASS_PYTHON is > set. (or in the same file in the standalone winGRASS installation). > > it would look like: > > [...] > set PYTHONUTF8=1 > set GRASS_PYTHON=%OSGEO4W_ROOT%\bin\python3.exe > [...] > > and then happy GRASS GIS working :-) and report back if there are any > issues in your daily winGRASS work. > > kind regards > Helmut > ___ > 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
[GRASS-user] winGRASS tester needed ... to fix upcoming releases :-) .... nobody out there willing to test?
mail below was sent on Wed Apr 14 2021 => no reaction, no one a minute to test? if no one of the community has a minute to test winGRASS, then I guess it's time to propose to the PSC dropping winGRASS at all kind regards Helmut --- dear GRASS GIS community, testing of winGRASS is a important piece of puzzle to guarantee a stable and useable software on the MS windows platform in the future. For this, we would need the help of the community now. :-) background is an _error in g.extension while installing i.fusion.hpf in windows_ some more information https://github.com/OSGeo/grass/issues/1477 https://github.com/OSGeo/grass/pull/1496 it's an encoding issue while opening files via python. a possible solution may be set PYTHONUTF8=1 as environment variable. and a way how you could help, just add set PYTHONUTF8=1 in C:\OSGeo4W64\apps\grass\grass79\etc\env.bat just before GRASS_PYTHON is set. (or in the same file in the standalone winGRASS installation). it would look like: [...] set PYTHONUTF8=1 set GRASS_PYTHON=%OSGEO4W_ROOT%\bin\python3.exe [...] and then happy GRASS GIS working :-) and report back if there are any issues in your daily winGRASS work. kind regards Helmut ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GUI/Addons
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 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 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 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 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 https://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user maili
Re: [GRASS-user] GUI/Addons
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 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 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 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 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 https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GUI/Addons
(please keep the list in CC so that all can contribute/benefit) On Thu, May 6, 2021 at 11:27 AM Cyril Gainon 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 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 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 https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GUI/Addons
Hi Cyril, On Thu, May 6, 2021 at 9:51 AM Cyril Gainon 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 ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
[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 ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user