[GRASS-dev] build error in wxpython (grass6_devel)

Hi All

tring to upgrade grass i had a build error on both osx and linux (debian)

this the build log from the debian machine running make in the wxpython directory :

http://www.geofemengineering.it/data/grass_build_log.txt

i it acommon problem or something goes wrong on my system ?
hope the log can help a bit.

thanks,
Massimo.

On Sun, Jul 4, 2010 at 10:43 PM, Massimo Di Stefano
<massimodisasha@gmail.com> wrote:

Hi All

tring to upgrade grass i had a build error on both osx and linux (debian)

this the build log from the debian machine running make in the wxpython directory :

http://www.geofemengineering.it/data/grass_build_log.txt

i it acommon problem or something goes wrong on my system ?
hope the log can help a bit.

Yes:

SyntaxError: ('invalid syntax',
('/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py',
2860, 2, '<<<<<<< .working\n'))

says that you have a patch error (guess you have local changes and
SVN didn't merge in properly updates from the server)

Try
svn status gui/wxpython/gui_modules/
to see what's going on there.

Markus

Hi Markus,

svn status gui/wxpython/gui_modules/

give me no outputs.

i tried to rebuild all the code doing :

cd /usr/local/src/gis/grass6_devel/
make distclean
rm -rf gui/
svn up
./configure ...
make

but the error persists :

make[1]: `/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_mapdisp.pyc' is up to date.
make[1]: `/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_preferences.pyc' is up to date.
make[1]: `/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz.pyc' is up to date.
python -m py_compile /usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py
SyntaxError: ('invalid syntax', ('/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py', 2860, 2, '<<<<<<< .working\n'))
make[1]: *** [/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.pyc] Error 1
make[1]: Leaving directory `/usr/local/src/gis/grass6_devel/gui/wxpython'
make: *** [install_scripts] Error 2

i opened the file

/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py

it show me at line 2860 : "<<<<<<< .working"

i deleted this line, then going ahead in the build process i got this log :

http://www.geofemengineering.it/data/log2.txt

Massimo.

Il giorno 04/lug/2010, alle ore 22.54, Markus Neteler ha scritto:

On Sun, Jul 4, 2010 at 10:43 PM, Massimo Di Stefano
<massimodisasha@gmail.com> wrote:

Hi All

tring to upgrade grass i had a build error on both osx and linux (debian)

this the build log from the debian machine running make in the wxpython directory :

http://www.geofemengineering.it/data/grass_build_log.txt

i it acommon problem or something goes wrong on my system ?
hope the log can help a bit.

Yes:

SyntaxError: ('invalid syntax',
('/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py',
2860, 2, '<<<<<<< .working\n'))

says that you have a patch error (guess you have local changes and
SVN didn't merge in properly updates from the server)

Try
svn status gui/wxpython/gui_modules/
to see what's going on there.

Markus

hi Massimo,

On Mon, Jul 5, 2010 at 1:45 AM, Massimo Di Stefano
<massimodisasha@gmail.com> wrote:

Hi Markus,

svn status gui/wxpython/gui_modules/

and
svn diff gui/wxpython/gui_modules/
?

In the worst caee, if you don't have own changes there

rm -rf gui/wxpython/gui_modules/
svn up gui/wxpython

SyntaxError: ('invalid syntax', ('/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py', 2860, 2, '<<<<<<< .working\n'))

apparently there is cruft in that file at your end.

Markus

Markus,

i don't know why this happens .. but it's weird
i already did :

rm -rf gui/wxpython/gui_modules/
svn up gui/wxpython

now i'm doing a new grass checkout from svn in a new devel directory.
tring to reconfigure and rebuild it.

i'm on debian sid derived distro (sidux)
using this configure instruction :

./configure
--with-tcltk-includes=/usr/include/tcl8.5/ \
--with-readline \
--with-sqlite \
--with-postgres \
--with-postgres-includes=/usr/include/postgresql/ \
--with-python \
--with-wxwidgets=/usr/bin/wx-config \
--with-odbc \
--with-geos \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2/ \
--with-cxx \
--with-blas \
--with-lapack \
--with-cairo \
--with-ffmpeg \
--with-ffmpeg-includes="/usr/local/include/libavformat/ /usr/local/include/libavcodec/ /usr/local/include/libavdevice/ /usr/local/include/libavutil/ /usr/local/include/libswscale/" \
--with-glw \
--with-motif \
--enable-largefile \
--enable-64bit

but again, a new checkout don't fix the problem,
opening the file :

gui_modules/nviz_tools.py

i deleted the "<<<<<<< .working'" part, then hit mke again, the build go ahead
bu ends with error :

make[2]: *** [OBJ.x86_64-unknown-linux-gnu/_grass6_wxnviz.so] Error 1
make[2]: Leaving directory `/usr/local/src/gis/grass65_devel/gui/wxpython/nviz'
make[1]: Leaving directory `/usr/local/src/gis/grass65_devel/gui/wxpython'

this erro is the same as in the previouse mail,the log is :

http://www.geofemengineering.it/data/log2.txt

thanks to investigate on that,
i can try to build on osx too, to see if the error can be replicated.

Il giorno 05/lug/2010, alle ore 08.34, Markus Neteler ha scritto:

hi Massimo,

On Mon, Jul 5, 2010 at 1:45 AM, Massimo Di Stefano
<massimodisasha@gmail.com> wrote:

Hi Markus,

svn status gui/wxpython/gui_modules/

and
svn diff gui/wxpython/gui_modules/
?

In the worst caee, if you don't have own changes there

rm -rf gui/wxpython/gui_modules/
svn up gui/wxpython

SyntaxError: ('invalid syntax', ('/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py', 2860, 2, '<<<<<<< .working\n'))

apparently there is cruft in that file at your end.

Markus

I tried on mac osx right now,
the build ends with the same error on mac too :

SyntaxError: ('invalid syntax', ('/Users/Shared/source/grass6_devel/dist.i386-apple-darwin10.4.0/etc/wxpython/gui_modules/nviz_tools.py', 2860, 2, '<<<<<<< .working\n'))
make[1]: *** [/Users/Shared/source/grass6_devel/dist.i386-apple-darwin10.4.0/etc/wxpython/gui_modules/nviz_tools.pyc] Error 1
make: *** [install_scripts] Error 2
MacBook-Pro-15-di-Massimo-Di-Stefano:wxpython sasha$

Massimo.

Il giorno 05/lug/2010, alle ore 09.38, Massimo Di Stefano ha scritto:

Markus,

i don't know why this happens .. but it's weird
i already did :

rm -rf gui/wxpython/gui_modules/
svn up gui/wxpython

now i'm doing a new grass checkout from svn in a new devel directory.
tring to reconfigure and rebuild it.

i'm on debian sid derived distro (sidux)
using this configure instruction :

./configure
--with-tcltk-includes=/usr/include/tcl8.5/ \
--with-readline \
--with-sqlite \
--with-postgres \
--with-postgres-includes=/usr/include/postgresql/ \
--with-python \
--with-wxwidgets=/usr/bin/wx-config \
--with-odbc \
--with-geos \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2/ \
--with-cxx \
--with-blas \
--with-lapack \
--with-cairo \
--with-ffmpeg \
--with-ffmpeg-includes="/usr/local/include/libavformat/ /usr/local/include/libavcodec/ /usr/local/include/libavdevice/ /usr/local/include/libavutil/ /usr/local/include/libswscale/" \
--with-glw \
--with-motif \
--enable-largefile \
--enable-64bit

but again, a new checkout don't fix the problem,
opening the file :

gui_modules/nviz_tools.py

i deleted the "<<<<<<< .working'" part, then hit mke again, the build go ahead
bu ends with error :

make[2]: *** [OBJ.x86_64-unknown-linux-gnu/_grass6_wxnviz.so] Error 1
make[2]: Leaving directory `/usr/local/src/gis/grass65_devel/gui/wxpython/nviz'
make[1]: Leaving directory `/usr/local/src/gis/grass65_devel/gui/wxpython'

this erro is the same as in the previouse mail,the log is :

http://www.geofemengineering.it/data/log2.txt

thanks to investigate on that,
i can try to build on osx too, to see if the error can be replicated.

Il giorno 05/lug/2010, alle ore 08.34, Markus Neteler ha scritto:

hi Massimo,

On Mon, Jul 5, 2010 at 1:45 AM, Massimo Di Stefano
<massimodisasha@gmail.com> wrote:

Hi Markus,

svn status gui/wxpython/gui_modules/

and
svn diff gui/wxpython/gui_modules/
?

In the worst caee, if you don't have own changes there

rm -rf gui/wxpython/gui_modules/
svn up gui/wxpython

SyntaxError: ('invalid syntax', ('/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py', 2860, 2, '<<<<<<< .working\n'))

apparently there is cruft in that file at your end.

Markus

Hi Markus,

On Mon, 05. Jul 2010 at 08:34:36 +0200, Markus Neteler wrote:

> SyntaxError: ('invalid syntax', ('/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py', 2860, 2, '<<<<<<< .working\n'))

apparently there is cruft in that file at your end.

Nope, http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py#L2860

Jürgen

--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de

--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

Massimo wrote:

I tried on mac osx right now,
the build ends with the same error on mac too :

SyntaxError: ('invalid syntax',
('/Users/Shared/source/grass6_devel/dist.i386-apple-darwin10.4.0/etc/wxpython/gui_modules/nviz_tools.py',
2860, 2, '<<<<<<< .working\n'))
make[1]: ***
[/Users/Shared/source/grass6_devel/dist.i386-apple-darwin10.4.0/etc/wxpython/gui_modules/nviz_tools.pyc]
Error 1
make: *** [install_scripts] Error 2
MacBook-Pro-15-di-Massimo-Di-Stefano:wxpython sasha$

the cruft was in the svn repo. removed in r42703.

it happens. try again :slight_smile:

Hamish

Thanks to All :slight_smile:

wxpython build fine.

the error is only on nviz,
i attached a log just to report it (maybe usefull to debug),
i don't need nviz right now,

http://www.geofemengineering.it/data/grass_nviz_build_log.txt

i know there are a lot of work in progress in the nviz code,
thanks Martin!!!! and All Dev team of course :wink:

Il giorno 05/lug/2010, alle ore 10.32, Hamish ha scritto:

Massimo wrote:

I tried on mac osx right now,
the build ends with the same error on mac too :

SyntaxError: ('invalid syntax',
('/Users/Shared/source/grass6_devel/dist.i386-apple-darwin10.4.0/etc/wxpython/gui_modules/nviz_tools.py',
2860, 2, '<<<<<<< .working\n'))
make[1]: ***
[/Users/Shared/source/grass6_devel/dist.i386-apple-darwin10.4.0/etc/wxpython/gui_modules/nviz_tools.pyc]
Error 1
make: *** [install_scripts] Error 2
MacBook-Pro-15-di-Massimo-Di-Stefano:wxpython sasha$

the cruft was in the svn repo. removed in r42703.

it happens. try again :slight_smile:

Hamish

Hi Jürgen,

On Mon, Jul 5, 2010 at 10:20 AM, Jürgen E. <jef@norbit.de> wrote:

Hi Markus,

On Mon, 05. Jul 2010 at 08:34:36 +0200, Markus Neteler wrote:

> SyntaxError: ('invalid syntax', ('/usr/local/src/gis/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py', 2860, 2, '<<<<<<< .working\n'))

apparently there is cruft in that file at your end.

Nope, http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_tools.py#L2860

"at your end" - with that I meant at Massimo's end. But now I realize that
I have the same problem, ha.

SyntaxError: ('invalid syntax',
('/home/neteler/grass65/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.py',
2860, 2, '<<<<<<< .working\n'))
make[1]: *** [/home/neteler/grass65/dist.x86_64-unknown-linux-gnu/etc/wxpython/gui_modules/nviz_tools.pyc]
Error 1
make[1]: Leaving directory `/home/neteler/grass65/gui/wxpython'
make: *** [install_scripts] Error 2

Hamish was a second faster to fix it in SVN.

Massimo: now it should be fine...

Markus

Hi,

2010/7/5 Massimo Di Stefano <massimodisasha@gmail.com>:

wxpython build fine.

the error is only on nviz,
i attached a log just to report it (maybe usefull to debug),
i don't need nviz right now,

http://www.geofemengineering.it/data/grass_nviz_build_log.txt

i know there are a lot of work in progress in the nviz code,
thanks Martin!!!! and All Dev team of course :wink:

please ignore these errors, wxNviz is still broken in develbranch_6.
The C++ component will be replaced by python module wxnviz.py. It
requires to backport ctypes interface from trunk.

Martin

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