#137 closed defect (fixed)
wxgrass: Error in profile tool
Reported by: | epatton | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 6.4.0 |
Component: | wxGUI | Version: | svn-trunk |
Keywords: | profile tool, transect, python | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
Using April 23 svn...
When using the wxgrass profile tool, the following error is encountered when I click on the 'Draw Profile' button after I have created a transect to profile:
Traceback (most recent call last): File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/pr ofile.py", line 427, in CreateProfile self.DrawPlot() File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/pr ofile.py", line 447, in DrawPlot legend=' '+self.plegend1) File "/usr/lib/python2.5/site- packages/wx-2.8-gtk2-unicode/wx/lib/plot.py", line 224, in __init__ PolyPoints.__init__(self, points, attr) File "/usr/lib/python2.5/site- packages/wx-2.8-gtk2-unicode/wx/lib/plot.py", line 124, in __init__ self._points = _Numeric.array(points).astype(_Numeric.Float64) File "/usr/lib/python2.5/site- packages/numarray/numarraycore.py", line 417, in array return fromlist(sequence,type,shape) File "/usr/lib/python2.5/site- packages/numarray/numarraycore.py", line 252, in fromlist highest_type = _maxtype(seq) File "/usr/lib/python2.5/site- packages/numarray/numarraycore.py", line 131, in _maxtype return PyLevel2Type[_numarray._maxtype(args)] TypeError : Expecting a python numeric type, got something else.
I have ensured that the computational region has been set to that of the map display before digitizing the profile transect.
~ Eric.
Attachments (1)
Change History (7)
by , 17 years ago
Attachment: | Profile.png added |
---|
comment:1 by , 16 years ago
Component: | Python → wxGUI |
---|
comment:2 by , 16 years ago
I'm not sure if this is a different bug occurring, or related to the reported one above, but when I attempt the same procedure to draw a profile in the wxGUI, I get the following error, using svn compiled June 19th, 2008:
Traceback (most recent call last):
File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/pr
ofile.py", line 429, in OnCreateProfile
self.DrawPlot()
File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/pr
ofile.py", line 453, in DrawPlot
style=self.pstyledict[rproppstyle], KeyError : 100
~ Eric.
comment:3 by , 16 years ago
CPU: | → Unspecified |
---|---|
Platform: | → Unspecified |
Resolution: | → fixed |
Status: | new → closed |
This works fine for me. I did some fixes to profile a few weeks back. Please check and report back. I'm closing for now, but can reopen if it still is a problem.
follow-up: 6 comment:4 by , 16 years ago
Michael,
I can't test it in trunk right now, as Grass 7 startup is complaining "ERROR: Incompatible library version for module" (which module?). I tested it in grass6_devel, and it works OK.
~ Eric.
comment:5 by , 16 years ago
It is the same in develbranch_6 as in trunk. So it should work OK in both. Thanks for testing.
comment:6 by , 16 years ago
Replying to epatton:
I can't test it in trunk right now, as Grass 7 startup is complaining "ERROR: Incompatible library version for module" (which module?). I tested it in grass6_devel, and it works OK.
just recompile GRASS7 from the scratch (make distclean first), somehow you are using old version of GIS library.
Martin
Screenshot of profile that generated error in report