[GRASS-dev] g.gui.metadata and wxgui addons in GRASS 7.1
Blumentrath, Stefan
Stefan.Blumentrath at nina.no
Fri Aug 21 13:08:41 PDT 2015
Hi Matej,
I just checked out your new revision. Now I get on sudo make MODULE_TOPDIR=/usr/local/grass-7.1.svn/:
make[1]: Entering directory `/data/src/grass7_addons/gui/wxpython/wx.metadata/g.gui.metadata'
if [ "/usr/local/grass-7.1.svn/scripts/g.gui.metadata" != "" ] ; then GISRC=/usr/local/grass-7.1.svn/demolocation/.grassrc71 GISBASE=/usr/local/grass-7.1.svn PATH="/usr/local/grass-7.1.svn/bin:/usr/local/grass-7.1.svn/bin:/usr/local/grass-7.1.svn/scripts:$PATH" PYTHONPATH="/usr/local/grass-7.1.svn/etc/python:/usr/local/grass-7.1.svn/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/usr/local/grass-7.1.svn/bin:/usr/local/grass-7.1.svn/scripts:/usr/local/grass-7.1.svn/lib:/usr/local/grass-7.1.svn/lib:" LC_ALL=C /usr/local/grass-7.1.svn/scripts/g.gui.metadata --html-description < /dev/null | grep -v '</body>\|</html>' > g.gui.metadata.tmp.html ; fi
Traceback (most recent call last):
File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata", line 27, in <module>
sys.path.insert(2, os.path.join(os.getenv('GRASS_ADDON_BASE'), 'etc', 'wx.metadata', 'mdlib'))
File "/usr/lib/python2.7/posixpath.py", line 77, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
make[1]: *** [g.gui.metadata.tmp.html] Error 1
rm g.gui.metadata.tmp.html
make[1]: Leaving directory `/data/src/grass7_addons/gui/wxpython/wx.metadata/g.gui.metadata'
I did not update my GRASS 7.1 installation (it is r65797)…
Cheers
Stefan
From: Matej Krejci [mailto:matejkrejci at gmail.com]
Sent: 21. august 2015 14:43
To: Blumentrath, Stefan <Stefan.Blumentrath at nina.no>
Cc: GRASS-dev <grass-dev at lists.osgeo.org>
Subject: Re: [GRASS-dev] g.gui.metadata and wxgui addons in GRASS 7.1
Dear Stefan,
Thanks for bug report. I have done few changes(r65990) which should help but the installation from add-ons still doesn't work properly[1].
2015-08-20 14:41 GMT+02:00 Blumentrath, Stefan <Stefan.Blumentrath at nina.no<mailto:Stefan.Blumentrath at nina.no>>:
Hi,
I just tried to install g.gui.metadata addon with limited success.
No AddOn appears under wxGUI when I run g.extension from the GUI (while e.g. raster addons do show up). Is this probably do to the path in the AddOn repo (which starts with gui and not wxGUI). All other tree elements in g.extension are equal to folder names in the repository…
So, I finally compiled g.gui.extension from source after installing the dependencies.
Now, g.gui.metadata is available, but does not start:
Traceback (most recent call last):
File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata",
line 1246, in <module>
main()
File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata",
line 1240, in main
MAINFRAME = MdMainFrame()
File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata",
line 88, in __init__
self.onInitEditor()
File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata",
line 724, in onInitEditor
self.MdDataCatalogPanelLeft =
MdDataCatalog(self.leftPanel)
File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata",
line 836, in __init__
self.InitTreeItems()
File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata",
line 860, in InitTreeItems
self.initTemporalTree(location=location,
mapset=self.mapset)
File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata",
line 923, in initTemporalTree
if self.itemExists(ml[2], varmapset) == False:
File
"/usr/local/grass-7.1.svn/gui/wxpython/lmgr/datacatalog.py",
line 213, in itemExists
item, cookie = self.GetFirstChild(root)
File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 5409, in
GetFirstChild
return _controls_.TreeCtrl_GetFirstChild(*args,
**kwargs)
ValueError: invalid null reference in method
'TreeCtrl_GetFirstChild', expected argument 2 of type
'wxTreeItemId const &'
Best
Matej
[1] https://lists.osgeo.org/pipermail/grass-dev/2015-August/076034.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150821/01dbbb23/attachment-0001.html>
More information about the grass-dev
mailing list