[GRASS-dev] GRASS 7 windows build: python script commands not shown
from GUI (missing collections module)
G. Allegri
giohappy at gmail.com
Mon Nov 21 12:52:20 EST 2011
Just for testing purposes I've installed GRASS 7 nightly build for Windows
from Martin.
I'm evaluating the python scripting system, and I've found that on my
Windows 7 machine no windows are opened inside the GUI for whatevere script.
E.g. v.report, v.db.join, etc. don't show up.
The problem seems due to "collections" python module missing from the
bundled python.
GRASS 7.0.svn> Traceback (most recent call last):
File "C:\Program Files\GRASS 7.0.SVN\etc\gui\wxpython\wxgui.py", line
547, in
OnMenuCmd
menuform.GUI(parent = self).ParseCommand(cmd)
File "C:\Program Files\GRASS
7.0.SVN\etc\gui\wxpython\gui_modules\menuform.py"
, line 1903, in ParseCommand
blackList = _blackList)
File "C:\Program Files\GRASS 7.0.SVN\etc\python\grass\script\task.py",
line 45
1, in parse_interface
tree = etree.fromstring(get_interface_description(name))
File "C:\Program Files\GRASS 7.0.SVN\etc\python\grass\script\task.py",
line 43
8, in get_interface_description
"\n\nDetails: %(det)s") % { 'cmd': cmd, 'det' : decode(cmderr) }
grass.script.core.ScriptError: u'Unable to fetch interface description for
command \'v.report\'.
Details: Traceback (most recent call last):
File "C:\\Program Files\\GRASS 7.0.SVN\\scripts\\v.report.py", line 47, in
<module>\r\nimport grass.script as grass\r\n File "C:\\Program
Files\\GRASS 7.0.SVN\\etc\\python\\grass\\script\\__init__.py", line 1, in
<module>
from core import *
File "C:\\Program Files\\GRASS
7.0.SVN\\etc\\python\\grass\\script\\core.py", line 31, in <module>
import subprocess
File "C:\\Program Files\\GRASS 7.0.SVN\\Python25\\lib\\subprocess.py",
line 376, in <module>
import threading
File "C:\\Program Files\\GRASS 7.0.SVN\\Python25\\lib\\threading.py", line
13, in <module>
from collections import deque
ImportError: No module named collections
Giovanni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20111121/6296ec04/attachment.html
More information about the grass-dev
mailing list