[GRASS-user] Umm...OK, How do I start this thing?

On Sun, 27 Dec 2020, mdwxman via grass-user wrote:

I must be either blind or brain-frozen by all the snow outside but even
after reading through the introductions and downloading the North Carolina
data I still don't see how to start GRASS GIS 7.8.5 on my Fedora 33. I
have over 30 years experience with Unix or Linux and I still don't see a
startup file. What am I missing?

Michael,

You need to invoke the executable binary. On Slackware it's in
/usr/local/bin/.

If you're using a virtual desktop (Gnome, KDE, Xfce4, whatever) you can
point an icon or menu item to that file and access it that way rather than
from a virtual terminal.

Stay well,

Rich

And that's a very good idea! I just went through the process of creating a link to the GRASS78 file. Your idea is something I never considered. I guess too many years of managing Unix and Linux systems with command lines has stopped the creative juices from using the GUIs that were put there for everyone's benefit!

Mike

Michael Allen
Industrial Weather
763-777-1263

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, December 27, 2020 7:40 AM, Rich Shepard <rshepard@appl-ecosys.com> wrote:

On Sun, 27 Dec 2020, mdwxman via grass-user wrote:

> I must be either blind or brain-frozen by all the snow outside but even
> after reading through the introductions and downloading the North Carolina
> data I still don't see how to start GRASS GIS 7.8.5 on my Fedora 33. I
> have over 30 years experience with Unix or Linux and I still don't see a
> startup file. What am I missing?

Michael,

You need to invoke the executable binary. On Slackware it's in
/usr/local/bin/.

If you're using a virtual desktop (Gnome, KDE, Xfce4, whatever) you can
point an icon or menu item to that file and access it that way rather than
from a virtual terminal.

Stay well,

Rich

grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On Sun, 27 Dec 2020, mdwxman wrote:

And that's a very good idea! I just went through the process of creating a
link to the GRASS78 file. Your idea is something I never considered. I
guess too many years of managing Unix and Linux systems with command lines
has stopped the creative juices from using the GUIs that were put there
for everyone's benefit!

Mike,

Your method of invoking grass should reflect how you want to work with it.
I've been using grass since version 4.0 (integer numbers only) and most of
the time work strictly from the command line. Now and then I want to use the
GUI so I'll start it that way ... from the command line.

