[GRASS-dev] Problem starting Grass 7.8.6 on Ubuntu
Markus Neteler
neteler at osgeo.org
Tue Nov 30 10:04:27 PST 2021
Hi,
On Tue, Nov 30, 2021 at 2:38 PM Robert Lagacé
<robert.lagace at fsaa.ulaval.ca> wrote:
>
> I found and solved the problem.
Glad you solved it!
> Adding a "print" statement before the offending line, I found the problem.
>
> GRAAS was trying to read the file "menudata.xml" in
> "~/.grass7/toolboxes/" which was empty. I deletes the ~/.grass7
> directory. When starting a new GRASS session, it creates a new directory
> without any file in the toolboxes directory.
>
> GRASS has no instructions for dealing with a empty file.
Good catch. Would you mind to open an issue at
https://github.com/OSGeo/grass/issues
briefly describing problem and solution/workaround? Then we can handle
it in a better way.
Thanks,
Markus
> Those files in the "toolboxes" directory are for menu customisation.
> They were probably create from a previous GRASS version.
>
>
> Le 2021-11-24 à 07 h 32, Robert Lagacé a écrit :
> > I have a problem starting 7.8.6 on Ubuntu 18.04.6 LTS. It may be a bug
> > or a problem related to the Python or wxPython Version.
> >
> > After defining a location which create the appropriate files and the
> > permanent data set, I get the following message when i hit the "Start"
> > buttom :
> >
> > Démarrage du SIG GRASS ...
> > Nettoyage des fichiers temporaires ...
> >
> > __________ ___ __________ _______________
> > / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
> > / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
> > / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
> > \____/_/ |_/_/ |_/____/____/ \____/___//____/
> >
> > Bienvenue dans le SIG GRASS 7.8.6
> > Page d'accueil du SIG GRASS :
...
> > Cette version fonctionne avec : Bash Shell (/bin/bash)
> > L'aide est disponible par la commande : g.manual -i
> > Voir les termes de la licence avec : g.version -c
> > Voir les termes de la licence avec : g.version -x
> > Si requis, redémarrer l'interface graphique avec :g.gui wxpython
> > Lors prêt pour la fermeture entrer : exit
> >
> > Lancement de l'interface graphique <wxpython> en tâche de fond, merci
> > de patienter ...
> > To run a command as administrator (user "root"), use "sudo <command>".
> > See "man sudo_root" for details.
> >
> > GRASS 7.8.6 (L_MTM_7):~ > Traceback (most recent call last):
> > File "/usr/lib/grass78/gui/wxpython/wxgui.py", line 106, in OnInit
> > workspace=self.workspaceFile)
> > File "/usr/lib/grass78/gui/wxpython/lmgr/frame.py", line 129, in
> > __init__
> > self._menuTreeBuilder =
> > LayerManagerMenuData(message_handler=add_menu_error)
> > File "/usr/lib/grass78/gui/wxpython/lmgr/menudata.py", line 42, in
> > __init__
> > message_handler=message_handler)
> > File "/usr/lib/grass78/gui/wxpython/core/menutree.py", line 71, in
> > __init__
> > xmlTree = etree.parse(filename)
> > File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 1196, in parse
> > tree.parse(source, parser)
> > File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 597, in parse
> > self._root = parser._parse_whole(source)
> > xml.etree.ElementTree.ParseError: no element found: line 1, column 0
> > OnInit returned false, exiting...
> >
> > I did not have this problem with the previous version.
> >
> > I also try to start on a previous data set and get the same message.
> >
> > Thanks
> >
>
> --
> -----------
> Robert Lagacé, ing., agr., prof.titulaire
> Département de SGA
> 2425 de l'agriculture
> Université Laval
> Québec, Québec, G1V 0A6
> courriel : robert.lagace at fsaa.ulaval.ca<mailto:robert.lagace at fsaa.ulaval.ca>
> tél: (418)-656-2131 poste 402276
> fax : (418)-656-3723
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
More information about the grass-dev
mailing list