Package Details: grass 7.6.0-1

Git Clone URL: https://aur.archlinux.org/grass.git (read-only)
Package Base: grass
Description: Geospatial data management and analysis, image processing, graphics/maps production, spatial modeling and visualization
Upstream URL: http://grass.osgeo.org/
Licenses: GPL
Submitter: Scimmia
Maintainer: Scimmia
Last Packager: Scimmia
Votes: 32
Popularity: 0.763780
First Submitted: 2015-09-06 15:10
Last Updated: 2019-01-22 20:08

Dependencies (26)

Required by (1)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

kikislater commented on 2016-01-17 14:30

It should concern wxpython package. Edit the file yourself found in /usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/lib/plot.py
And flag package wxpython out of date

HuMu_2013 commented on 2016-01-17 13:49

Any chance to apply this patch?
http://trac.wxwidgets.org/attachment/ticket/16767/wxPython-3.0.2.0-plot.patch
Since for some time the "analyze map" & "profile surface map" functions don't work.

kuszi commented on 2016-01-03 13:32


Addon: when script begins with:

#!/usr/bin/python2

it starts to work. So, it seems that in the call chain somewhere grass python environment is "lost". It could be special to g.parser ...

kuszi commented on 2016-01-03 10:20

Hello!

I have a GRASS - python, maybe environment problem. I've created a small test module in python. I tried to use g.parser to check it for its gui.
It seems that there are python module loading problems..

--------------GRASS specific env - from inside GRASS
GRASS 7.0.2 (HUNUTMWgs84):~/grassdata/scripts > env | grep GRASS
GRASS_PYTHON=python2
GRASS_GNUPLOT=gnuplot -persist
GRASS_PAGER=more
GRASS_ADDON_PATH=/home/kuszi/.grass7/addons
GRASS_PROJSHARE=/usr/share/proj
GRASS_VERSION=7.0.2
GRASS_HTML_BROWSER=xdg-open
GRASS_ADDON_BASE=/home/kuszi/.grass7/addons
GRASS 7.0.2 (HUNUTMWgs84):~/grassdata/scripts >

------------ g.parser invocation:

GRASS 7.0.2 (HUNUTMWgs84):~/grassdata/scripts > g.parser g.sample

----------------------ERROR:

Unable to fetch interface description for command 'g.sample'.
Details: Traceback (most recent call last):
File "/home/kuszi/grassdata/scripts/g.sample", line 18, in <module>
import grass.script as grass
File "/opt/grass/etc/python/grass/script/__init__.py", line 5, in <module>
from db import *
ImportError: No module named 'db'

Try to set up GRASS_ADDON_PATH or GRASS_ADDON_BASE variable.

------------------- g.sample
#!/usr/bin/env python

#%module
#% description: minimal.
#% keyword: testing
#%end
#%option
#% key: table
#% type: string
#% required: yes
#% multiple: no
#% key_desc: name
#% description: Input table name
#% gisprompt: old,dbtable,dbtable
#%end
import sys

import grass.script as grass

def main():
# put code here
return 0

if __name__ == "__main__":
options, flags = grass.parser()
sys.exit(main())

------------------ PATH for my user (outside the grass session)
[kuszi@kuszidell ~]$ echo $PATH
/home/kuszi/grassdata/scripts:/home/kuszi/scripts:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

------------------ PATH inside the GRASS session:
GRASS 7.0.2 (HUNUTMWgs84):~/grassdata/scripts > echo $PATH
/opt/grass/bin:/opt/grass/scripts:/home/kuszi/.grass7/addons/bin:/home/kuszi/.grass7/addons/scripts:/home/kuszi/grassdata/scripts:/home/kuszi/scripts:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

------------------ YTHON environment vars
GRASS 7.0.2 (HUNUTMWgs84):~/grassdata/scripts > env | grep YTHO
GRASS_PYTHON=python2
PYTHONPATH=/opt/grass/etc/python:/opt/grass/gui/wxpython

I've tested many scripts, simpler, more complicated, etc. It seems to be universal to python scripts. bash script dialogs appear well.

What else to test?

Thanks for any ideas
Robert

Scimmia commented on 2015-11-20 16:24

It's not, but bison is. It seems to do the job for me.

bilthekid commented on 2015-11-20 15:52

I see. Although, the flex is part of base-devel package group, does it also stand for byacc? Because I dont see it in the list: pacman -Ss base-devel|grep -i yacc.

Scimmia commented on 2015-11-20 14:00

@bilthekid, nope. See https://wiki.archlinux.org/index.php/Arch_User_Repository#Prerequisites

bilthekid commented on 2015-11-20 13:02

@Scimmia, could you add as dependencies **flex** and **byacc** because otherwise you will get errors in building?

Thanks

PetoP commented on 2015-10-27 07:27

@Scimmia, it works pefect!

Thank you very much :)

Scimmia commented on 2015-10-27 02:54

@PetoP, try it now