[GRASS-dev] WinGrass65 + import gui_modules.nviz_tools as nviz_tools: ImportError

Helmut Kudrnovsky hellik at web.de
Sun Jun 20 13:02:33 EDT 2010


-----Ursprüngliche Nachricht-----
Von: Glynn Clements 
Gesendet: 20.06.2010 17:07:18
An: Helmut Kudrnovsky 
Betreff: Re: [GRASS-dev] WinGrass65 + import gui_modules.nviz_tools as nviz_tools: ImportError



>Windows won't let gcc open the file while Python has it open, but
>closing it will cause the file to be deleted.
>
>Try r42601.


Now there is compilation error:

GRASS GIS compilation log
-------------------------
Started compilation: Sun Jun 20 15:55:23 GMT 2010
--
Errors in:
/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes
--

syringia at NADA /c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes
$ make > error.log

make /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib
make[1]: Entering directory `/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
make[1]: `/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib' is up to date.
make[1]: Leaving directory `/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
make date.py grass.py raster.py gmath.py proj.py imagery.py vector.py display.py stats.py dbmi.py g3d.py arraystats.py cluster.py trans.py vedit.py ogsf.py nviz.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/date.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/grass.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/raster.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/gmath.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/proj.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/imagery.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/vector.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/display.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/stats.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/dbmi.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/g3d.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/arraystats.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/cluster.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/trans.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/vedit.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/ogsf.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/nviz.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/__init__.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/ctypes_preamble.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/ctypes_loader.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/date.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/grass.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/raster.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/gmath.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/proj.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/imagery.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/vector.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/display.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/stats.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/dbmi.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/g3d.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/arraystats.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/cluster.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/trans.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/vedit.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/ogsf.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/nviz.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/__init__.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/ctypes_preamble.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/ctypes_loader.pyc
make[1]: Entering directory `/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
GISRC=/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/demolocation/.grassrc70 GISBASE=c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32 PATH="/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/bin:$PATH" PYTHONPATH="c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python;$PYTHONPATH" PATH="/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/bin:/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/lib:/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/lib:.:/usr/local/bin:/mingw/bin:/bin:/osgeo4w/bin:/c/windows/system32:/c/windows:/c/windows/System32/Wbem:/c/Program Files/ATI Technologies/ATI.ACE/Core-Static:/c/Program Files/ActivIdentity/ActivClient/:/c/Program Files/Hewlett-Packard/IAM/bin:/c/Program Files/Common Files/Roxio Shared/DLLShared/:/c/Program Files/Common Files/Roxio Shared/10.0/DLLShared/:/c/windows/System32/WindowsPowerShell/v1.0/:/c/Program Files/TortoiseSVN/bin:/c/Program Files/QuickTime/QTSystem/:/bin" LC_ALL=C ./ctypesgen.py --cpp "gcc -E      -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include" -lgrass_datetime.7.0.svn  -lintl /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include/grass/datetime.h /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include/grass/P_datetime.h -o date.py
Status: Preprocessing c:\users\syringia\appdata\local\temp\tmpsvljww.h
Status: gcc -E -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include -U __GNUC__ -dD "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" c:\users\syringia\appdata\local\temp\tmpsvljww.h
Error: gcc -E -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include: In file included from c:\users\syringia\appdata\local\temp\tmpsvljww.h:1:

Error: gcc -E -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include: c:\osgeo4w\usr\src\grass_trunk\dist.i686-pc-mingw32\include\grass\datetime.h:28:30: grass/P_datetime.h: No such file or directory

make[1]: Leaving directory `/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'


Traceback (most recent call last):
 File "./ctypesgen.py", line 134, in <module>
 descriptions=ctypesgencore.parser.parse(options.headers,options)
 File "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\__init__.py", line 21, in parse
 parser.parse()
 File "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\datacollectingparser.py", line 69, in parse
 ctypesparser.CtypesParser.parse(self,fname,None)
 File "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\cparser.py", line 113, in parse
 self.preprocessor_parser.parse(filename)
 File "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\preprocessor.py", line 196, in parse
 token = self.lexer.token()
 File "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\preprocessor.py", line 51, in token
 result = lex.Lexer.token(self)
 File "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\lex.py", line 343, in token
 raise LexError, ("Scanning error. Illegal character '%s'" % (lexdata[lexpos]), lexdata[lexpos:])
ctypesgencore.parser.lex.LexError: Scanning error. Illegal character '#'
make[1]: *** [date.py] Error 1
make: *** [default] Error 2

Helmut
___________________________________________________________
GRATIS für alle WEB.DE Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de


More information about the grass-dev mailing list