[GRASS-dev] Fedora 16 6.4 release branch 49406 and RC2 failure

Hi,

I first tried 6.4.2 RC2, now also checked out SVN 49406, with the same result. With fresh Fedora 16, building from source (with 6.4.1 the proj arguments were never needed), there is trouble loading the GUI:

$ ./configure --prefix=/home/rsb/topics/GRASS/G642RC2 --with-wxwidgets
--with-proj-libs=/usr/local/lib --with-proj-include=/usr/local/include
--with-proj-share=/usr/local/share/proj

$ /home/rsb/topics/GRASS/G642RC2/bin/grass64 -wx
Cleaning up temporary files ...
Starting GRASS ...

           __________ ___ __________ _______________
          / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
         / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
        / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
        \____/_/ |_/_/ |_/____/____/ \____/___//____/

Welcome to GRASS 6.4.2svn (2011)
GRASS homepage: http://grass.osgeo.org/
This version running thru: Bash Shell (/bin/bash)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exit

GRASS 6.4.2svn (spearfish60):~/topics/GRASS/grass64_release > 3D view mode:
libproj.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
   File "/home/rsb/topics/GRASS/G642RC2/grass-6.4.2svn/etc/wxpython/wxgui.py",
line 65, in <module>
     from gui_modules import layertree
   File
"/home/rsb/topics/GRASS/G642RC2/grass-6.4.2svn/etc/wxpython/gui_modules/layertree.py",
line 44, in <module>
     import toolbars
   File
"/home/rsb/topics/GRASS/G642RC2/grass-6.4.2svn/etc/wxpython/gui_modules/toolbars.py",
line 47, in <module>
     from nviz import haveNviz
   File
"/home/rsb/topics/GRASS/G642RC2/grass-6.4.2svn/etc/wxpython/gui_modules/nviz.py", line
29, in <module>
     import nviz_mapdisp
   File
"/home/rsb/topics/GRASS/G642RC2/grass-6.4.2svn/etc/wxpython/gui_modules/nviz_mapdisp.py",
line 39, in <module>
     from workspace import Nviz as NvizDefault
   File
"/home/rsb/topics/GRASS/G642RC2/grass-6.4.2svn/etc/wxpython/gui_modules/workspace.py",
line 40, in <module>
     import wxnviz
   File
"/home/rsb/topics/GRASS/G642RC2/grass-6.4.2svn/etc/wxpython/gui_modules/wxnviz.py",
line 58, in <module>
     errtype = CFUNCTYPE(UNCHECKED(c_int), String, c_int)
NameError: name 'UNCHECKED' is not defined
GRASS 6.4.2svn (spearfish60):~/topics/GRASS/grass64_release >

Any ideas? Worth filing a bug? Is this wx, nviz, ctypes, none of them?

Roger

--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand@nhh.no

Roger Bivand wrote:

Hi,

I first tried 6.4.2 RC2, now also checked out SVN 49406, with the same
result. With fresh Fedora 16, building from source (with 6.4.1 the proj
arguments were never needed), there is trouble loading the GUI:

wxNviz has been disabled only 3 days ago in 6.4, latest svn works for
me with Fedora 16. This is not a real solution to

[snip]

File
"/home/rsb/topics/GRASS/G642RC2/grass-6.4.2svn/etc/wxpython/gui_modules/wxnviz.py",
line 58, in <module>
errtype = CFUNCTYPE(UNCHECKED(c_int), String, c_int)
NameError: name 'UNCHECKED' is not defined
GRASS 6.4.2svn (spearfish60):~/topics/GRASS/grass64_release >

Any ideas? Worth filing a bug? Is this wx, nviz, ctypes, none of them?

but at least grass starts with gui, although without wxnviz.

Markus M

On Mon, 28 Nov 2011, Markus Metz wrote:

Roger Bivand wrote:

Hi,

I first tried 6.4.2 RC2, now also checked out SVN 49406, with the same
result. With fresh Fedora 16, building from source (with 6.4.1 the proj
arguments were never needed), there is trouble loading the GUI:

wxNviz has been disabled only 3 days ago in 6.4, latest svn works for
me with Fedora 16. This is not a real solution to

Martin wrote on Friday that he had disabled wxNviz in relbr64 at r49360, so I assumed that by checking out r49406, I would avoid the problem I had seen in the RC2 tarball. Am I missing a dependency that is not being trapped by configure? Why does a post-r49360 checkout from:

svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4 grass64_release

still try to build wxnviz? Where should I look to see which files were changed by r49360 on the server, so that I can compare with the ones I checked out?

Roger

