<div dir="ltr"><br><br>On Tue, Oct 30, 2018 at 9:41 PM Rich Shepard <<a href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</a>> wrote:<br>><br>>    I started grass7.7.svn (r73623) and set db.connect to use driver=pg and<br>> database='willamette_river_hg'. Then I copied the vector files (g.copy<br>> vect=current_file,current_file_pg) per the migration instructions on the<br>> databaseintro manual page.<br>><br>>    Trying to run db.copy to add attribute tables to the database (except for<br>> one that is already present) using a script with commands like this:<br>><br>> db.copy from_driver=sqlite from_database='$HOME/data/grassdata/willamette_basin/mercury/sqlite/sqlite.db' from_table=all_species to_driver=pg to_database='willamette_river_hg' to_table=<a href="http://all_species.pg">all_species.pg</a><br>><br>> (on a single line)<br>><br>> this is the warning generated:<br>><br>> WARNING: Unable to open database<br>>           <$HOME/data/grassdata/willamette_basin/mercury/sqlite/sqlite.db><br>>           by driver <sqlite><br>> dbmi: Protocol error<br>><br>>    Yet, I can view the attribute table for the vector map within grass.<br>><br><div>>    Should I run db.connect to the sqlite database at the top of the script?</div><div><br></div><div>db.copy does not need db.connect. The reason for the error is that the variable $HOME is not expanded because it is within single quotes. Use double quotes instead of single quotes for the from_database argument and it should work.</div><div><br></div><div>Markus M<br></div>><br>> Rich<br>><br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></div>