[GRASS-user] Need help identifying missing wxgtk dependencies

HI,

I’m doing a fresh install of Grass 8.3dev on a new laptop running Linux Mint 20.3. It’s been a while since I’ve had to do a new install, so used the Linux Mint wiki instructions here: https://grasswiki.osgeo.org/wiki/Compile_and_Install#Linux_Mint

I had no obvious error during configure/make/install.

g.version -gre
version=8.3.dev
date=2022
revision=c1b1ff69d
build_date=2022-08-11
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
libgis_revision=2b85ab5eb
libgis_date=2022-07-25T15:37:35+00:00
proj=7.2.1
gdal=3.5.1
geos=3.11.0
sqlite=3.31.1

After launching Grass, g.region -p gives:

g.region -p
projection: 99 (unnamed)
zone: 0
datum: wgs84
ellipsoid: wgs84
north: 149300
south: 124200
west: -25900
east: 7800
nsres: 100
ewres: 100
rows: 251
cols: 337
cells: 84587
free(): invalid pointer
Aborted (core dumped)

Launching g.gui gives a popup window that says “Unable to get geographic extent. Force quitting wxGUI. Please manually run g.region to fix the problem.”

On the terminal, this was printed after launhcing g.gui:

g.gui
Launching GUI in the background, please wait…
wxdigit.py: Could not load grass_gis.8.3.
wxnviz.py: Could not load grass_gis.8.3.

I noticed in the wxGUI console these messages:

"3D view mode not available
Reason: cannot import name ‘DM_FLAT’ from ‘nviz.wxnviz’ "

and also this one:

“Vector digitizer not available.
Reason: name ‘sys’ is not defined”.

I thought I had all python/wxwidgets dependcies satisfied, but I must be missing something obvious??

Additionally, I wanted to ask if we have a searchable​ Grass mailing list site? The mailman site is kind of useless for trying to search old messages.

Thanks for any clues!

I

···

Eric Patton

GPG ID: rsa4096/0xB72AE021

Fingerprint: 1B0F 7AFD 9B5B 0E59 DCBC 36B4 24CC 056B B72A E021

Sent with Proton Mail secure email.

On Thu, Aug 11, 2022 at 8:06 PM Eric Patton via grass-user
<grass-user@lists.osgeo.org> wrote:

HI,

I'm doing a fresh install of Grass 8.3dev on a new laptop running Linux Mint 20.3. It's been a while since I've had to
do a new install, so used the Linux Mint wiki instructions here: https://grasswiki.osgeo.org/wiki/Compile_and_Install#Linux_Mint

I had no obvious error during configure/make/install.

> g.version -gre
version=8.3.dev
date=2022
revision=c1b1ff69d
build_date=2022-08-11
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
libgis_revision=2b85ab5eb
libgis_date=2022-07-25T15:37:35+00:00
proj=7.2.1
gdal=3.5.1
geos=3.11.0
sqlite=3.31.1

After launching Grass, g.region -p gives:

> g.region -p
projection: 99 (unnamed)
zone: 0
datum: wgs84
ellipsoid: wgs84
north: 149300
south: 124200
west: -25900
east: 7800
nsres: 100
ewres: 100
rows: 251
cols: 337
cells: 84587
free(): invalid pointer
Aborted (core dumped)

