[GRASS-dev] GRASS-GIS 6.4.3 Error in GUI startup

Hello GRASS dev,

I’m using GRASS-GIS v6.4.3 (2013) on Linux Mint 17.3 Rosa but couldn’t get the GUI to start. I have tried all solutions I could find to no avail. What I have done so far

  • Uninstall (purge) and reinstall python-wxversion, python-wxgtk2.8 then grass-core, grass-dev & grass-gui

Error message I got

$ grass64

Starting GRASS …
ERROR: wxGUI requires wxPython. No module named wxversion
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue…

My machine info

System: Kernel: 4.4.0-28-generic x86_64 (64 bit gcc: 4.8.4)
Desktop: Cinnamon 2.8.8 (Gtk 3.10.8) Distro: Linux Mint 17.3 Rosa
Graphics: Card: NVIDIA GM107GL [Quadro K620] bus-ID: 01:00.0

Display Server: X.Org 1.17.1 driver: nvidia Resolution: 1920x1080@60.0hz, 1920x1080@60.0hz
GLX Renderer: Quadro K620/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 375.39 Direct Rendering: Yes

$ python --version
Python 2.7.12 :: Anaconda 4.1.1 (64-bit)

Any suggestion would be appreciated. Thanks!

– Tung

Tung Nguyen-2 wrote

Hello GRASS dev,

I'm using GRASS-GIS v6.4.3 (2013) on Linux Mint 17.3 Rosa but couldn't get
the GUI to start. I have tried all solutions I could find to no avail.
What
I have done so far
- Uninstall (purge) and reinstall python-wxversion, python-wxgtk2.8 then
grass-core, grass-dev & grass-gui

*Error message I got*

*$ grass64*

*Starting GRASS ...*
*ERROR: wxGUI requires wxPython. No module named wxversion*
*Error in GUI startup. If necessary, please*
*report this error to the GRASS developers.*
*Switching to text mode now.*
*Hit RETURN to continue...*

*My machine info*

*System: Kernel: 4.4.0-28-generic x86_64 (64 bit gcc: 4.8.4)*
* Desktop: Cinnamon 2.8.8 (Gtk 3.10.8) Distro: Linux Mint 17.3
Rosa*
*Graphics: Card: NVIDIA GM107GL [Quadro K620] bus-ID: 01:00.0*
* Display Server: X.Org 1.17.1 driver: nvidia Resolution:
1920x1080@60.0hz, 1920x1080@60.0hz*
* GLX Renderer: Quadro K620/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA
375.39 Direct Rendering: Yes*

*$ python --version*
*Python 2.7.12 :: Anaconda 4.1.1 (64-bit)*

Any suggestion would be appreciated. Thanks!

any chance to upgrade to GRASS 7.2 (current stable version)?

maybe related to your error, see:

http://osgeo-org.1560.x6.nabble.com/grass7-graphical-interface-failing-td5105788.html

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GRASS-GIS-6-4-3-Error-in-GUI-startup-tp5317500p5317503.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

On Mon, Apr 17, 2017 at 9:19 PM, Tung Nguyen <tungkttv@gmail.com> wrote:

Hello GRASS dev,

I'm using GRASS-GIS v6.4.3 (2013) on Linux Mint 17.3 Rosa but couldn't get
the GUI to start. I have tried all solutions I could find to no avail.

On some machines, we are also using Linux Mint, in the last year the
same version.
Link below:

What I have done so far
- Uninstall (purge) and reinstall python-wxversion, python-wxgtk2.8 then
grass-core, grass-dev & grass-gui

Error message I got

$ grass64

Starting GRASS ...
ERROR: wxGUI requires wxPython. No module named wxversion

Please check if all wx related packages are installed from the list
mentioned here:

https://grasswiki.osgeo.org/wiki/Compile_and_Install#Linux_Mint

Filtered, that would probably these here:
libwxbase3.0-dbg libwxbase3.0-dev libwxgtk3.0-dbg libwxgtk3.0-dev
python-wxgtk2.8 python-wxtools python-wxversion wx3.0-headers
wx-common

However, I used GRASS GIS 7 and not 6 on my Mint box.

Please consider to use G7 and not 6, due to the zillions of improvements [1].

Markus

[1]
* https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures
* https://trac.osgeo.org/grass/wiki/Release/7.0.0-News
* https://trac.osgeo.org/grass/wiki/Release/7.2.0-News

On 17 April 2017 at 21:19, Tung Nguyen <tungkttv@gmail.com> wrote:

Hello GRASS dev,

Hi,

$ python --version
Python 2.7.12 :: Anaconda 4.1.1 (64-bit)

probably the problem is here, you are not using the system Python
version (with wxpython installed) but the Anaconda one, so you have to
install wxPython in the Anaconda environment

-- Tung

--
ciao
Luca

www.lucadelu.org

Thank you very much for the reply Luca and Markus!

I know GRASS-GIS 7 is a big improvement from 6 but the program I’m using only works with 6 :confused:

Luca was right about the Python version. The system used the anaconda python version

$ which python
~/anaconda2/bin/python

whereas all the other libraries were originally installed to other version of python

I tried to change the default python version back to 2.7.6 following some guides to no avail (for example here: https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux).

In the end, removing anaconda completely solved the problem

$ rm -rf ~/anaconda2

Best regards,

Tung

···

$ /usr/bin/python --version
Python 2.7.6

On Tue, Apr 18, 2017 at 1:01 AM, Luca Delucchi <lucadeluge@gmail.com> wrote:

On 17 April 2017 at 21:19, Tung Nguyen <tungkttv@gmail.com> wrote:

Hello GRASS dev,

Hi,

$ python --version
Python 2.7.12 :: Anaconda 4.1.1 (64-bit)

probably the problem is here, you are not using the system Python
version (with wxpython installed) but the Anaconda one, so you have to
install wxPython in the Anaconda environment

– Tung


ciao
Luca

www.lucadelu.org

Thanks!

– Tung