Opened 4 years ago

Closed 4 years ago

#4022 closed defect (fixed)

impossible to remove vect and delete attribute from gui

Reported by: 1266 Owned by: grass-dev@…
Priority: normal Milestone:
Component: Python Version: git-releasebranch78
Keywords: Py3, Python 3 Cc:
CPU: Unspecified Platform: Linux

Description

I cannot remove vector object and/or attribute data from the right-clic menu on attribute box in the gui (delete selected records/features) with grass 7.8 or 7.9 (on debian buster with 'fr' or 'en' locale)

But "v.edit tool=delete map=mymap where="mycolum=myvalue" and db.execute "sql=DELETE FROM mymap WHERE mycolomn = myvalue" work fine.

console return : Traceback (most recent call last):

File "/usr/local/grass78/gui/wxpython/dbmgr/base.py", line

1997, in OnDeleteSelected

if self.OnDataItemDelete(None) and self.mapdisplay:

File "/usr/local/grass78/gui/wxpython/dbmgr/base.py", line

1748, in OnDataItemDelete

self.ApplyCommands(self.listOfCommands, self.listOfSQLStatements)

File "/usr/local/grass78/gui/wxpython/dbmgr/base.py", line

982, in ApplyCommands

sqlFile.write(sql.encode('utf-8') + ';') TypeError : can't concat str to bytes

Change History (7)

comment:1 by hellik, 4 years ago

Confirmed with the latest winGRASS master daily builds

comment:2 by hellik, 4 years ago

Component: DefaultPython
Keywords: Py3 Python 3 added
Version: unspecifiedgit-releasebranch78

comment:4 by annakrat, 4 years ago

Changes are now in master available for testing.

comment:5 by hellik, 4 years ago

tested with

GRASS Version: 7.9.dev                                                          
Code revision: ac8bd2777                                                        
Build date: 2020-01-20                                                          
Build platform: x86_64-w64-mingw32                                              
GDAL: 3.0.4                                                                     
PROJ: 6.3.1                                                                     
GEOS: 3.8.0                                                                     
SQLite: 3.29.0                                                                  
Python: 3.7.0                                                                   
wxPython: 4.0.7                                                                 
Platform: Windows-10-10.0.18362-SP0 (OSGeo4W)   

seems to work.

closing ticket?

in reply to:  5 comment:6 by hellik, 4 years ago

Replying to hellik:

tested with

GRASS Version: 7.9.dev                                                          
Code revision: ac8bd2777                                                        
Build date: 2020-01-20                                                          
Build platform: x86_64-w64-mingw32                                              
GDAL: 3.0.4                                                                     
PROJ: 6.3.1                                                                     
GEOS: 3.8.0                                                                     
SQLite: 3.29.0                                                                  
Python: 3.7.0                                                                   
wxPython: 4.0.7                                                                 
Platform: Windows-10-10.0.18362-SP0 (OSGeo4W)   

seems to work.

closing ticket?

backporting before closing.

comment:7 by annakrat, 4 years ago

Resolution: fixed
Status: newclosed

Merged to 78.

Note: See TracTickets for help on using tickets.