[GRASS-dev] [GRASS GIS] #3962: GRASS 7.8.1 GUI doesn't run on Pop! OS 18.04 (Ubuntu 18.04) because of "ImportError: cannot import name 'NewIdRef'"
GRASS GIS
trac at osgeo.org
Sun Nov 17 06:41:00 PST 2019
#3962: GRASS 7.8.1 GUI doesn't run on Pop! OS 18.04 (Ubuntu 18.04) because of
"ImportError: cannot import name 'NewIdRef'"
-----------------------+---------------------------------
Reporter: rorschach | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.2
Component: wxGUI | Version: git-releasebranch78
Keywords: | CPU: x86-64
Platform: Linux |
-----------------------+---------------------------------
Hi everyone,
I installed GRASS 7.8.1 via the ubuntugis-unstable repository on my
machine running Pop! OS 18.04 (based on Ubuntu 18.04). When I run GRASS,
this error occurs:
{{{
Starting GRASS GIS...
Traceback (most recent call last):
File "/usr/lib/grass78/gui/wxpython/gis_set.py", line 43, in <module>
from startup.guiutils import SetSessionMapset, NewMapsetDialog
File "/usr/lib/grass78/gui/wxpython/startup/guiutils.py", line 25, in
<module>
from gui_core.dialogs import TextEntryDialog
File "/usr/lib/grass78/gui/wxpython/gui_core/dialogs.py", line 50, in
<module>
from gui_core.gselect import LocationSelect, MapsetSelect, Select, \
File "/usr/lib/grass78/gui/wxpython/gui_core/gselect.py", line 64, in
<module>
from gui_core.widgets import ManageSettingsWidget,
CoordinatesValidator
File "/usr/lib/grass78/gui/wxpython/gui_core/widgets.py", line 92, in
<module>
from gui_core.wrap import Button, SearchCtrl, StaticText, StaticBox, \
File "/usr/lib/grass78/gui/wxpython/gui_core/wrap.py", line 39, in
<module>
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 checked the module in question (wx). The said module isn't available on
the default Python (python2) of my machine.
{{{
Python 2.7.15+ (default, Oct 7 2019, 17:39:04)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named wx
>>>
}}}
It is however available on my machine's Python 3.
{{{
Python 3.6.8 (default, Oct 7 2019, 12:59:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.__version__
'4.0.1'
>>>
}}}
When I try to import NewIdRef, it doesn't exist but NewId does.
{{{
Python 3.6.8 (default, Oct 7 2019, 12:59:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> from wx import NewIdRef
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'NewIdRef'
>>> from wx import NewId
>>>
}}}
Finally, GRASS text mode works. It really is just the GUI that fails.
Thanks everyone!
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3962>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list