[GRASS-dev] [GRASS GIS] #137: wxgrass: Error in profile tool

#137: wxgrass: Error in profile tool
--------------------------------------------+-------------------------------
Reporter: epatton | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: minor | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Keywords: profile tool, transect, python |
--------------------------------------------+-------------------------------
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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/137&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#137: wxgrass: Error in profile tool
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: profile tool, transect, python
----------------------+-----------------------------------------------------
Changes (by martinl):

  * component: Python => wxGUI

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/137#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#137: wxgrass: Error in profile tool
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: profile tool, transect, python
----------------------+-----------------------------------------------------
Comment (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[r['prop']['pstyle']],
KeyError
:
100

~ Eric.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/137#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#137: wxgrass: Error in profile tool
--------------------------+-------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: profile tool, transect, python
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by cmbarton):

  * status: new => closed
  * platform: => Unspecified
  * resolution: => fixed
  * cpu: => Unspecified

Comment:

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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/137#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#137: wxgrass: Error in profile tool
--------------------------+-------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: profile tool, transect, python
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/137#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#137: wxgrass: Error in profile tool
--------------------------+-------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: profile tool, transect, python
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by cmbarton):

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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/137#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#137: wxgrass: Error in profile tool
--------------------------+-------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: profile tool, transect, python
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by martinl):

Replying to [comment:4 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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/137#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

just recompile GRASS7 from the scratch (make distclean first), somehow you
are using old version of GIS library.

Martin

Hmm...but this error occurs after I checked out the entire grass_trunk from svn again and recompiled from scratch.

~ Eric.

Hi Eric,

On Mon, Aug 18, 2008 at 7:33 PM, Patton, Eric <epatton@nrcan.gc.ca> wrote:

just recompile GRASS7 from the scratch (make distclean first), somehow you
are using old version of GIS library.

Martin

Hmm...but this error occurs after I checked out the entire grass_trunk from svn again and recompiled from scratch.

you really need to run:
make distclean

and then check (svn status etc) is old stuff is hanging around. Carefully
check where the libs are taken from (ldd /path/to/module).
Got the same problem today and wiping out the old stuff helped.

Markus