[GRASS-dev] wxgrass: Error in profile tool

Do you have numpy installed? It is needed for the profile tool.

Michael

On 4/23/08 9:00 AM, "grass-dev-request@lists.osgeo.org"
<grass-dev-request@lists.osgeo.org> wrote:

Date: Wed, 23 Apr 2008 11:44:20 -0400
From: "Patton, Eric" <epatton@nrcan.gc.ca>
Subject: [GRASS-dev] wxgrass: Error in profile tool
To: <grass-dev@lists.osgeo.org>
Message-ID:
<CA803441152AAE40935609509953BAD2010760C3@s0-ott-x4.nrn.nrcan.gc.ca>
Content-Type: text/plain; charset="iso-8859-1"

Using today's 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.

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Do you have numpy installed? It is needed for the profile tool.

Michael

Yes, I have packages python-numpy and python-numpy-dev installed, versions 1.0.3.

I also have packages python-numeric and python-numarray installed, if that matters.

~ Eric.

Hi,

I can reproduce this error - when starting or ending point of transect
is outside of display extent.

Not fixed now, Martin

2008/4/24, Patton, Eric <epatton@nrcan.gc.ca>:

>Do you have numpy installed? It is needed for the profile tool.
>
>Michael

Yes, I have packages python-numpy and python-numpy-dev installed, versions 1.0.3.

I also have packages python-numeric and python-numarray installed, if that matters.

~ Eric.

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *