I found and solved the problem.
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.
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 :
https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgrass.osgeo.org%2F&data=04%7C01%7Crobert.lagace%40fsaa.ulaval.ca%7C517100dd8ca44532555c08d9af467aff%7C56778bd56a3f4bd3a26593163e4d5bfe%7C1%7C0%7C637733539943411143%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=HK3B4TpoJZB%2FIKVy3JSqIV1f1qF3j2xAZjvZLAEgcPE%3D&reserved=0
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.lag...@fsaa.ulaval.ca<mailto:robert.lag...@fsaa.ulaval.ca>
tél: (418)-656-2131 poste 402276
fax : (418)-656-3723
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev