<?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: Cherrypy with arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/47#M10</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you've changed servers - is the output location still the same and a valid location?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2017 10:54:31 GMT</pubDate>
    <dc:creator>FC_Basson</dc:creator>
    <dc:date>2017-01-19T10:54:31Z</dc:date>
    <item>
      <title>Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/42#M5</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;Currently i'm developing an API that do some basic calculation (polygon area ... ) using arcpy. I'm using bottle.py with cherrypy as webserver.&lt;/P&gt;&lt;P&gt;At first i used the WSGIRef (default webserver of bottle.py, single-thread) and everything is fine but after switching to cherrypy (multi-threaed webserver), my code suddenly went down, look closely in to my source code it fail in these line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = OutputLocation&lt;/P&gt;&lt;P&gt;Have someone ever facing this problem before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/42#M5</guid>
      <dc:creator>Thanh_NgocDao</dc:creator>
      <dc:date>2017-01-19T10:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/43#M6</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the cellSize line needs to refer to a cellsize value and not the raster. &amp;nbsp;So you need to get the raster properties first to get the Elevation_Raster cellsize&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;cs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetRasterProperties_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Elevation_Raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"CELLSIZEX"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;cellSize &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; cs&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getOutput&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 19:52:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/43#M6</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-10T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/44#M7</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even though i remove that line, it still produce the same error on: arcpy.env.workspace = OutputLocation . That error never happen when i use old webserver. Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/44#M7</guid>
      <dc:creator>Thanh_NgocDao</dc:creator>
      <dc:date>2017-01-19T10:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/45#M8</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure the output location format is correct - see &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;‌'s blog&amp;nbsp;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/filenames-and-file-paths-in-python"&gt;/blogs/dan_patterson/2016/08/14/filenames-and-file-paths-in-python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/45#M8</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2017-01-19T10:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/46#M9</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's correct Mr.Basson, because this code run fine with WSGIRef webserver, but can't work with cherrypy, i also print the output location and it still correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/46#M9</guid>
      <dc:creator>Thanh_NgocDao</dc:creator>
      <dc:date>2017-01-19T10:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/47#M10</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you've changed servers - is the output location still the same and a valid location?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/47#M10</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2017-01-19T10:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/48#M11</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does ... &amp;nbsp; &amp;nbsp;import arcpy &amp;nbsp;.... work? &amp;nbsp;If it doesn't, the location of arcmap and hence arcpy is unknown... if it does, do as &lt;A href="https://community.esri.com/people/fcbassongis"&gt;fcbassongis&lt;/A&gt;‌ says&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/48#M11</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-01-19T10:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/49#M12</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the import arcpy work Mr.Patterson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 11:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/49#M12</guid>
      <dc:creator>Thanh_NgocDao</dc:creator>
      <dc:date>2017-01-19T11:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/50#M13</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good... now can you get a list of files in the folder/workspace?&amp;nbsp; or examine the contents of a featureclass (ie ListFeatureClasses would be useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 12:38:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/50#M13</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-01-19T12:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/51#M14</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact it raise the error at that step and the error is: AttributeError: ERROR 87934 ... As i know usually AttributeError is raised because there is no that attribute (env or workspace)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 01:54:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/51#M14</guid>
      <dc:creator>Thanh_NgocDao</dc:creator>
      <dc:date>2017-01-20T01:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/52#M15</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's still the same and valid Mr.Basson. In fact it raise the error at that step and the error is: AttributeError: ERROR 87934 ... As i know usually AttributeError is raised because there is no that attribute (env or workspace)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 02:01:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/52#M15</guid>
      <dc:creator>Thanh_NgocDao</dc:creator>
      <dc:date>2017-01-20T02:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/53#M16</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so, to summarize,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;arcpy imports fine, so arcpy can be seen&lt;/LI&gt;&lt;LI&gt;you say that the workspace if fine (correct?) but arcpy says otherwise...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;then according to arcpy, it is not a valid workspace, so proceeding on to the next logical step of trying to query a folder or a geodatabase in the workspace isn't possible until that step is resolved. &amp;nbsp;Does that pretty well summarize the state so far?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS it wouldn't be one of those network induced absolute vs relative path issues would it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 03:08:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/53#M16</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-01-20T03:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/54#M17</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry if my comment is not clear. Here is the situation:&lt;/P&gt;&lt;P&gt;+ &lt;STRONG&gt;Arcpy import fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;+ &lt;STRONG&gt;arcpy.env.workspace = OutputLocation&lt;/STRONG&gt; raise AttributeError, after a few search on Google somebody say that AttributeError occurs because that attribute is not exist (i mean there is no &lt;STRONG&gt;workspace&lt;/STRONG&gt; attribute in &lt;STRONG&gt;env&lt;/STRONG&gt; or there is no &lt;STRONG&gt;env&lt;/STRONG&gt; attribute in &lt;STRONG&gt;arcpy&lt;/STRONG&gt;). But the weird thing is that this code run fine if i use the &lt;STRONG&gt;WSGIRef&lt;/STRONG&gt; webserver (&lt;STRONG&gt;single thread&lt;/STRONG&gt; webserver) or run it as &lt;STRONG&gt;stand-alone script&lt;/STRONG&gt; but after switching to &lt;STRONG&gt;Cherrypy&lt;/STRONG&gt; webserver (&lt;STRONG&gt;multi-thread&lt;/STRONG&gt;) my code does not work anymore and the stack trace point to this line: &lt;STRONG&gt;arcpy.env.workspace = OutputLocation&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have tried on both relative path and absolute path but it does not help.&lt;/P&gt;&lt;P&gt;P/S: There is an topic state that Arcpy does not compatible with multi-thread webserver, is it true ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 03:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/54#M17</guid>
      <dc:creator>Thanh_NgocDao</dc:creator>
      <dc:date>2017-01-20T03:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/55#M18</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That thread would be a useful addition to the discussion... why don't you post the link. &amp;nbsp;If it was found to be an issue or stated as one... good chance it isn't compatible or you need python 3.x or PRO or background processing installed. &amp;nbsp;could be any combination of factors&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 05:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/55#M18</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-01-20T05:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cherrypy with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/56#M19</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the thread i found:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/99374"&gt;https://community.esri.com/thread/99374&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently i use Arcgis PRO with Python 3 but that error happen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 06:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cherrypy-with-arcpy/m-p/56#M19</guid>
      <dc:creator>Thanh_NgocDao</dc:creator>
      <dc:date>2017-01-20T06:35:23Z</dc:date>
    </item>
  </channel>
</rss>