Please check if you have by chance PROJ libraries twice on your system
(maybe a leftover from a local compilation vs distro packages.

sudo updatedb
locate libproj

may be of help here. Also check the output of

ldd $(which g.region)

for anything suspicious.

Launching g.gui gives a popup window that says "Unable to get geographic extent. Force quitting wxGUI. Please manually run g.region to fix the problem."

On the terminal, this was printed after launhcing g.gui:

> g.gui
Launching <wxpython> GUI in the background, please wait...
wxdigit.py: Could not load grass_gis.8.3.
wxnviz.py: Could not load grass_gis.8.3.

Please check (with locate, see above) if the library is on your system.

I noticed in the wxGUI console these messages:

"3D view mode not available
Reason: cannot import name 'DM_FLAT' from 'nviz.wxnviz' "

and also this one:

"Vector digitizer not available.
Reason: name 'sys' is not defined".

Mhh, weird. Maybe an error caused by another error?

I thought I had all python/wxwidgets dependcies satisfied, but I must be missing something obvious??

Additionally, I wanted to ask if we have a searchable Grass mailing list site? The mailman site is kind of useless for trying to search old messages.

I want that, too :slight_smile:
For the time being, here is a 3rd party search interface
https://marc.info/?l=grass-user&r=1&w=2

Markus

------- Original Message -------
On Thursday, August 11th, 2022 at 19:29, Markus Neteler <neteler@osgeo.org> wrote:

Please check if you have by chance PROJ libraries twice on your system
(maybe a leftover from a local compilation vs distro packages.

sudo updatedb
locate libproj

may be of help here. Also check the output of

ldd $(which g.region)

for anything suspicious.

Hi Markus,

Indeed, it looks like a did have multiple projlibs installed - thanks.

> Launching g.gui gives a popup window that says "Unable to get geographic extent. Force quitting wxGUI. Please manually run g.region to fix the problem."
>
> On the terminal, this was printed after launhcing g.gui:
>
> > g.gui
> > Launching <wxpython> GUI in the background, please wait...
> > wxdigit.py: Could not load grass_gis.8.3.
> > wxnviz.py: Could not load grass_gis.8.3.

Please check (with locate, see above) if the library is on your system.

I still seem to have the wxdigit error, though.

wxdigit.py:

locate wxdigit.py

/usr/local/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/vdigit/wxdigit.py
/usr/local/grass/gui/wxpython/vdigit/wxdigit.py
/usr/local/grass83/gui/wxpython/vdigit/wxdigit.py

wxnviz.py:

locate wxdigit.py

/usr/local/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/vdigit/wxdigit.py
/usr/local/grass/gui/wxpython/vdigit/wxdigit.py
/usr/local/grass83/gui/wxpython/vdigit/wxdigit.py

> Additionally, I wanted to ask if we have a searchable Grass mailing list site? The mailman site is kind of useless for trying to search old messages.

I want that, too :slight_smile:
For the time being, here is a 3rd party search interface
https://marc.info/?l=grass-user&r=1&w=2

Markus

Thanks so much for this site, I had no idea it existed!

~ Eric.

On Fri, Aug 12, 2022 at 3:49 PM Eric Patton via grass-user
<grass-user@lists.osgeo.org> wrote:

On Thursday, August 11th, 2022 at 19:29, Markus Neteler <neteler@osgeo.org> wrote:

...

> > Launching g.gui gives a popup window that says "Unable to get geographic extent. Force quitting wxGUI. Please manually run g.region to fix the problem."
> >
> > On the terminal, this was printed after launhcing g.gui:
> >
> > > g.gui
> > > Launching <wxpython> GUI in the background, please wait...
> > > wxdigit.py: Could not load grass_gis.8.3.
> > > wxnviz.py: Could not load grass_gis.8.3.

And libgrass_gis.8.3.so etc are existing?

I still seem to have the wxdigit error, though.

wxdigit.py:

> locate wxdigit.py
/usr/local/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/vdigit/wxdigit.py
/usr/local/grass/gui/wxpython/vdigit/wxdigit.py
/usr/local/grass83/gui/wxpython/vdigit/wxdigit.py

wxnviz.py:

> locate wxdigit.py
/usr/local/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/vdigit/wxdigit.py
/usr/local/grass/gui/wxpython/vdigit/wxdigit.py
/usr/local/grass83/gui/wxpython/vdigit/wxdigit.py

Pls run this to print the Python and wxPython versions:

python3 -c "import sys, wx; print(sys.version); print(wx.version())"

Markus

------- Original Message -------
On Friday, August 12th, 2022 at 12:27, Markus Neteler <neteler@osgeo.org> wrote:

Pls run this to print the Python and wxPython versions:

python3 -c "import sys, wx; print(sys.version); print(wx.version())"

libgrass:

locate libgrass_gis.8.3.so

/usr/local/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gis.8.3.so
/usr/local/grass83/lib/libgrass_gis.8.3.so

python3:

python3 -c "import sys, wx; print(sys.version); print(wx.version())"

3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0]
4.0.7 gtk3 (phoenix) wxWidgets 3.0.4

~ Eric.

I would say ctypes compilation may be a problem, there is a common issue related to libproj, see also https://github.com/OSGeo/grass/issues/435#issuecomment-688807074

Anna

On Fri, Aug 12, 2022 at 11:45 AM Eric Patton via grass-user <grass-user@lists.osgeo.org> wrote:

------- Original Message -------
On Friday, August 12th, 2022 at 12:27, Markus Neteler <neteler@osgeo.org> wrote:

Pls run this to print the Python and wxPython versions:

python3 -c “import sys, wx; print(sys.version); print(wx.version())”

libgrass:

locate libgrass_gis.8.3.so
/usr/local/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gis.8.3.so
/usr/local/grass83/lib/libgrass_gis.8.3.so

python3:

python3 -c “import sys, wx; print(sys.version); print(wx.version())”
3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0]
4.0.7 gtk3 (phoenix) wxWidgets 3.0.4

~ Eric.


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

On Sat, Aug 13, 2022 at 5:57 PM Eric Patton <eric.r.patton@protonmail.com> wrote:

------- Original Message -------
On Saturday, August 13th, 2022 at 00:23, Anna Petrášová <kratochanna@gmail.com> wrote:

I would say ctypes compilation may be a problem, there is a common issue related to libproj, see also https://github.com/OSGeo/grass/issues/435#issuecomment-688807074

Anna

Thanks for the link, Anna. I have the multiple proj installations thing resolved now, but I’m not sure what to make of the ctypes issue. I read through the bug report, but it’s beyond me.

Does the ctypes part of compilation go through ok? It seems to me the problem you describe is not related to Python or wx.

Eric

------- Original Message -------
On Sunday, August 14th, 2022 at 00:40, Anna Petrášová <kratochanna@gmail.com> wrote:

On Sat, Aug 13, 2022 at 5:57 PM Eric Patton <eric.r.patton@protonmail.com> wrote:

------- Original Message -------
On Saturday, August 13th, 2022 at 00:23, Anna Petrášová <kratochanna@gmail.com> wrote:

I would say ctypes compilation may be a problem, there is a common issue related to libproj, see also https://github.com/OSGeo/grass/issues/435#issuecomment-688807074

Anna

Thanks for the link, Anna. I have the multiple proj installations thing resolved now, but I'm not sure what to make of the ctypes issue. I read through the bug report, but it's beyond me.

Does the ctypes part of compilation go through ok? It seems to me the problem you describe is not related to Python or wx.

I don't see anything related to ctypes in the configuration messages or the config.log - what config messages should a "good" installation have?