[GRASS-dev] [GRASS-user] G7-gui and G64 add-on problems on Xubuntu (installation from grass/ubuntugis ppa)

Vaclav Petras wenzeslaus at gmail.com
Mon Oct 14 07:31:30 PDT 2013


One little addition to this,

On Mon, Oct 14, 2013 at 9:11 AM, Vaclav Petras <wenzeslaus at gmail.com> wrote:

> [Changing list to grass-dev, at least the traceback is compilation
> problem.]
>
> Hi,
>
> On Mon, Oct 14, 2013 at 4:34 AM, Johannes Radinger <
> johannesradinger at gmail.com> wrote:
>
>> Hi all,
>>
>> 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:
>>
>> sudo add-apt-repository ppa:grass/grass-devel
>> sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
>> sudo apt-get update
>> sudo apt-get install grass643 grass70 grass-gui grass70-gui
>>
>> However after successful installation I run into following two problems:
>>
>> 1) When I try to launch G7-gui (e.g. with standard NC example dataset) I
>> get following error:
>>
>> Launching <wxpython> GUI in the background, please wait...
>> GRASS 7.0.svn (nc_basic_spm_grass7):~ > Traceback (most recent call last):
>>   File "/usr/lib/grass70/etc/gui/wxpython/wxgui.py", line 143, in <module>
>>     sys.exit(main())
>>   File "/usr/lib/grass70/etc/gui/wxpython/wxgui.py", line 136, in main
>>     app = GMApp(workspaceFile)
>>   File "/usr/lib/grass70/etc/gui/wxpython/wxgui.py", line 50, in __init__
>>     wx.App.__init__(self, False)
>>   File
>> "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
>> 7981, in __init__
>>     self._BootstrapApp()
>>   File
>> "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
>> 7555, in _BootstrapApp
>>     return _core_.PyApp__BootstrapApp(*args, **kwargs)
>>   File "/usr/lib/grass70/etc/gui/wxpython/wxgui.py", line 84, in OnInit
>>     workspace = self.workspaceFile)
>>   File "/usr/lib/grass70/etc/gui/wxpython/lmgr/frame.py", line 108, in
>> __init__
>>     self._menuTreeBuilder = LayerManagerMenuData()
>>   File "/usr/lib/grass70/etc/gui/wxpython/lmgr/menudata.py", line 40, in
>> __init__
>>     MenuTreeModelBuilder.__init__(self, filename,
>> expandAddons=expandAddons)
>>   File "/usr/lib/grass70/etc/gui/wxpython/core/menutree.py", line 69, in
>> __init__
>>     xmlTree = etree.parse(filename)
>>   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1183, in parse
>>     tree.parse(source, parser)
>>   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse
>>     self._root = parser.close()
>>   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1655, in close
>>     self._raiseerror(v)
>>   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1507, in
>> _raiseerror
>>     raise err
>> xml.etree.ElementTree.ParseError: no element found: line 1, column 0
>>
>>
> 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.
>
> There is a note about some changes in the repository at:
> https://launchpad.net/~grass
>
> 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).
>
> Here is what my ls says after I run make:
>
> $ ls gui/wxpython/xml/
> grass-gxm.dtd  menudata.dtd          menudata.xml
>  toolboxes.dtd
> grass-gxw.dtd  menudata_modeler.xml  module_items.dtd
>  toolboxes.xml
> main_menu.dtd  menudata_psmap.xml    module_tree_menudata.xml
>  wxgui_items.dtd
> main_menu.xml  menudata.README       module_tree.xml
> wxgui_items.xml
>
> $ ls dist.i686-pc-linux-gnu/etc/gui/wxpython/xml/
> grass-gxm.dtd  menudata_modeler.xml  module_items.xml
>  wxgui_items.dtd
> grass-gxw.dtd  menudata_psmap.xml    module_tree_menudata.xml
>  wxgui_items.xml
> main_menu.dtd  menudata.README       module_tree.xml
> main_menu.xml  menudata.xml          toolboxes.dtd
> menudata.dtd   module_items.dtd      toolboxes.xml
>
> it is possible to run the test of menudata.xml generation (toolboxes.py)
using following commands (you need to be in a GRASS session):

python toolboxes.py doctest
python toolboxes.py test

However, I'm not sure if this is helpful for packagers.

>
>
>> 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:
>>
>>
>> GRASS 6.4.3 (gisdemo_ncspm):~ > g.extension extension=r.stream.order
>>
>> Fetching <r.stream.order> from GRASS-Addons SVN (be patient)...
>> WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-U4bRKD/pkcs11:
>> No such file or directory
>> A    r.stream.order/main.c
>> A    r.stream.order/description.html
>> A    r.stream.order/global.h
>> A    r.stream.order/io.c
>> A    r.stream.order/r_stream_order_orders.png
>> A    r.stream.order/order.c
>> A    r.stream.order/Makefile
>>  U   r.stream.order
>> Checked out revision 57991.
>> Compiling <r.stream.order>...
>> Makefile:12: /usr/lib/grass64/include/Make/Module.make: No such file or
>> directory
>> make: *** No rule to make target
>> `/usr/lib/grass64/include/Make/Module.make'.  Stop.
>> ERROR: Compilation failed, sorry. Please check above error messages.
>>
>>  I cannot add anything to the other problem but it might be similar to
> the recent problem on Suse:
> Suse 12.3, GRASS 6.4.3 - addons not possible to install (
> http://permalink.gmane.org/gmane.comp.gis.grass.user/48209)
>
>
>> 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!
>>
>> Both seems like a GRASS problem, particularly, compilation/packaging
> problem, so there probably nothing you can do on you machine except for
> checking files:
> /pathtograss7/etc/gui/wxpython/xml/menudata.xml for GRASS 7
> /usr/lib/grass64/include/Make/Module.make for GRASS 6 (above says 'no such
> file' already)
>
> Vaclav
>
> Best regards,
>> Johannes
>>
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20131014/f533be1d/attachment-0001.html>


More information about the grass-dev mailing list