[snip]

File
"/home/rsb/topics/GRASS/G642RC2/grass-6.4.2svn/etc/wxpython/gui_modules/wxnviz.py",
line 58, in <module>
errtype = CFUNCTYPE(UNCHECKED(c_int), String, c_int)
NameError: name 'UNCHECKED' is not defined
GRASS 6.4.2svn (spearfish60):~/topics/GRASS/grass64_release >

Any ideas? Worth filing a bug? Is this wx, nviz, ctypes, none of them?

but at least grass starts with gui, although without wxnviz.

Markus M

--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand@nhh.no

On Mon, 28 Nov 2011, Roger Bivand wrote:

On Mon, 28 Nov 2011, Markus Metz wrote:

Roger Bivand wrote:

Hi,

I first tried 6.4.2 RC2, now also checked out SVN 49406, with the same
result. With fresh Fedora 16, building from source (with 6.4.1 the proj
arguments were never needed), there is trouble loading the GUI:

wxNviz has been disabled only 3 days ago in 6.4, latest svn works for
me with Fedora 16. This is not a real solution to

Martin wrote on Friday that he had disabled wxNviz in relbr64 at r49360, so I assumed that by checking out r49406, I would avoid the problem I had seen in the RC2 tarball. Am I missing a dependency that is not being trapped by configure? Why does a post-r49360 checkout from:

svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4 grass64_release

still try to build wxnviz? Where should I look to see which files were changed by r49360 on the server, so that I can compare with the ones I checked out?

The file on my checkout and currently shown from:

http://svn.osgeo.org/grass/grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/nviz.py

has lines 31-33:

     import wxnviz
     # disable wxNviz for 6.4.2
     # TODO: backport wxNviz from devbr6 *after* releasing 6.4.2
     haveNviz = False

but this doesn't seem OK for my context. The problem is the failure at:

   errtype = CFUNCTYPE(UNCHECKED(c_int), String, c_int)
NameError: name 'UNCHECKED' is not defined

so the import wxnwiz fails, doesn't it? Is just setting haveNviz = False enough?

Roger

Roger

[snip]

File
"/home/rsb/topics/GRASS/G642RC2/grass-6.4.2svn/etc/wxpython/gui_modules/wxnviz.py",
line 58, in <module>
errtype = CFUNCTYPE(UNCHECKED(c_int), String, c_int)
NameError: name 'UNCHECKED' is not defined
GRASS 6.4.2svn (spearfish60):~/topics/GRASS/grass64_release >

Any ideas? Worth filing a bug? Is this wx, nviz, ctypes, none of them?

but at least grass starts with gui, although without wxnviz.

Markus M

--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand@nhh.no

Hi,

2011/11/28 Roger Bivand <Roger.Bivand@nhh.no>:

import wxnviz
# disable wxNviz for 6.4.2
# TODO: backport wxNviz from devbr6 *after* releasing 6.4.2
haveNviz = False

hopefully fixed in r49409. Martin

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

Roger wrote:

Where should I look to see which files were
changed by r49360 on the server, so that I can
compare with the ones I checked out?

the long way:
-------------

go to https://trac.osgeo.org/grass/browser/
or https://trac.osgeo.org/grass/ and click on the
"browse source" button on the top button bar.

follow on to grass/branches/releasebranch_6_4/

scroll down to the "> gui" row

(at this point I see Martin has checked in a fix for you one hour ago)

click on the "Rev" number for that row to get to comparative
diffs.

find the appropriate row for the change, click on the [Chgset]
number for it.

that shows you changes for that revision but only within
the gui/ dir:

https://trac.osgeo.org/grass/changeset/49409/grass/branches/releasebranch_6_4/gui

cut away the right end of the URL to see all changes of that revision.

https://trac.osgeo.org/grass/changeset/49409/

the short way:
--------------

https://trac.osgeo.org/grass/changeset/&lt;revision number>

the "Location:" line at the top shows that all changes are in fact
contained within the gui/wxpython/gui_modules/ dir in this case.

see also:
---------

in a dir: svn log --limit 10
to a file: svn blame main.c

Hamish

On Mon, 28 Nov 2011, Martin Landa wrote:

Hi,

2011/11/28 Roger Bivand <Roger.Bivand@nhh.no>:

import wxnviz
# disable wxNviz for 6.4.2
# TODO: backport wxNviz from devbr6 *after* releasing 6.4.2
haveNviz = False

hopefully fixed in r49409. Martin

Confirmed, thanks! Roger

PS. I also needed NumPy installed to avoid a warning, not caught by configure I think.

--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand@nhh.no