<?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: Script works in ArcMap but not Pyscripter in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679352#M52642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thought I'd provide an update. I was able to get remote desktop access to a pc at work and then tested the script from a pc that has 10.5 installed on it and the script executed correctly. So it seems there's something going on the citrix server regarding 10.2 (which I'm told by our IT has been decommissioned). Anyway, they're looking into the 10.2 thing on the citrix server and it seems to me that issue is external to my script.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2020 22:12:43 GMT</pubDate>
    <dc:creator>ChrisHolmes</dc:creator>
    <dc:date>2020-04-21T22:12:43Z</dc:date>
    <item>
      <title>Script works in ArcMap but not Pyscripter</title>
      <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679345#M52635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I find myself in a situation where I have a script which goes through a mdx (or series of mdx's in a folder(s)) repairing broken links. It works fine from ArcMap as a script tool, but we are thinking it may be better to run it from outside ArcMap (as it can be rather time consuming) as a python script. I'm trying to run it using pyscripter and am getting an error early on. Here is the code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; Engine2 &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; eng
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; ConfigParser

config &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ConfigParser&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;RawConfigParser&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
configpath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'X:\Development\ChrisH\BrokenLinks\Config\BrokenLinks.config'&lt;/SPAN&gt;
config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;read&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;configpath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    mxdToCheck &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'data'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'mxdToReview'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    planningDataPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'data'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'planningDataPath'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    gdbSearchPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'data'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'gdbSearchPath'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    mxdFolder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'data'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'mxdFolder'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxdToCheck&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        brokenList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; eng&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetBrokenLinks1&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxdToCheck&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;GetBrokenLinks1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxdIn&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;#Get a list of broken layers in the passed in mxd&lt;/SPAN&gt;
    mxd &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MapDocument&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxdIn&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    brknList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListBrokenDataSources&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; brknList
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error occurs at line 21. Here is the error message:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; File "X:\Development\ChrisH\BrokenLinks\Scripts\links.py", line 185, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if __name__ == '__main__': main()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; File "X:\Development\ChrisH\BrokenLinks\Scripts\links.py", line 41, in main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; brokenList = eng.GetBrokenLinks1(mxdToCheck)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; File "X:\Development\ChrisH\BrokenLinks\Scripts\Engine2.py", line 33, in GetBrokenLinks1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; brknList = arcpy.mapping.ListBrokenDataSources(mxd)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\utils.py", line 181, in fn_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return fn(*args, **kw)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\mapping.py", line 1465, in ListBrokenDataSources&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = mixins.MapDocumentMixin(map_document_or_layer).listBrokenDataSources()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\arcobjects\mixins.py", line 832, in listBrokenDataSources&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; broken_sources = [l for l in self.layers if not l._arc_object.valid]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\arcobjects\mixins.py", line 683, in layers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for frame in reversed(self.dataFrames):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\arcobjects\mixins.py", line 695, in dataFrames&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return map(convertArcObjectToPythonObject, self.pageLayout.dataFrames)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;AttributeError: 'NoneType' object has no attribute 'dataFrames'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks everyone&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679345#M52635</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2021-12-12T04:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script works in ArcMap but not Pyscripter</title>
      <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679346#M52636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you want the main def to run when the script runs?&lt;/P&gt;&lt;P&gt;put these lines at the end of your script&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"__main__"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="string token"&gt;"""optional location for parameters"""&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;# optional controls here&lt;/SPAN&gt;
    main&lt;SPAN class="punctuation token"&gt;(&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;/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>Sun, 12 Dec 2021 04:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679346#M52636</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T04:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script works in ArcMap but not Pyscripter</title>
      <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679347#M52637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Dan, I forgot to include that at the bottom of the file is:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; main&lt;SPAN class="punctuation token"&gt;(&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2020 17:50:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679347#M52637</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2020-04-13T17:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script works in ArcMap but not Pyscripter</title>
      <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679348#M52638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Chris, you will have to throw in some print statements to see what is going on and where it fails.&lt;/P&gt;&lt;P&gt;I also notice that this is arcmap 10.2?&amp;nbsp; (was pandas supported then?)&lt;/P&gt;&lt;P&gt;If your script is residing in a folder, it may need to know where the mxd is located, since scripts that work within the python console in map/Pro have it as a reference point&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2020 17:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679348#M52638</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-04-13T17:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script works in ArcMap but not Pyscripter</title>
      <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679349#M52639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;The beginning of the script uses ConfigParser to get the name of the mxd to process. In this case the value in the config file is:&lt;/P&gt;&lt;P&gt;mxdToReview = \\coc\lupp\ops\Data\policy_plan_amalgamation\asp_data_gatherer_copycopy.mxd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not notice that the error message is referencing version 10.2, I am working in citrix and use Arcmap 10.5 in citrix, but the citrix server likely has 10.2 on it also. So when I open the .py files in pyscripter and run them somehow it's using 10.2? Not sure if that has anything to do with it. I will inquire with our IT.&lt;/P&gt;&lt;P&gt;It seems that the error occurs when it gets to:&amp;nbsp;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;brknList = arcpy.mapping.ListBrokenDataSources(mxd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I wouldn't imagine there's any difference between between 10.2 and 10.5 for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing that out. I'm going to look into it some more. Always fun when it works in arcmap but not outside...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2020 18:18:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679349#M52639</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2020-04-13T18:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script works in ArcMap but not Pyscripter</title>
      <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679350#M52640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mention too many things that cause issues.&lt;/P&gt;&lt;P&gt;Can you work with the data on a local machine with locally installed software?&amp;nbsp;&lt;/P&gt;&lt;P&gt;That would rule out the version issues and file location issues for a start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2020 18:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679350#M52640</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-04-13T18:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script works in ArcMap but not Pyscripter</title>
      <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679351#M52641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya, I can do that as a test. thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2020 18:31:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679351#M52641</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2020-04-13T18:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script works in ArcMap but not Pyscripter</title>
      <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679352#M52642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thought I'd provide an update. I was able to get remote desktop access to a pc at work and then tested the script from a pc that has 10.5 installed on it and the script executed correctly. So it seems there's something going on the citrix server regarding 10.2 (which I'm told by our IT has been decommissioned). Anyway, they're looking into the 10.2 thing on the citrix server and it seems to me that issue is external to my script.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2020 22:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679352#M52642</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2020-04-21T22:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script works in ArcMap but not Pyscripter</title>
      <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679353#M52643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it worked out and you have narrowed down the source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2020 22:50:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679353#M52643</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-04-21T22:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script works in ArcMap but not Pyscripter</title>
      <link>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679354#M52644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thought I'd provide a final update as I found the issue which is raising this error. This script is running against approx 10000 mxd files on our network drive. I was able to figure out a file causing the error. It was a mxd which was created in June 2009 and last accessed in July 2009. When I try opening the mxd file with arcmap 10.5 I get this message, followed by arcmap opening a untitled map document:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/490115_FinalError.png" /&gt;&lt;/P&gt;&lt;P&gt;For now, I've just added code to handle the error and move onto the next mxd file. I suspect there's numerous mxd on the network that are this old and haven't been touched in that long. Me thinks they probably shouldn't be there anymore, but that's not my decision. I'm just happy I've got things working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 17:00:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-works-in-arcmap-but-not-pyscripter/m-p/679354#M52644</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2020-04-27T17:00:39Z</dc:date>
    </item>
  </channel>
</rss>