You can select how it starts by, for example, $ grass79 -text or $ grass73
-gui (I beta test the development builds by using them when I do spatial
analyses.

The list of command line startup options is on a document page. I don't know
which one now that the web site's been restructured.

Stay well,

Rich

Very strange things happening here and I don't understand.

1. I ran make install in the src directory and it finished without error. grass78 is in /usr/local/bin as it should be. But running grass78 from this directory produces this output:

(base) [root@godelsrevenge ~]# /usr/local/bin/grass78 --gui
Starting GRASS GIS...
ERROR: wxGUI requires wxPython. No module named 'wx'
You can still use GRASS GIS modules in the command line or in Python.
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...
(base) [root@godelsrevenge ~]#

Checking for wxPython produces this:

(base) [root@godelsrevenge ~]# find / -name wxPython
find: File system loop detected; ‘/run/media/root/fedora_fedora5/root’ is part of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora4/root’ is part of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora3/root’ is part of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora2/root’ is part of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora1/root’ is part of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora/root’ is part of the same file system loop as ‘/’.
/usr/lib64/python3.9/site-packages/wx/include/wxPython

The source file for grass-7.8.5 is at : /grass-7.8.5 NOT /root/grass-7.8.5.

Next I checked echo $PATH and received this message:

(base) [root@godelsrevenge ~]# echo $PATH
/usr/lib64/python3.9/site-packages/wx/include:/root/anaconda3/bin:/root/anaconda3/condabin:/usr/lib64/python3.9/site-packages/wx/include:/usr/lib64/ccache:/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin
(base) [root@godelsrevenge ~]#

but here's my .bashrc file:

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
  . /etc/bashrc
fi

# User specific environment

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# >>> Export for wxPython >>>
export PATH="/usr/lib64/python3.9/site-packages/wx/include:$PATH"

# &gt;&gt;&gt; conda initialize &gt;&gt;&gt;
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/root/anaconda3/bin/conda' 'shell.bash' 'hook' 2&gt; /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/root/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/root/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/root/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# &lt;&lt;&lt; conda initialize &lt;&lt;&lt;

So what is the origin of that long line of PATH directories when they don't appear in the .bashrc file? (I checked to make sure I was running bash).

And if /usr/local/bin contains grass78 and wxPython is located in /usr/lib64/python3.9/site-packages/wx/includes then why is grass78 missing the wxPython file?

And I also checked using find / -name grass-gui and came up with nothing, that is grass-gui is missing.

I hope I've included enough detail to help with this.

Michael Allen
Industrial Weather
763-777-1263

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, December 27, 2020 8:00 PM, Rich Shepard <rshepard@appl-ecosys.com> wrote:

&gt; On Sun, 27 Dec 2020, mdwxman wrote:
&gt;
&gt; &gt; And that's a very good idea! I just went through the process of creating a(base) [root@godelsrevenge ~]# find / -name wxPython
find: File system loop detected; ‘/run/media/root/fedora_fedora5/root’ is part of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora4/root’ is part of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora3/root’ is part of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora2/root’ is part of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora1/root’ is part of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora/root’ is part of the same file system loop as ‘/’.
/usr/lib64/python3.9/site-packages/wx/include/wxPython
(
&gt; &gt; link to the GRASS78 file. Your idea is something I never considered. I
&gt; &gt; guess too many years of managing Unix and Linux systems with command lines
&gt; &gt; has stopped the creative juices from using the GUIs that were put there
&gt; &gt; for everyone's benefit!
&gt;
&gt; Mike,
&gt;
&gt; Your method of invoking grass should reflect how you want to work with it.
&gt; I've been using grass since version 4.0 (integer numbers only) and most of
&gt; the time work strictly from the command line. Now and then I want to use the
&gt; GUI so I'll start it that way ... from the command line.
&gt;
&gt; You can select how it starts by, for example, $ grass79 -text or $ grass73
&gt; -gui (I beta test the development builds by using them when I do spatial
&gt; analyses.
&gt;
&gt; The list of command line startup options is on a document page. I don't know
&gt; which one now that the web site's been restructured.
&gt;
&gt; Stay well,
&gt;
&gt; Rich
&gt;
&gt; grass-user mailing list
&gt; grass-user@lists.osgeo.org
&gt; https://lists.osgeo.org/mailman/listinfo/grass-user

</rshepard@appl-ecosys.com>

On Mon, 28 Dec 2020, mdwxman wrote:

Very strange things happening here and I don't understand.

1. I ran make install in the src directory and it finished without error.
grass78 is in /usr/local/bin as it should be. But running grass78 from
this directory produces this output:

(base) [root@godelsrevenge ~]# /usr/local/bin/grass78 --gui
Starting GRASS GIS...
ERROR: wxGUI requires wxPython. No module named 'wx'

I hope I've included enough detail to help with this.

Michael,

I faced this issue a few years ago. The solution is to add this line to
~/.bash_profile:

export GRASS_WXVERSION=4.1.0

or whichever version of wxPython is installed on that host.

HTH,

Rich

Thanks Rich. If this were a jigsaw puzzle I’d be missing the third piece.

···

Michael Allen

Industrial Weather

763-777-1263

rshepard@appl-ecosys.com

On Mon, 28 Dec 2020, mdwxman wrote:

Very strange things happening here and I don’t understand.

  1. I ran make install in the src directory and it finished without error.
    grass78 is in /usr/local/bin as it should be. But running grass78 from
    this directory produces this output:

(base) [root@godelsrevenge ~]# /usr/local/bin/grass78 --gui
Starting GRASS GIS…
ERROR: wxGUI requires wxPython. No module named ‘wx’

I hope I’ve included enough detail to help with this.

Michael,

I faced this issue a few years ago. The solution is to add this line to
~/.bash_profile:

export GRASS_WXVERSION=4.1.0

or whichever version of wxPython is installed on that host.

HTH,

Rich


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user