[GRASS-dev] [GRASS GIS] #2525: Unable to open sqlite database if path contains non-latin letters

GRASS GIS trac at osgeo.org
Sat Jan 3 03:41:40 PST 2015


#2525: Unable to open sqlite database if path contains non-latin letters
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  major        |   Milestone:  7.0.0                    
Component:  wxGUI        |     Version:  svn-releasebranch70      
 Keywords:               |    Platform:  MSWindows Vista          
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 Seems that any operation touching attribute database fails if path
 contains non-latin letter.
 It is a single instance of a general problem of passing file names as
 arguments between GUI and modules.
 Output in CMD window:
 {{{
 GRASS_INFO_WARNING(5668,2): Unable open database
 <C:\Users\Māris\Documents\grass
 data\nc_basic_spm_grass7\PERMANENT\sqlite\sqlite.db> by driver <sqlite>
 GRASS_INFO_END(5668,2)
 }}}

 One of outputs in wxGUI command console:
 {{{
 Exception in thread Thread-26:
 Traceback (most recent call last):
   File "C:\Program Files\GRASS GIS
 7.0.0svn\Python27\lib\threading.py", line 810, in
 __bootstrap_inner
     self.run()
   File "C:\Program Files\GRASS GIS
 7.0.0svn\gui\wxpython\gui_core\forms.py", line 374, in run
     self.resultQ.put((requestId, self.request.run()))
   File "C:\Program Files\GRASS GIS
 7.0.0svn\gui\wxpython\gui_core\forms.py", line 289, in run
     cparams[map]['dbInfo'] = gselect.VectorDBInfo(map)
   File "C:\Program Files\GRASS GIS
 7.0.0svn\gui\wxpython\gui_core\gselect.py", line 743, in
 __init__
     self._DescribeTables() # -> self.tables
   File "C:\Program Files\GRASS GIS
 7.0.0svn\gui\wxpython\gui_core\gselect.py", line 770, in
 _DescribeTables
     database = self.layers[layer]["database"])['cols']:
   File "C:\Program Files\GRASS GIS
 7.0.0svn\etc\python\grass\script\db.py", line 43, in
 db_describe
     s = read_command('db.describe', flags='c', table=table,
 **args)
   File "C:\Program Files\GRASS GIS
 7.0.0svn\etc\python\grass\script\core.py", line 425, in
 read_command
     return handle_errors(returncode, stdout, args, kwargs)
   File "C:\Program Files\GRASS GIS
 7.0.0svn\etc\python\grass\script\core.py", line 308, in
 handle_errors
     returncode=returncode)
 CalledModuleError: Module run None ['db.describe', '-c',
 'table=census', 'driver=sqlite', 'database=C:\\Users\\M\xe2r
 is\\Documents\\grassdata\\nc_basic_spm_grass7\\PERMANENT\\sq
 lite\\sqlite.db'] ended with error
 Process ended with non-zero return code 1. See errors in the
 (error) output.
 }}}

 GRASS version: 7.0.0svn
 GRASS SVN Revision: 63925
 Build Date: 2015-01-02
 Build Platform: i686-pc-mingw32
 GDAL/OGR: 1.11.1
 PROJ.4: 4.8.0
 GEOS: 3.4.2
 SQLite: 3.7.17
 Python: 2.7.4
 wxPython: 2.8.12.1
 Platform: Windows-Vista-6.0.6002-SP2

 Note: could CommandLineToArgvW be helpful?

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



More information about the grass-dev mailing list