<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error setting workspace : attribute not found in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331328#M11612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I was wondering if anybody else has experienced this. I'm unable to simply set the workspace (or scratchworkspace). The error I get (in PythonWin/Idle/Executing from Toolbox) is:&lt;BR /&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "C:\Projects\PythonScripts\Script34.py", line 13, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.workspace = "C:/Test"&lt;BR /&gt;AttributeError: Object: Environment &amp;lt;workspace&amp;gt; not found&lt;BR /&gt;&lt;BR /&gt;The python script is simple:&lt;BR /&gt;&lt;BR /&gt;import arcgisscripting&lt;BR /&gt;gp = arcgisscripting.create(9.3)&lt;BR /&gt;gp.workspace = "C:/Test"&lt;BR /&gt;&lt;BR /&gt;Things I've tried:&lt;BR /&gt;&lt;BR /&gt;- Various formats of the path based on ESRI doc&lt;BR /&gt;- Checking the versions of Pthon/PythonWin/Numby (and reinstalling several times)&lt;BR /&gt;- Running in safe mode&lt;BR /&gt;- Looking at event viewer for error&lt;BR /&gt;- Using procmon to see if something shows up there&lt;BR /&gt;- Setting the license level (per others in the forum with same issue)&lt;BR /&gt;- Creating the geoprocessor various ways from ESRI doc &lt;BR /&gt;&lt;BR /&gt;I'm really stuck ... any thoughts as to why this would happen would be MUCH appreciated. Most other properties and methods on the gp seem to work.&lt;BR /&gt;&lt;BR /&gt;Windows 7&lt;BR /&gt;ArcGIS Editor Single Use&lt;BR /&gt;9.3.1 SP2&lt;BR /&gt;&lt;BR /&gt;Jess&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you see workspace listed, if you do :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;gp.listenviroments()&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other wise what happens if you do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcgisscripting
gp = arcgisscripting.create(9.3)
gp.clearenviroment("workspace")
print gp.workspace
gp.workspace = "C:/Test"
print gp.workspace&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:41:12 GMT</pubDate>
    <dc:creator>FrankPerks</dc:creator>
    <dc:date>2021-12-11T15:41:12Z</dc:date>
    <item>
      <title>Error setting workspace : attribute not found</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331327#M11611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if anybody else has experienced this. I'm unable to simply set the workspace (or scratchworkspace). The error I get (in PythonWin/Idle/Executing from Toolbox) is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Projects\PythonScripts\Script34.py", line 13, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.workspace = "C:/Test"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: Object: Environment &amp;lt;workspace&amp;gt; not found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The python script is simple:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create(9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.workspace = "C:/Test"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Things I've tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Various formats of the path based on ESRI doc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Checking the versions of Pthon/PythonWin/Numby (and reinstalling several times)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Running in safe mode&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Looking at event viewer for error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Using procmon to see if something shows up there&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Setting the license level (per others in the forum with same issue)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Creating the geoprocessor various ways from ESRI doc &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm really stuck ... any thoughts as to why this would happen would be MUCH appreciated. Most other properties and methods on the gp seem to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Editor Single Use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9.3.1 SP2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jess&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 03:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331327#M11611</guid>
      <dc:creator>JessB</dc:creator>
      <dc:date>2010-11-11T03:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting workspace : attribute not found</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331328#M11612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I was wondering if anybody else has experienced this. I'm unable to simply set the workspace (or scratchworkspace). The error I get (in PythonWin/Idle/Executing from Toolbox) is:&lt;BR /&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "C:\Projects\PythonScripts\Script34.py", line 13, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.workspace = "C:/Test"&lt;BR /&gt;AttributeError: Object: Environment &amp;lt;workspace&amp;gt; not found&lt;BR /&gt;&lt;BR /&gt;The python script is simple:&lt;BR /&gt;&lt;BR /&gt;import arcgisscripting&lt;BR /&gt;gp = arcgisscripting.create(9.3)&lt;BR /&gt;gp.workspace = "C:/Test"&lt;BR /&gt;&lt;BR /&gt;Things I've tried:&lt;BR /&gt;&lt;BR /&gt;- Various formats of the path based on ESRI doc&lt;BR /&gt;- Checking the versions of Pthon/PythonWin/Numby (and reinstalling several times)&lt;BR /&gt;- Running in safe mode&lt;BR /&gt;- Looking at event viewer for error&lt;BR /&gt;- Using procmon to see if something shows up there&lt;BR /&gt;- Setting the license level (per others in the forum with same issue)&lt;BR /&gt;- Creating the geoprocessor various ways from ESRI doc &lt;BR /&gt;&lt;BR /&gt;I'm really stuck ... any thoughts as to why this would happen would be MUCH appreciated. Most other properties and methods on the gp seem to work.&lt;BR /&gt;&lt;BR /&gt;Windows 7&lt;BR /&gt;ArcGIS Editor Single Use&lt;BR /&gt;9.3.1 SP2&lt;BR /&gt;&lt;BR /&gt;Jess&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you see workspace listed, if you do :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;gp.listenviroments()&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other wise what happens if you do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcgisscripting
