[GRASS-dev] [GRASS GIS] #932: Wingrass7 - ImportError: No module named grass - Fix PYTHONPATH?

GRASS GIS trac at osgeo.org
Sat Feb 13 18:02:29 EST 2010


#932: Wingrass7  - ImportError: No module named grass - Fix PYTHONPATH?
---------------------+------------------------------------------------------
 Reporter:  hellik   |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect   |      Status:  new                      
 Priority:  normal   |   Milestone:  7.0.0                    
Component:  default  |     Version:  svn-trunk                
 Keywords:           |    Platform:  MSWindows Vista          
      Cpu:  x86-32   |  
---------------------+------------------------------------------------------
 self compild grass7 in the osgeo4w-stack

 if i want to start for example
 ''v.db.addcolumn'' from the wx-table-manager, there is following error:

 {{{
 Traceback (most recent call last):
 File "C:\osgeo4w\usr\src\grass_trunk\dist.i686-pc-
 mingw32\v.db.addcolumn.py", line 52, in <module> import grass.script as
 grass
 ImportError: No module named grass.script
 }}}

 in the wiki
 (http://trac.osgeo.org/grass/wiki/CompileOnWindows#Troubleshooting) there
 are a few hints for troubleshooting, so also for

 {{{
 scripts/*[[BR]]
 ImportError: No module named grass[[BR]]
 Fix PYTHONPATH  to *nix-style (eg. PYTHONPATH=/osego4w/apps/Python25)
 }}}

 so if i change this in c:\osgeo4w\etc\ini\msys.bat
 (following
 http://trac.osgeo.org/grass/wiki/CompileOnWindows#Grass-7.0.svntrunk),
 then v.db.addcolumn works.

 so where should this change integrated directly in source for working
 wingrass7 out of the box?

 Helmut

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/932>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list