[GRASS-user] v.db.connect.all - errors

Carlos Grohmann carlos.grohmann at gmail.com
Wed Apr 13 13:33:54 PDT 2016


Hi all

I just tried to change all the vector maps of one location from DBF to
SQLite, following this page:
https://grasswiki.osgeo.org/wiki/Convert_all_GRASS_6_vector_maps_to_GRASS_7

these are the steps:

# first rebuild topology for all vector maps in current mapset
v.build.all

# define new default DB connection (switch from DBF to SQLite)
db.connect -d

# transfer all attribute tables from DBF to SQLite and clean old DBF tables
v.db.reconnect.all -cd


steps 1 and 2 work fine, but #3 doesn't v.db.reconnect.all -c
dbmi: db_list_databases() not implemented
dbmi: db_list_databases() not implemented
ERROR: Unable to list databases. Try to define correct connection settings
       by db.login.
Traceback (most recent call last):
  File
"/usr/local/Cellar/grass-70/7.0.3/grass-7.0.3/scripts/v.db.reconnect.all",
line 260, in <module>
    sys.exit(main())
  File
"/usr/local/Cellar/grass-70/7.0.3/grass-7.0.3/scripts/v.db.reconnect.all",
line 188, in main
    create_db(new_driver, new_database)
  File
"/usr/local/Cellar/grass-70/7.0.3/grass-7.0.3/scripts/v.db.reconnect.all",
line 87, in create_db
    driver = driver).splitlines():
  File
"/usr/local/Cellar/grass-70/7.0.3/grass-7.0.3/etc/python/grass/script/core.py",
line 445, in read_command
    return handle_errors(returncode, stdout, args, kwargs)
  File
"/usr/local/Cellar/grass-70/7.0.3/grass-7.0.3/etc/python/grass/script/core.py",
line 312, in handle_errors
    returncode=returncode)
grass.exceptions.CalledModuleError: Module run None ['db.databases', '--q',
'driver=sqlite'] ended with error
Process ended with non-zero return code 1. See errors in the (error) output.



I'm running 7.0.3 installed via homebrew on Mac OSX


thanks

Carlos



-- 
Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil
- Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572
________________
Can’t stop the signal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160413/80e8fc19/attachment.html>


More information about the grass-user mailing list