[GRASS-dev] Re: [GRASS GIS] #1358: WinGRASS 6.4.1: SQLite driver errors: `Unable to open database'

GRASS GIS trac at osgeo.org
Mon Sep 19 04:35:40 EDT 2011


#1358: WinGRASS 6.4.1: SQLite driver errors: `Unable to open database'
-------------------------------------+--------------------------------------
 Reporter:  rvanderweide             |       Owner:  grass-dev@…              
     Type:  defect                   |      Status:  new                      
 Priority:  critical                 |   Milestone:  6.4.2                    
Component:  Database                 |     Version:  6.4.1 RCs                
 Keywords:  wingrass, SQLite driver  |    Platform:  MSWindows 7              
      Cpu:  x86-64                   |  
-------------------------------------+--------------------------------------

Comment(by mmetz):

 This is most probably a SQLite problem because the database is in the same
 folder like the shapefile to be imported. Files in this folder are opened
 by OGR, after that sqlite tries to create a new database in that folder
 but does not have exclusive rights on that folder because other files in
 that folder are opened.

 Related to that, the folder where the sqlite database is supposed to be
 stored must exist, the database file itself not necessarily, otherwise
 sqlite complains again.

 Try creating a new folder with nothing in it and then run
 {{{
 db.connect driver=sqlite database="c:\<name of new empty
 folder>\sqlite.db"
 }}}

 Markus M

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1358#comment:3>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list