[GRASS-dev] libgrass_gis.7.8 not found issue

wxnviz.py: Could not find module
'C:\OSGEO4~1\apps\grass\grass78\lib\libgrass_gis.7.8.dll' (or one of
its dependencies). Try using the full path with constructor syntax.
wxdigit.py: Could not find module
'C:\OSGEO4~1\apps\grass\grass78\lib\libgrass_gis.7.8.dll' (or one of
its dependencies). Try using the full path with constructor syntax.
wxdigit.py: Could not find module
'C:\OSGEO4~1\apps\grass\grass78\lib\libgrass_gis.7.8.dll' (or one of
its dependencies).

[...]

File "C:\OSGEO4~1\apps\grass\grass78\etc\python\grass\lib\gis.py",
line 23, in <module>
   _libs["grass_gis.7.8"] = load_library("grass_gis.7.8")
File "C:\OSGEO4~1\apps\grass\grass78\etc\python\grass\lib\ctypes_loader.py",
line 62, in load_library
   return self.load(path)
File "C:\OSGEO4~1\apps\grass\grass78\etc\python\grass\lib\ctypes_loader.py",
line 240, in load
   return _WindowsLibrary(path)
File "C:\OSGEO4~1\apps\grass\grass78\etc\python\grass\lib\ctypes_loader.py",
line 223, in __init__
   self.cdll = ctypes.cdll.LoadLibrary(path)
File "C:\OSGEO4~1\apps\Python39\lib\ctypes\__init__.py", line 452,
in LoadLibrary
   return self._dlltype(name)
File "C:\OSGEO4~1\apps\Python39\lib\ctypes\__init__.py", line 374, in __init__
   self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module
'C:\OSGEO4~1\apps\grass\grass78\lib\libgrass_gis.7.8.dll' (or one of
its dependencies). Try using the full path with constructor syntax.
OnInit returned false, exiting...

I've installed GRASS 7.8.5 from new OSGeo4W installer [0],
[0] https://download.osgeo.org/osgeo4w/testing/

see

http://download.osgeo.org/osgeo4w/testing/x86_64/release/python3/

it seems python 3.9 is used in the new OSGeo4W environment:

python3-3.9.0-7-src.tar.bz2 3517 2020-Oct-13 21:04

not sure if GRASS GIS 7.8.x is (already) supporting python 3.9

@Anna: any idea?

kind regards
Helmut

On Wed, Mar 3, 2021 at 10:04 PM Helmut Kudrnovsky <hellik@web.de> wrote:
...

>I've installed GRASS 7.8.5 from new OSGeo4W installer [0],
>[0] https://download.osgeo.org/osgeo4w/testing/

see

http://download.osgeo.org/osgeo4w/testing/x86_64/release/python3/

it seems python 3.9 is used in the new OSGeo4W environment:

python3-3.9.0-7-src.tar.bz2 3517 2020-Oct-13 21:04

not sure if GRASS GIS 7.8.x is (already) supporting python 3.9

I think it does, at least I am using GRASS GIS 7.8.x with Python 3.9
on Fedora 33 without any problems.

@Anna: any idea?

No idea about Windows, though.

kind regards
Helmut

Markus

Hi Markus and Helmut,

It is fixed now:

https://trac.osgeo.org/osgeo4w/ticket/661#comment:11

Thank you very much!

Best regards,
Pedro

Markus Neteler <neteler@osgeo.org> escreveu no dia quarta, 3/03/2021 à(s) 21:25:

On Wed, Mar 3, 2021 at 10:04 PM Helmut Kudrnovsky <hellik@web.de> wrote:

I’ve installed GRASS 7.8.5 from new OSGeo4W installer [0],
[0] https://download.osgeo.org/osgeo4w/testing/

see

http://download.osgeo.org/osgeo4w/testing/x86_64/release/python3/

it seems python 3.9 is used in the new OSGeo4W environment:

python3-3.9.0-7-src.tar.bz2 3517 2020-Oct-13 21:04

not sure if GRASS GIS 7.8.x is (already) supporting python 3.9

I think it does, at least I am using GRASS GIS 7.8.x with Python 3.9
on Fedora 33 without any problems.

@Anna: any idea?

No idea about Windows, though.

kind regards
Helmut

Markus