<?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: Could someone please explain this python failure message to me? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716730#M55550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ellen, you should contact the developers of the software. I'm sure they will be able to help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 04:39:59 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2015-10-29T04:39:59Z</dc:date>
    <item>
      <title>Could someone please explain this python failure message to me?</title>
      <link>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716725#M55545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Traceback (most recent call last): File "C:\Users\Ellen\Documents\ArcGIS\laharz_py_example\laharz_py_example\laharz_py\distal_inundation.py", line 1621, in &amp;lt;module&amp;gt; main(argv[1], argv[2], argv[3], argv[4], argv[5], argv[6]) File "C:\Users\Ellen\Documents\ArcGIS\laharz_py_example\laharz_py_example\laharz_py\distal_inundation.py", line 1319, in main planvals,B = CalcCrossSection(sectn,currFlowDir,currRow,currCol,planvals,xsectAreaList,B) File "C:\Users\Ellen\Documents\ArcGIS\laharz_py_example\laharz_py_example\laharz_py\distal_inundation.py", line 771, in CalcCrossSection cellleftelev = A[cellleftx,celllefty] UnboundLocalError: local variable 'cellleftx' referenced before assignment Failed to execute (laharzdistalzones.py). Failed at Mon Oct 05 01:05:08 2015 (Elapsed Time: 1 hours 38 minutes 32 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run the Laharz_py program and keep on receiving this error message when trying to run the models. I know next to nothing about python scripting. Would anyone please be able to explain, (preferably in layman's terms, I really am clueless,) what this means and how I might fix it. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 00:32:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716725#M55545</guid>
      <dc:creator>EllenWildig</dc:creator>
      <dc:date>2015-10-05T00:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone please explain this python failure message to me?</title>
      <link>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716726#M55546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Ellen Wildig:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UnboundLocalError: local variable 'cellleftx' referenced before assignment &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi Ellen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error suggests that the tool is trying to use a value from a variable that hasn't been created yet in the script - i.e. it's trying to use a value that it doesn't know about yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without seeing the actual python script it will be difficult to suggest a solution, or what is causing the issue.&amp;nbsp; It may have expected some kind of input when you ran the model, and may be failing if it didn't get the required input values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 00:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716726#M55546</guid>
      <dc:creator>MikeLouwrens</dc:creator>
      <dc:date>2015-10-05T00:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone please explain this python failure message to me?</title>
      <link>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716727#M55547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Mike said, we would have to see the script, are you able to post a copy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 12:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716727#M55547</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-10-05T12:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone please explain this python failure message to me?</title>
      <link>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716728#M55548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ellen, you can following the instructions &lt;A href="https://community.esri.com/migration-blogpost/1070"&gt;Posting Code blocks in the new GeoNet&lt;/A&gt;​ or attach the .py file so others can take a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Mike mentioned, it sounds like a variable is not being defined. Since you are not familiar with Python, I'm assuming that you are just trying to run the script, possibly at a command window?&amp;nbsp; Or is it in a toolbox/button? Or model builder (looks like a graphic-flow chart).&amp;nbsp; Depending on how you are running the command could also control how/where the missing variable is created and/or assigned a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tthere are many here willing to help....just more info is needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 14:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716728#M55548</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-10-05T14:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone please explain this python failure message to me?</title>
      <link>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716729#M55549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you by chance move one of you input model parameters around?&amp;nbsp; Perhaps to reorganize it so it "looked better"?&amp;nbsp; If so, you may have moved one of the parameters out of order.&amp;nbsp; Check your&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/changing-model-parameter-order.htm"&gt; model's parameter order&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:54:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716729#M55549</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-05T16:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone please explain this python failure message to me?</title>
      <link>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716730#M55550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ellen, you should contact the developers of the software. I'm sure they will be able to help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 04:39:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716730#M55550</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2015-10-29T04:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone please explain this python failure message to me?</title>
      <link>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716731#M55551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for the help. Found the solution to it. Basically I was being dim, my digital elevation model didn't extend far enough for the the high volume inputs. That was the missing input value. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2015 14:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716731#M55551</guid>
      <dc:creator>EllenWildig</dc:creator>
      <dc:date>2015-11-08T14:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone please explain this python failure message to me?</title>
      <link>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716732#M55552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ellen, it's good you were able to resolve your issue.&amp;nbsp; Just for my understanding of your solution, are you saying that your &lt;EM&gt;extent&lt;/EM&gt; for your DEM wasn't large enough, that is, it didn't overlap the extent area if the other inputs fully? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, don't forget to mark any of the comments that were helpful to you, and you answer as correct so the question can be closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2015 14:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716732#M55552</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-11-08T14:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone please explain this python failure message to me?</title>
      <link>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716733#M55553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes exactly that. Once the volume of the input lahar was high enough the modeled output extended farther than DEM in place and the model would fail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2015 16:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/could-someone-please-explain-this-python-failure/m-p/716733#M55553</guid>
      <dc:creator>EllenWildig</dc:creator>
      <dc:date>2015-11-08T16:36:26Z</dc:date>
    </item>
  </channel>
</rss>

