Re: [GRASS-user] Error launching GUI in Grass 7.8.1
Thank you for your help, everything's fixed now and i've learned some very interesting stuff! Il giorno ven 15 nov 2019 alle ore 21:36 Helmut Kudrnovsky ha scritto: > 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 -- 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] 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] Error launching GUI in Grass 7.8.1
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
Re: [GRASS-user] Error launching GUI in Grass 7.8.1
On Thu, Nov 14, 2019 at 5:13 PM Markus Neteler wrote: > > On Thu, Nov 14, 2019 at 4:49 PM Eric Patton > 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
Re: [GRASS-user] Error launching GUI in Grass 7.8.1
On Thu, Nov 14, 2019 at 4:49 PM Eric Patton 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 :-) 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
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. -- Eric ‐‐‐ Original Message ‐‐‐ On Thursday, 14 November 2019 10:59, Markus Neteler wrote: > Hi Maris, > > On Wed, Nov 13, 2019 at 7:00 PM Markus Neteler nete...@osgeo.org wrote: > > > On Wed, Nov 13, 2019 at 4:20 PM Eric Patton > > > > > I upgraded my Grass version from 7.6.0 to 7.6.1 via the UbuntuGIS PPA in > > > my package manager, and on launching the new version for the first time > > > today, I get the following error: > > ... > > > > File "/usr/lib/grass78/gui/wxpython/gui_core/wrap.py", line 39, in > > > > > > from wx import NewIdRef as NewId > > > ImportError: cannot import name 'NewIdRef' > > > ERROR: Error in GUI startup. See messages above (if any) and if > > > necessary, please report this error to the GRASS developers. > > > On systems with package manager, make sure you have the right GUI > > > package, probably named grass-gui, installed. > > > To run GRASS GIS in text mode use the --text flag. > > > Use '--help' for further options > > > grass78 --help > > > See also: https://grass.osgeo.org/grass78/manuals/helptext.html > > > Exiting... > > > I'm running it on Linux Mint 19.2, with gdal 2.4.2, proj 5.2.1, and wx > > > libraries are 3.0.4. Running grass -text seems to be ok. > > > > There was this related change some time ago: > > https://github.com/OSGeo/grass/pull/155 > > wxGUI: NewIdRef was added only in wxPyhton 4.0.3. Fix import for <4.0.3 > > Apparently not enough? > > in gui/wxpython/gui_core/wrap.py > > `if wxPythonPhoenix and CheckWxVersion([4, 0, 3, 0]):` > > ... is it possible that this line still fails on Ubuntu/Mint with wx > libraries 3.0.4 > ? > > 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
Hi Maris, On Wed, Nov 13, 2019 at 7:00 PM Markus Neteler wrote: > On Wed, Nov 13, 2019 at 4:20 PM Eric Patton > > I upgraded my Grass version from 7.6.0 to 7.6.1 via the UbuntuGIS PPA in my > > package manager, and on launching the new version for the first time today, > > I get the following error: ... > > File "/usr/lib/grass78/gui/wxpython/gui_core/wrap.py", line 39, in > > > > from wx import NewIdRef as NewId > > ImportError: cannot import name 'NewIdRef' > > ERROR: Error in GUI startup. See messages above (if any) and if necessary, > > please report this error to the GRASS developers. > > On systems with package manager, make sure you have the right GUI package, > > probably named grass-gui, installed. > > To run GRASS GIS in text mode use the --text flag. > > Use '--help' for further options > > grass78 --help > > See also: https://grass.osgeo.org/grass78/manuals/helptext.html > > Exiting... > > > > > > I'm running it on Linux Mint 19.2, with gdal 2.4.2, proj 5.2.1, and wx > > libraries are 3.0.4. Running grass -text seems to be ok. > > There was this related change some time ago: > https://github.com/OSGeo/grass/pull/155 > wxGUI: NewIdRef was added only in wxPyhton 4.0.3. Fix import for <4.0.3 > > Apparently not enough? in gui/wxpython/gui_core/wrap.py `if wxPythonPhoenix and CheckWxVersion([4, 0, 3, 0]):` ... is it possible that this line still fails on Ubuntu/Mint with wx libraries 3.0.4 ? 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
Hi Eric, On Wed, Nov 13, 2019 at 4:20 PM Eric Patton wrote: > > Hi guys, > > I upgraded my Grass version from 7.6.0 to 7.6.1 via the UbuntuGIS PPA in my > package manager, and on launching the new version for the first time today, I > get the following error: > > grass -gui > Starting GRASS GIS... > Traceback (most recent call last): > File "/usr/lib/grass78/gui/wxpython/gis_set.py", line 43, in > from startup.guiutils import SetSessionMapset, NewMapsetDialog > File "/usr/lib/grass78/gui/wxpython/startup/guiutils.py", line 25, in > > from gui_core.dialogs import TextEntryDialog > File "/usr/lib/grass78/gui/wxpython/gui_core/dialogs.py", line 50, in > > from gui_core.gselect import LocationSelect, MapsetSelect, Select, \ > File "/usr/lib/grass78/gui/wxpython/gui_core/gselect.py", line 64, in > > from gui_core.widgets import ManageSettingsWidget, CoordinatesValidator > File "/usr/lib/grass78/gui/wxpython/gui_core/widgets.py", line 92, in > > from gui_core.wrap import Button, SearchCtrl, StaticText, StaticBox, \ > File "/usr/lib/grass78/gui/wxpython/gui_core/wrap.py", line 39, in > from wx import NewIdRef as NewId > ImportError: cannot import name 'NewIdRef' > ERROR: Error in GUI startup. See messages above (if any) and if necessary, > please report this error to the GRASS developers. > On systems with package manager, make sure you have the right GUI package, > probably named grass-gui, installed. > To run GRASS GIS in text mode use the --text flag. > Use '--help' for further options > grass78 --help > See also: https://grass.osgeo.org/grass78/manuals/helptext.html > Exiting... > > > I'm running it on Linux Mint 19.2, with gdal 2.4.2, proj 5.2.1, and wx > libraries are 3.0.4. Running grass -text seems to be ok. There was this related change some time ago: https://github.com/OSGeo/grass/pull/155 wxGUI: NewIdRef was added only in wxPyhton 4.0.3. Fix import for <4.0.3 Apparently not enough? Markus ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user