Opened 8 years ago

Closed 8 years ago

#3087 closed defect (worksforme)

db.droptable error

Reported by: clerici Owned by: grass-dev@…
Priority: normal Milestone: 7.0.6
Component: Database Version: 7.0.4
Keywords: db.droptable Cc:
CPU: Unspecified Platform: MSWindows 8

Description (last modified by martinl)

db.droptable -f table=roads_copy                                                
Forcing ...
Traceback (most recent call last):
  File "C:\Program Files\GRASS GIS
7.0.4/scripts/db.droptable.py", line 99, in <module>
    main()
  File "C:\Program Files\GRASS GIS
7.0.4/scripts/db.droptable.py", line 77, in main
    used = grass.db.db_table_in_vector(table)
  File "C:\Program Files\GRASS GIS
7.0.4\etc\python\grass\script\db.py", line 193, in
db_table_in_vector
    for f in vector_db(vect, stderr=nuldev).itervalues():
  File "C:\Program Files\GRASS GIS
7.0.4\etc\python\grass\script\vector.py", line 43, in
vector_db
    **args)
  File "C:\Program Files\GRASS GIS
7.0.4\etc\python\grass\script\core.py", line 446, in
read_command
    return handle_errors(returncode, stdout, args, kwargs)
  File "C:\Program Files\GRASS GIS
7.0.4\etc\python\grass\script\core.py", line 313, in
handle_errors
    returncode=returncode)
grass.exceptions.CalledModuleError: Module run None
['v.db.connect', '--q', '-g', 'map=pippopluto@user1',
'sep=;'] ended with error
Process ended with non-zero return code 1. See errors in the
(error) output.

Attachments (1)

grass_cmd_output.txt (1.3 KB ) - added by clerici 8 years ago.

Download all attachments as: .zip

Change History (6)

by clerici, 8 years ago

Attachment: grass_cmd_output.txt added

comment:1 by martinl, 8 years ago

Component: DefaultDatabase
Description: modified (diff)
Keywords: db.droptable added
Milestone: Website7.0.5

comment:2 by martinl, 8 years ago

Summary: v.db.droptable errordb.droptable error

comment:3 by neteler, 8 years ago

I have tried this on Linux:

grass73 ~/grassdata/nc_spm_08_grass7/user1/
g.copy vector=roadsmajor,roads_copy
db.droptable -f table=roads_copy

... works ok on Linux.

Can another user with MS-Windows please test (also with 7.04)?

comment:4 by neteler, 8 years ago

Milestone: 7.0.57.0.6

in reply to:  3 comment:5 by marisn, 8 years ago

Resolution: worksforme
Status: newclosed

Replying to neteler:

I have tried this on Linux:

grass73 ~/grassdata/nc_spm_08_grass7/user1/
g.copy vector=roadsmajor,roads_copy
db.droptable -f table=roads_copy

... works ok on Linux.

Can another user with MS-Windows please test (also with 7.04)?

Works just fine with 7.2.0 and 7.3. Reopen only if a failing example is provided.

GRASS versija: 7.3.svn                                                          
GRASS SVN revīzija: r70508                                                      
Būvējuma datums: 2017-01-09                                                     
Būvēšanas platforma: x86_64-w64-mingw32                                         
GDAL: 2.1.2                                                                     
PROJ.4: 4.9.3                                                                   
GEOS: 3.5.0                                                                     
SQLite: 3.14.1                                                                  
Python: 2.7.5                                                                   
wxPython: 2.8.12.1                                                              
Platforma: Windows-8-6.2.9200 (OSGeo4W)
GRASS versija: 7.2.0                                                            
GRASS SVN revīzija: r70156                                                      
Būvējuma datums: 2016-12-29                                                     
Būvēšanas platforma: x86_64-w64-mingw32
Note: See TracTickets for help on using tickets.