<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">Hi,<o:p></o:p></p>
<p class="MsoPlainText">Thanks for the suggestions.  I do have the paths set up.  Like I said I can only set these through Spyder and not in my path variables directly because I do not have admin privileges to my work machine, I am not sure if this causing
 problems or not.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">If you can give me an example of how you set up the GISRC that might be helpful because perhaps I don't have that set up properly. 
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I have run through the link you have sent several times already.  I was able to run all of the python example codes successfully, except the one for using pygrass.  I think would suggest that I don't have the path set up for the library
 set properly.  <o:p></o:p></p>
<p class="MsoPlainText">I also tried your suggestion about removing the path from the module name.  That gave me the exact same error so that is not the issue.
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Here is how I have the other paths set up.<o:p></o:p></p>
<p class="MsoPlainText"><img width="564" height="199" style="width:5.875in;height:2.0729in" id="Picture_x0020_1" src="cid:image001.png@01D66C8F.7C031BF0"><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">From: Moritz Lennert <mlennert@club.worldonline.be> <o:p>
</o:p></p>
<p class="MsoPlainText">Sent: Friday, August 7, 2020 5:54 AM<o:p></o:p></p>
<p class="MsoPlainText">To: grass-user@lists.osgeo.org; DAmico, Ellen <DAmico.Ellen@epa.gov>; GRASS user list <grass-user@lists.osgeo.org><o:p></o:p></p>
<p class="MsoPlainText">Subject: Re: [GRASS-user] Sqlite error when calling GRASS GIS outside of GRASS<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hi Ellen,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Am 6. August 2020 22:03:24 MESZ schrieb "DAmico, Ellen" <DAmico.Ellen@epa.gov>:<o:p></o:p></p>
<p class="MsoPlainText">>Good Afternoon,<o:p></o:p></p>
<p class="MsoPlainText">>I have been going around in circles with this error.<o:p></o:p></p>
<p class="MsoPlainText">>When I run this piece of code:<o:p></o:p></p>
<p class="MsoPlainText">>g.run_command(r'C:\OSGeo4W64\apps\grass\grass78\bin\g.proj.exe',<o:p></o:p></p>
<p class="MsoPlainText">>georef=geotiff, location = locationGeonet) I am getting this error:<o:p></o:p></p>
<p class="MsoPlainText">>Process ended with non-zero return code 3221225785. See errors in the<o:p></o:p></p>
<p class="MsoPlainText">>(error)<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">>When I run that g.proj.exe directly I get the dynamic link error.<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">>I think this is a conflict with the sqlite3.dll as is suggested the
<o:p></o:p></p>
<p class="MsoPlainText">>below wiki but the solutions there have not worked for me.<o:p></o:p></p>
<p class="MsoPlainText">>https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgrass<o:p></o:p></p>
<p class="MsoPlainText">>wiki.osgeo.org%2Fwiki%2FWinGRASS_errors&amp;data=02%7C01%7CDAmico.Ellen<o:p></o:p></p>
<p class="MsoPlainText">>%40epa.gov%7C92882cdd739146e8807d08d83ab7dae1%7C88b378b367484867acf976a<o:p></o:p></p>
<p class="MsoPlainText">>acbeca6a7%7C0%7C0%7C637323908615854246&amp;sdata=Prpxv0th3vqxwHUsdAX1jz<o:p></o:p></p>
<p class="MsoPlainText">>%2BntOjYb0bVZilg6X27Zgc%3D&amp;reserved=0<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">>I am wondering if it might have something to do with not having
<o:p></o:p></p>
<p class="MsoPlainText">>administrative rights to my machine.  I can access my path variables
<o:p></o:p></p>
<p class="MsoPlainText">>through Spyder/ Anaconda but not directly through the usual channels.<o:p></o:p></p>
<p class="MsoPlainText">>I am on a windows machine.<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">First of all, there are a series of variables you have to define before you can call a module without starting GRASS GIS explicitly. See [1] or use the exec parameter of the grass command.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Second, when using the functions in the grass scripting library (e.g. run_command), you should not provide a path, but just the module name, i.e.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">g.run_command('g.proj', georef=geotiff, location = locationGeonet)<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Moritz<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">[1] https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgrasswiki.osgeo.org%2Fwiki%2FWorking_with_GRASS_without_starting_it_explicitly&amp;data=02%7C01%7CDAmico.Ellen%40epa.gov%7C92882cdd739146e8807d08d83ab7dae1%7C88b378b367484867acf976aacbeca6a7%7C0%7C0%7C637323908615854246&amp;sdata=zV6q3w4yy8c7LjPe866SDikzTm4B3BlB%2BPnZLhaov9s%3D&amp;reserved=0<o:p></o:p></p>
</div>
</body>
</html>