Opened 5 years ago
Closed 5 years ago
#4022 closed defect (fixed)
impossible to remove vect and delete attribute from gui
Reported by: | 1266 | Owned by: | |
---|---|---|---|
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 , 5 years ago
comment:2 by , 5 years ago
Component: | Default → Python |
---|---|
Keywords: | Py3 Python 3 added |
Version: | unspecified → git-releasebranch78 |
follow-up: 6 comment:5 by , 5 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?
comment:6 by , 5 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.
Confirmed with the latest winGRASS master daily builds