Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#137 closed defect (fixed)

wxgrass: Error in profile tool

Reported by: epatton Owned by: grass-dev@…
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)

Profile.png (218.2 KB) - added by epatton 12 years ago.
Screenshot of profile that generated error in report

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by epatton

Attachment: Profile.png added

Screenshot of profile that generated error in report

comment:1 Changed 11 years ago by martinl

Component: PythonwxGUI

comment:2 Changed 11 years ago by epatton

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[rprop?pstyle?], KeyError? : 100

~ Eric.

comment:3 Changed 11 years ago by cmbarton

CPU: Unspecified
Platform: Unspecified
Resolution: fixed
Status: newclosed

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.

comment:4 Changed 11 years ago by epatton

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 Changed 11 years ago by cmbarton

It is the same in develbranch_6 as in trunk. So it should work OK in both. Thanks for testing.

comment:6 in reply to:  4 Changed 11 years ago by martinl

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

Note: See TracTickets for help on using tickets.