Re: [GRASS-user] Trouble getting started
On 16/11/19 03:10, Tom Trebisky wrote: I see. Well I have done my share of Gtk programming in C and via Ruby and I remember things of this sort (messages that were difficult or impossible to relate to code), especially when callbacks are registered. I presume (or get the impression) that you are a developer and not just an end user of Grass. I find myself half tempted to clone the Git repository and try to build Grass from sources, but this is not why I got involved here. And I am sure better minds than mine have already looked at this issue. I might presume/guess that this has been identified as an upstream issue in the Python/Gtk bindings or perhaps even in Gtk itself -- and there may be better things to work on than chasing this in hopes that the teams upstream will do something about all of this. See https://trac.osgeo.org/grass/ticket/3348. If you have any suggestions, they are obviously welcome. :-) Moritz ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Trouble getting started
I see. Well I have done my share of Gtk programming in C and via Ruby and I remember things of this sort (messages that were difficult or impossible to relate to code), especially when callbacks are registered. I presume (or get the impression) that you are a developer and not just an end user of Grass. I find myself half tempted to clone the Git repository and try to build Grass from sources, but this is not why I got involved here. And I am sure better minds than mine have already looked at this issue. I might presume/guess that this has been identified as an upstream issue in the Python/Gtk bindings or perhaps even in Gtk itself -- and there may be better things to work on than chasing this in hopes that the teams upstream will do something about all of this. My interests (with regard to Grass) are in maps and geology and I will try to stick to that for now. Thanks for your friendly reception into the Grass community !!! Tom On 11/15/19 3:26 PM, Markus Neteler wrote: Hi Tom, On Fri, Nov 15, 2019 at 5:05 PM Tom Trebisky wrote: Hi Moritz, Thank you for your help and advice. I am running 7.8.1RC1 as it turns out, installed yesterday. I was overly alarmed by the error messages (they do say "Critical Error" after all) and along with getting two blank windows, I just assumed that something serious was wrong. Yes, these GTK error messages are annoying a big time! Seems nobody knows how to get rid of them. See your preferred search engine that many software packages with terminal support + GUI suffer from them... I do think that it would make sense for somebody to fix whatever it is that yields the messages like: (wxgui.py:419): Gtk-CRITICAL **: 21:21:42.695: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSpinButton Fully agreed. The thing is that they are rather impossible to debug. It says line 419 but there is nothing related. In fact I note that the window I used to start GRASS is filled with messages of this sort. Likely that the Gtk libraries have become extra fussy or something, but it would be nice to clean this up as it will alarm new users (or any sensible user I would think). Again, fully agreed. My blank windows do have buttons and when I ignore the error messages that continue to spew out, I do get results! I had expected that I would immediately see some kind of map, not just a blank canvas to start, so on with the learning curve I go. That's a different topic but also agreed ;-) Markus ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Trouble getting started
Hi Tom, On Fri, Nov 15, 2019 at 5:05 PM Tom Trebisky wrote: > > Hi Moritz, > > Thank you for your help and advice. I am running 7.8.1RC1 as it turns > out, installed yesterday. > > I was overly alarmed by the error messages (they do say "Critical Error" > after all) and along with > getting two blank windows, I just assumed that something serious was wrong. Yes, these GTK error messages are annoying a big time! Seems nobody knows how to get rid of them. See your preferred search engine that many software packages with terminal support + GUI suffer from them... > I do think that it would make sense for somebody to fix whatever it is > that yields the messages like: > > (wxgui.py:419): Gtk-CRITICAL **: 21:21:42.695: > gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSpinButton Fully agreed. The thing is that they are rather impossible to debug. It says line 419 but there is nothing related. > In fact I note that the window I used to start GRASS is filled with > messages of this sort. > Likely that the Gtk libraries have become extra fussy or something, but > it would be nice to clean this > up as it will alarm new users (or any sensible user I would think). Again, fully agreed. > My blank windows do have buttons and when I ignore the error messages > that continue to spew out, I do get > results! I had expected that I would immediately see some kind of map, > not just a blank canvas to start, so on > with the learning curve I go. That's a different topic but also agreed ;-) Markus ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Error launching GUI in Grass 7.8.1
Alessandro Sebastiani wrote > Hello to evenyone, > i have exactly the same problem that Eric Patton had. This morning > suddenly > I got the same error message. I read the conversation and kind understood > that there is a file in grass78 that should be edited in order to fix the > error, however i did not notice where exactly this file is and how should > I > edit it. Additionally, it only happened on my GRASS GIS installation for > Ubuntu in virtual machine, while the one on windows (Grass7.6) is still > working. Any suggestions? thank you, see https://github.com/OSGeo/grass/commit/b7fb30a1da066e8864c8e36c5d55a93402e29dd0 for the needed edits. the file to change is in your GRASS installation: grass78\gui\wxpython\gui_core\wrap.py - best regards Helmut -- Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Error launching GUI in Grass 7.8.1
Hello to evenyone, i have exactly the same problem that Eric Patton had. This morning suddenly I got the same error message. I read the conversation and kind understood that there is a file in grass78 that should be edited in order to fix the error, however i did not notice where exactly this file is and how should I edit it. Additionally, it only happened on my GRASS GIS installation for Ubuntu in virtual machine, while the one on windows (Grass7.6) is still working. Any suggestions? thank you, A Il giorno gio 14 nov 2019 alle ore 17:34 Eric Patton < eric.r.pat...@protonmail.com> ha scritto: > Case closed! Thanks Markus, I made the edits, the GUI works fine. > > Cheers, > > -- > Eric Patton > > > ‐‐‐ Original Message ‐‐‐ > On Thursday, 14 November 2019 12:18, Markus Neteler > wrote: > > > On Thu, Nov 14, 2019 at 5:13 PM Markus Neteler nete...@osgeo.org wrote: > > > > > On Thu, Nov 14, 2019 at 4:49 PM Eric Patton > > > eric.r.pat...@protonmail.com wrote: > > > > > > > Hi Markus, > > > > If you need the version number of specific libraries, let me know. > I'm not sure which ones are relevant. I noticed that my python-wxtools and > python-gtk libraries are version 3.0.2. > > > > > > Here on a Mint macine in the office we solved the > > > "wx not found" problem with: > > > sudo apt-get install python3-wxgtk4.0 > > > Now the 7.8.1 GUI starts. > > > Next issue to solve is: > > > "ImportError: cannot import name 'NewIdRef' > > > So, we reached your bug at our end :-) > > > > Haha, the backport to relbranch78 was missing: > > now done in > https://github.com/OSGeo/grass/commit/b7fb30a1da066e8864c8e36c5d55a93402e29dd0 > > > > This will go into GRASS GIS 7.8.2. > > > > @Eric: you may simply edit the file locally to get it fixed without > > waiting for 7.8.2. > > > > 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 -- Le informazioni contenute in questo messaggio di posta elettronica sono strettamente riservate e indirizzate esclusivamente al destinatario. Si prega di non leggere, fare copia, inoltrare a terzi o conservare tale messaggio se non si è il legittimo destinatario dello stesso. Qualora tale messaggio sia stato ricevuto per errore, si prega di restituirlo al mittente e di cancellarlo permanentemente dal proprio computer. The information contained in this e mail message is strictly confidential and intended for the use of the addressee only. If you are not the intended recipient, please do not read, copy, forward or store it on your computer. If you have received the message in error, please forward it back to the sender and delete it permanently from your computer system. ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Trouble getting started
Hi Moritz, Thank you for your help and advice. I am running 7.8.1RC1 as it turns out, installed yesterday. I was overly alarmed by the error messages (they do say "Critical Error" after all) and along with getting two blank windows, I just assumed that something serious was wrong. I do think that it would make sense for somebody to fix whatever it is that yields the messages like: (wxgui.py:419): Gtk-CRITICAL **: 21:21:42.695: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSpinButton In fact I note that the window I used to start GRASS is filled with messages of this sort. Likely that the Gtk libraries have become extra fussy or something, but it would be nice to clean this up as it will alarm new users (or any sensible user I would think). My blank windows do have buttons and when I ignore the error messages that continue to spew out, I do get results! I had expected that I would immediately see some kind of map, not just a blank canvas to start, so on with the learning curve I go. Tom On 11/15/19 3:58 AM, Moritz Lennert wrote: Le Fri, 15 Nov 2019 11:27:54 +0100, Moritz Lennert a écrit : Hi Tom, Le Thu, 14 Nov 2019 20:40:31 -0700, Tom Trebisky a écrit : I am totally new to grass and having trouble. Welcome to the community ! GRASS GIS does have a bit of a learning curve, but once you get past the first barriers you won't be able to live without it anymore ! ;-) I installed grass from RPM on my Fedora 30 linux system. First I installed 7.6 from official fedora packages, then I erased that and installed 7.8 from packages on the Fedora "copr" repository. Another question: when exactly did you install these packages. 7.8.1 just arrived in the repository 3 days ago, IISC, so if you still have 7.8.0 you might want to start by installing the latest version. Moritz ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Trouble getting started
Le Fri, 15 Nov 2019 11:27:54 +0100, Moritz Lennert a écrit : > Hi Tom, > > Le Thu, 14 Nov 2019 20:40:31 -0700, > Tom Trebisky a écrit : > > > I am totally new to grass and having trouble. > > Welcome to the community ! > > GRASS GIS does have a bit of a learning curve, but once you get past > the first barriers you won't be able to live without it anymore ! ;-) > > > > > I installed grass from RPM on my Fedora 30 linux system. First I > > installed 7.6 from official fedora packages, then I erased that and > > installed 7.8 from packages on the Fedora "copr" repository. Another question: when exactly did you install these packages. 7.8.1 just arrived in the repository 3 days ago, IISC, so if you still have 7.8.0 you might want to start by installing the latest version. Moritz ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Trouble getting started
Hi Tom, Le Thu, 14 Nov 2019 20:40:31 -0700, Tom Trebisky a écrit : > I am totally new to grass and having trouble. Welcome to the community ! GRASS GIS does have a bit of a learning curve, but once you get past the first barriers you won't be able to live without it anymore ! ;-) > > I installed grass from RPM on my Fedora 30 linux system. First I > installed 7.6 from official fedora packages, then I erased that and > installed 7.8 from packages on the Fedora "copr" repository. I > downloaded the sample North Carolina dataset for version 7 (145M). I > untarred that into /home/tom/grassdata and when I browse to that, > grass seems to find it and is ready to go. But when I click on > "Start Grass Session" I get two empty and useless windows When you say "empty", what does that mean exactly ? Could you provide a screenshot ? > and see the > messages: > > (wxgui.py:30767): Gtk-CRITICAL **: 20:37:16.297: > gtk_box_gadget_distribute: assertion 'size >= 0' failed in > GtkScrollbar > > (wxgui.py:30767): Gtk-CRITICAL **: 20:37:16.297: > gtk_box_gadget_distribute: assertion 'size >= 0' failed in > GtkScrollbar These are just annoying messages, but harmless and AFAIK do not explain your issue. > > I get the exact same with 7.6 and 7.8. > > The useless windows call themselves "layer manager" and "map display". These two windows should open by default when you launch the GRASS GIS GUI, but they should contain buttons and menus. If they do, then the next step for you should be to use the layer manager window to add a map which should then appear in the map display window. Have you had the opportunity to read these to introductions: https://grass.osgeo.org/grass78/manuals/helptext.html https://grasswiki.osgeo.org/wiki/Quick_wxGUI_tutorial Also check here: https://grass.osgeo.org/documentation/tutorials/ for some more in depth tutorials. > This seems like a reasonable way to get started. What if anything am > I doing wrong, or is this some known bug? At this stage we need a bit more info to really know. Moritz ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user