[GRASS-dev] [GRASS GIS] #1270: wingrass: Error in Attribute Table Manager

GRASS GIS trac at osgeo.org
Sun Mar 10 06:45:18 PDT 2013


#1270: wingrass: Error in Attribute Table Manager
-----------------------------------------------+----------------------------
 Reporter:  antonioall                         |       Owner:  grass-dev@…              
     Type:  defect                             |      Status:  new                      
 Priority:  blocker                            |   Milestone:  6.4.3                    
Component:  wxGUI                              |     Version:  svn-develbranch6         
 Keywords:  wingrass, attribute table manager  |    Platform:  MSWindows Vista          
      Cpu:  x86-32                             |  
-----------------------------------------------+----------------------------

Comment(by annakrat):

 Replying to [comment:18 hellik]:
 > Replying to [comment:3 hamish]:
 > >
 > > suspect the attribute manager is holding the temp file open..
 >
 >
 > the temp file is in C:\Users\xxxxxxx\AppData\Local\Temp, the file's
 content is the sql update command, e.g.
 >
 > {{{
 > UPDATE myhosp SET testc=2 WHERE cat=1;
 > }}}
 >
 > any idea how to close the temp file?

 According to the python doc, NamedTemporaryFile is automatically deleted
 after closing, that's why it's not closed in the code. I suggest using
 [http://docs.python.org/2/library/tempfile.html#tempfile.mkstemp
 tempfile.mkstemp] and use this [http://www.logilab.org/blogentry/17873
 advice].

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1270#comment:24>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list