[Qgis-user] problem with GRASS custom variables
Martin Landa
landa.martin at gmail.com
Sat Aug 5 09:49:59 PDT 2023
Dear QGIS users,
I have problem setting up custom GRASS-related variables in QGIS settings
(use custom variables):
[image: image.png]
Unfortunately after restarting QGIS the statement below in Python Console
from grass.pygrass.gis import Mapset
fails with
ImportError: Could not load grass_raster.8.4.
When I set the same environmental variables before starting QGIS from shell
than the pyGRASS statement *works*:
GISBASE=/home/martin/src/grass/dist.x86_64-pc-linux-gnu
PYTHONPATH=/home/martin/src/grass/dist.x86_64-pc-linux-gnu/etc/python
LD_LIBRARY_PATH=/home/martin/src/grass/dist.x86_64-pc-linux-gnu/lib qgis
Any idea why custom variables defined by QGIS settings fail in this case?
Why are they behaving differently from environmental variables defined in
the shell?
Thanks in advance, Martin
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230805/647fc9c1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 36107 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230805/647fc9c1/attachment.png>
More information about the QGIS-User
mailing list