gp = arcgisscripting.create(9.3)
gp.clearenviroment("workspace")
print gp.workspace
gp.workspace = "C:/Test"
print gp.workspace&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331328#M11612</guid>
      <dc:creator>FrankPerks</dc:creator>
      <dc:date>2021-12-11T15:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting workspace : attribute not found</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331329#M11613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Listenvironments fails:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Projects\PythonScripts\Script34.py", line 4, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.listenviroments()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: Object: Tool or environment &amp;lt;listenviroments&amp;gt; not found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So does clearenvironments:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Projects\PythonScripts\Script34.py", line 3, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.clearenviroment("workspace")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: Object: Tool or environment &amp;lt;clearenviroment&amp;gt; not found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe another re-install?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 05:17:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331329#M11613</guid>
      <dc:creator>JessB</dc:creator>
      <dc:date>2010-11-12T05:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting workspace : attribute not found</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331330#M11614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1028&amp;amp;pid=980&amp;amp;topicname=ListEnvironments_method" rel="nofollow noopener noreferrer" target="_blank"&gt;http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1028&amp;amp;pid=980&amp;amp;topicname=ListEnvironments_method&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;case-sensitive (at least in 10.0)...consult the online help examples for syntax&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for 10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy
&amp;gt;&amp;gt;&amp;gt; arcpy.listenvironments()
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;interactive input&amp;gt;", line 1, in &amp;lt;module&amp;gt;
AttributeError: 'module' object has no attribute 'listenvironments'&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;fails but this works&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.ListEnvironments()
[u'newPrecision', u'autoCommit', u'XYResolution', u'XYDomain', u'scratchWorkspace', u'terrainMemoryUsage', u'MTolerance', u'compression', u'coincidentPoints', u'randomGenerator', u'outputCoordinateSystem', u'rasterStatistics', u'ZDomain', u'snapRaster', u'projectCompare', u'cartographicCoordinateSystem', u'configKeyword', u'outputZFlag', u'qualifiedFieldNames', u'tileSize', u'pyramid', u'referenceScale', u'extent', u'XYTolerance', u'tinSaveVersion', u'MDomain', u'spatialGrid1', u'cellSize', u'outputZValue', u'outputMFlag', u'geographicTransformations', u'spatialGrid2', u'ZResolution', u'mask', u'spatialGrid3', u'maintainSpatialIndex', u'workspace', u'MResolution', u'derivedPrecision', u'ZTolerance']&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:41:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331330#M11614</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T15:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting workspace : attribute not found</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331331#M11615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried with the correct syntax and still get the error ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisspcripting.create(9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;envs = gp.ListEnvironments("workspace")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yields:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: Object: Tool or environment &amp;lt;ListEnvironments&amp;gt; not found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This all works on other machines, just not on my Windows7 machine. Only thing that I've found (that's suspicious) is if I right click on ArcToolbox to get to the GP settings the form is blank.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 15:16:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331331#M11615</guid>
      <dc:creator>JessB</dc:creator>
      <dc:date>2010-11-12T15:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting workspace : attribute not found</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331332#M11616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;gp = arcgisspcripting.create(9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spelling of arcgisscripting...could you confirm that you didn't enter this in error&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 15:51:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331332#M11616</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2010-11-12T15:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting workspace : attribute not found</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331333#M11617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry ... replying to the forum on different machine with internet access and retyping by hand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is spelled correctly:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create(9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;envs = gp.ListEnvironments()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been able to call tools (RasterToPolygon, AddField, SearchCursor) ... it just seems like anything related to the environment or workspace isn't available ....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 16:18:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331333#M11617</guid>
      <dc:creator>JessB</dc:creator>
      <dc:date>2010-11-12T16:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting workspace : attribute not found</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331334#M11618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;gp.listenviroments()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;was not spelled correctly your previous link either, so if it isn't a typing thing and what you do works on other machines, then there is something wrong with your installation&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 17:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/error-setting-workspace-attribute-not-found/m-p/331334#M11618</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2010-11-12T17:10:43Z</dc:date>
    </item>
  </channel>
</rss>

