<div dir="ltr">[Changing list to grass-dev, at least the traceback is compilation problem.]<div><br></div><div>Hi,</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 14, 2013 at 4:34 AM, Johannes Radinger <span dir="ltr"><<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I want to install G7 and G6.4.3 as well as several add-ons on a freshly installed Xubuntu (12.04) machine (Virtualbox) for testing purposes. Therefore I run following commands after Xubuntu installation and update of the system:</div>
<div><br></div><div><div>sudo add-apt-repository ppa:grass/grass-devel</div><div>sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable</div><div>sudo apt-get update</div><div>sudo apt-get install grass643 grass70 grass-gui grass70-gui</div>
</div><div><br></div><div>However after successful installation I run into following two problems:</div><div><br></div><div>1) When I try to launch G7-gui (e.g. with standard NC example dataset) I get following error:</div>
<div><br></div><div><div>Launching <wxpython> GUI in the background, please wait...</div><div>GRASS 7.0.svn (nc_basic_spm_grass7):~ > Traceback (most recent call last):</div><div> File "/usr/lib/grass70/etc/gui/wxpython/wxgui.py", line 143, in <module></div>
<div> sys.exit(main())</div><div> File "/usr/lib/grass70/etc/gui/wxpython/wxgui.py", line 136, in main</div><div> app = GMApp(workspaceFile)</div><div> File "/usr/lib/grass70/etc/gui/wxpython/wxgui.py", line 50, in __init__</div>
<div> wx.App.__init__(self, False)</div><div> File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7981, in __init__</div><div> self._BootstrapApp()</div><div> File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7555, in _BootstrapApp</div>
<div> return _core_.PyApp__BootstrapApp(*args, **kwargs)</div><div> File "/usr/lib/grass70/etc/gui/wxpython/wxgui.py", line 84, in OnInit</div><div> workspace = self.workspaceFile)</div><div> File "/usr/lib/grass70/etc/gui/wxpython/lmgr/frame.py", line 108, in __init__</div>
<div> self._menuTreeBuilder = LayerManagerMenuData()</div><div> File "/usr/lib/grass70/etc/gui/wxpython/lmgr/menudata.py", line 40, in __init__</div><div> MenuTreeModelBuilder.__init__(self, filename, expandAddons=expandAddons)</div>
<div> File "/usr/lib/grass70/etc/gui/wxpython/core/menutree.py", line 69, in __init__</div><div> xmlTree = etree.parse(filename)</div><div> File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1183, in parse</div>
<div> tree.parse(source, parser)</div><div> File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse</div><div> self._root = parser.close()</div><div> File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1655, in close</div>
<div> self._raiseerror(v)</div><div> File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1507, in _raiseerror</div><div> raise err</div><div>xml.etree.ElementTree.ParseError: no element found: line 1, column 0</div>
</div><div><br></div></div></blockquote><div><div><br></div><div>About the traceback, it seems as a compilation issue in the PPA. During compilation the menudata.xml file should created in gui/wxpython/xml/ but probably it is not.</div>
<div><br></div><div>There is a note about some changes in the repository at:</div><div><a href="https://launchpad.net/~grass">https://launchpad.net/~grass</a></div><div><br></div><div>Can someone from the Launchpad GRASS GIS team check/explain what is happening? With this file we have problems at Mac but Ubuntu and Windows were successfully tested (but still, the related Makefile is bit strange, so that might be a problem).</div>
<div><br></div><div>Here is what my ls says after I run make:</div><div><br></div><div><div>$ ls gui/wxpython/xml/</div><div>grass-gxm.dtd menudata.dtd menudata.xml toolboxes.dtd</div><div>grass-gxw.dtd menudata_modeler.xml module_items.dtd toolboxes.xml</div>
<div>main_menu.dtd menudata_psmap.xml module_tree_menudata.xml wxgui_items.dtd</div><div>main_menu.xml menudata.README module_tree.xml wxgui_items.xml</div><div><br></div><div>$ ls dist.i686-pc-linux-gnu/etc/gui/wxpython/xml/<br>
</div><div>grass-gxm.dtd menudata_modeler.xml module_items.xml wxgui_items.dtd</div><div>grass-gxw.dtd menudata_psmap.xml module_tree_menudata.xml wxgui_items.xml</div><div>main_menu.dtd menudata.README module_tree.xml</div>
<div>main_menu.xml menudata.xml toolboxes.dtd</div><div>menudata.dtd module_items.dtd toolboxes.xml</div></div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div></div><div>2) G6.4.3. and its gui can be properly launched (no problems like mentioned in point 1). So here I tried to install add.ons. There I ran g.extension from the grass terminal but face following problem:</div>
<div><br></div><div><div><br></div><div>GRASS 6.4.3 (gisdemo_ncspm):~ > g.extension extension=r.stream.order</div><div><br></div><div>Fetching <r.stream.order> from GRASS-Addons SVN (be patient)...</div><div>WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-U4bRKD/pkcs11: No such file or directory</div>
<div>A r.stream.order/main.c</div><div>A r.stream.order/description.html</div><div>A r.stream.order/global.h</div><div>A r.stream.order/io.c</div><div>A r.stream.order/r_stream_order_orders.png</div><div>A r.stream.order/order.c</div>
<div>A r.stream.order/Makefile</div><div> U r.stream.order</div><div>Checked out revision 57991.</div><div>Compiling <r.stream.order>...</div><div>Makefile:12: /usr/lib/grass64/include/Make/Module.make: No such file or directory</div>
<div>make: *** No rule to make target `/usr/lib/grass64/include/Make/Module.make'. Stop.</div><div>ERROR: Compilation failed, sorry. Please check above error messages.</div></div><div><br></div></div></blockquote><div>
I cannot add anything to the other problem but it might be similar to the recent problem on Suse:<br>Suse 12.3, GRASS 6.4.3 - addons not possible to install (<a href="http://permalink.gmane.org/gmane.comp.gis.grass.user/48209">http://permalink.gmane.org/gmane.comp.gis.grass.user/48209</a>)</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>
So does anyone have an idea what may cause the problems. I don't think that the problems are related nor are they caused by my Xubuntu-Virtualbox setup. Do I miss any modules/packages/software that I need to install prior to grass? Or do I need to use different ppas for installing grass? Any help is of course mostly welcome!</div>
<div><br></div></div></blockquote><div>Both seems like a GRASS problem, particularly, compilation/packaging problem, so there probably nothing you can do on you machine except for checking files:</div><div>/pathtograss7/etc/gui/wxpython/xml/menudata.xml for GRASS 7</div>
<div>/usr/lib/grass64/include/Make/Module.make for GRASS 6 (above says 'no such file' already)</div><div><br></div><div>Vaclav</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div></div><div>Best regards,</div><div>Johannes</div></div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br></div></div>