<html><body>Hi everybody,<br><br>I have problem with i.histo.match.py in GRASS on Ubuntu. <br>I have downloaded i.histo.match. py from <br>https://svn.osgeo.org/grass/grass-addons/grass7/imagery/i.histo.match/<br>I tried to run the script by command: python i.histo.match.py, but it doesn't work.<br>I have GRASS 6.4.1. and error messsage is:<br><br>GRASS 6.4.1 (barvy):~ > python Stažené/i.histo.match.py<br>Unknown command "option G_OPT_R_INPUTS" at line 25<br>Unknown command "description" at line 26<br>Unknown command "required" at line 27<br>Unknown command "end" at line 28<br>Unknown command "option G_OPT_R_OUTPUT" at line 29<br>Unknown command "description" at line 30<br>Unknown command "required" at line 31<br>Unknown command "answer" at line 32<br>Unknown command "end" at line 33<br>Unknown command "option G_OPT_DB_DATABASE" at line 34<br>Unknown command "required" at line 35<br>Unknown command "answer" at line 36<br>Unknown command "end" at line 37<br>Traceback (most recent call last):<br> File "/usr/lib/grass64/etc/wxpython/gui_modules/menuform.py", line <br>2207, in <module><br> task = grassTask(cmd[0])<br> File "/usr/lib/grass64/etc/wxpython/gui_modules/menuform.py", line <br>361, in __init__<br> processTask(tree = <br>etree.fromstring(getInterfaceDescription(grassModule)),<br> File "/usr/lib/grass64/etc/wxpython/gui_modules/menuform.py", line <br>1970, in getInterfaceDescription<br> "Details: %s") % (cmd, e.value)<br>AttributeError: 'exceptions.OSError' object has no attribute 'value'<br><br>I search something about this problem and I find information about <br>GRASS 7 and their new modules for python. I install GRASS 7, but this <br>version gives error message:<br><br>Starting GRASS GIS...<br>Traceback (most recent call last):<br> File "/usr/local/grass-7.0.svn/etc/gui/wxpython/gis_set.py", line 36, in <br><module><br> from core import globalvar<br> File "/usr/local/grass-7.0.svn/etc/gui/wxpython/core/globalvar.py", line 28, in <br><module><br> from core.debug import Debug<br> File "/usr/local/grass-7.0.svn/etc/gui/wxpython/core/debug.py", line 67, in <br><module><br> Debug = DebugMsg()<br> File "/usr/local/grass-7.0.svn/etc/gui/wxpython/core/debug.py", line 38, in <br>__init__<br> self.SetLevel()<br> File "/usr/local/grass-7.0.svn/etc/gui/wxpython/core/debug.py", line 43, in <br>SetLevel<br> self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))<br> File "/usr/local/grass-7.0.svn/etc/python/grass/script/core.py", line <br>735, in gisenv<br> s = read_command("g.gisenv", flags='n')<br> File "/usr/local/grass-7.0.svn/etc/python/grass/script/core.py", line 278, <br>in read_command<br> ps = pipe_command(*args, **kwargs)<br> File "/usr/local/grass-7.0.svn/etc/python/grass/script/core.py", line 255, <br>in pipe_command<br> return start_command(*args, **kwargs)<br> File "/usr/local/grass-7.0.svn/etc/python/grass/script/core.py", line 217, <br>in start_command<br> return Popen(args, **popts)<br> File "/usr/local/grass-7.0.svn/etc/python/grass/script/core.py", line 56, in <br>__init__<br> startupinfo, creationflags)<br> File "/usr/lib/python2.7/subprocess.py", line 679, in __init__<br> errread, errwrite)<br> File "/usr/lib/python2.7/subprocess.py", line 1249, in <br>_execute_child<br> raise child_exception<br>OSError: [Errno 2] No such file or directory<br>Error in GUI startup. If necessary, please report this error to the GRASS developers.<br>Switching to text mode now.<br><br>I have python version 2.7 and 3.<br>I find this comunication http://osgeo-org.1560.n6.nabble.com/OSError-importing-CSV-file-with-a-Python-Script-td4998910.html<br>But I don't underestand - Can I copy this environment variables and paste to the .bashrc?<br><br>Thank you<br><br>Marketa Prusova<br><br></body></html>