Opened 16 years ago

Closed 16 years ago

#472 closed defect (fixed)

wxPython profiling tool fails to detect missing numpy

Reported by: marisn Owned by: martinl
Priority: critical Milestone: 6.4.0
Component: wxGUI Version: 6.4.0 RCs
Keywords: Cc: grass-dev@…
CPU: Unspecified Platform: Linux

Description

Profiling tool fails to detect missing requirements. http://lists.osgeo.org/pipermail/grass-user/2009-January/048640.html Error from Ubuntu 8.04:

Traceback (most recent call last):

File "/home/dace/soft/grass64_release/dist.x86_64-unknown-

linux-gnu/etc/wxpython/gui_modules/mapdisp.py", line 3796, in Profile

self.profile.OnSelectRaster(None)

File "/home/dace/soft/grass64_release/dist.x86_64-unknown-

linux-gnu/etc/wxpython/gui_modules/profile.py", line 241, in OnSelectRaster

self.OnCreateProfile(event=None)

File "/home/dace/soft/grass64_release/dist.x86_64-unknown-

linux-gnu/etc/wxpython/gui_modules/profile.py", line 449, in OnCreateProfile

self.DrawPlot()

File "/home/dace/soft/grass64_release/dist.x86_64-unknown-

linux-gnu/etc/wxpython/gui_modules/profile.py", line 474, in DrawPlot

legend=rplegend)

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) ValueError : matrices are not aligned for copy

Change History (3)

comment:1 by martinl, 16 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

Hopefully fixed in r35715 (relbr64), r35716 (devbr64) and r35717 (trunk).

comment:2 by neteler, 16 years ago

Checked on my Mandriva box:

GRASS 6.5.svn (spearfish60):~/grass64 > g.gui wxpython
profile.py:
    This module requires the NumPy module, which could not be
    imported. It probably is not installed (it's not part of the
    standard Python distribution). See the Numeric Python site
    (http://numpy.scipy.org) for information on downloading source or
    binaries.

su
urpmi python-numpy
exit

GRASS 6.5.svn (spearfish60):~/grass64 > g.gui wxpython
# ... no more Numpy warning.

Looks good to me.

Markus

comment:3 by martinl, 16 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.