<?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: Python compiled file(.pyc) run issue in ArcGIS 10.0, 10.2, 10.3 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275492#M21273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using imports, just check the version number in your code.&amp;nbsp; And why not just distribute the py script version 3.4 will work in older versions unless something has changed or isn't supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import sys
&amp;gt;&amp;gt;&amp;gt; sys.version
'3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)]'
&amp;gt;&amp;gt;&amp;gt; sys.version_info
sys.version_info(major=3, minor=4, micro=1, releaselevel='final', serial=0)
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pyc scripts are checked at runtime&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/15839555/when-are-pyc-files-refreshed" title="http://stackoverflow.com/questions/15839555/when-are-pyc-files-refreshed" rel="nofollow noopener noreferrer" target="_blank"&gt;http://stackoverflow.com/questions/15839555/when-are-pyc-files-refreshed&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:25:57 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2021-12-11T13:25:57Z</dc:date>
    <item>
      <title>Python compiled file(.pyc) run issue in ArcGIS 10.0, 10.2, 10.3</title>
      <link>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275491#M21272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have developed an arcgis 10.0 based addin with .NET technologies. I have run python script from my .NET code. In acrgis 10.0 , python script compiled with python version 2.6. I have also another 2 machines where arcGIS 10.2 and&amp;nbsp; acrgis 10.3 installed. These 2 machines have python version 2.7.&amp;nbsp; If I build my code in each machine and run tool in arcGIS, then all functions are OK. But the problem is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# If I build my code and compiled with python version 2.6 , it does not work in arcgis version 10.2,103 (&amp;gt;10.0). It gives a run time error: &amp;gt;&amp;gt;Runtime Error: bad magic number in .pyc files.&amp;lt;&amp;lt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to resolved this problem so that I can build in machine which installed arcgis version 10.0 and works good to all other version like 10.2,10.3 with python compiled file ... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 11:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275491#M21272</guid>
      <dc:creator>MonirRahman</dc:creator>
      <dc:date>2015-12-07T11:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python compiled file(.pyc) run issue in ArcGIS 10.0, 10.2, 10.3</title>
      <link>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275492#M21273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using imports, just check the version number in your code.&amp;nbsp; And why not just distribute the py script version 3.4 will work in older versions unless something has changed or isn't supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import sys
&amp;gt;&amp;gt;&amp;gt; sys.version
'3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)]'
&amp;gt;&amp;gt;&amp;gt; sys.version_info
sys.version_info(major=3, minor=4, micro=1, releaselevel='final', serial=0)
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pyc scripts are checked at runtime&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/15839555/when-are-pyc-files-refreshed" title="http://stackoverflow.com/questions/15839555/when-are-pyc-files-refreshed" rel="nofollow noopener noreferrer" target="_blank"&gt;http://stackoverflow.com/questions/15839555/when-are-pyc-files-refreshed&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275492#M21273</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T13:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Python compiled file(.pyc) run issue in ArcGIS 10.0, 10.2, 10.3</title>
      <link>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275493#M21274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a particular reason why you're using the pyc files? Without using those an addin created in 10.0 would be forward compatible with any higher 10.X release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 17:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275493#M21274</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-12-07T17:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python compiled file(.pyc) run issue in ArcGIS 10.0, 10.2, 10.3</title>
      <link>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275494#M21275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course, you saw the Stack post on magic numbers and deleting pyc files on your cross-post&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/172888/python-compiled-file-pyc-run-issue-in-arcgis-10-0-10-2-10-3" title="http://gis.stackexchange.com/questions/172888/python-compiled-file-pyc-run-issue-in-arcgis-10-0-10-2-10-3"&gt;Python compiled file(.pyc) run issue in ArcGIS 10.0, 10.2, 10.3 - Geographic Information Systems Stack Exchange&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 20:14:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275494#M21275</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-07T20:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Python compiled file(.pyc) run issue in ArcGIS 10.0, 10.2, 10.3</title>
      <link>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275495#M21276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. I have done a particular function using python script. That's why I need pyc files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 03:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275495#M21276</guid>
      <dc:creator>MonirRahman</dc:creator>
      <dc:date>2015-12-08T03:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python compiled file(.pyc) run issue in ArcGIS 10.0, 10.2, 10.3</title>
      <link>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275496#M21277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Answer is to just use .py files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no need I know where a pyc is required, or difference between using a .py or .pyc&amp;nbsp;&amp;nbsp; -- apart from a tiny (insignificant) speed boost at loading a pyc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing GIS, any GIS task will cost 1000x more than compiling a .py file, you are wasting your time if you are doing this for performance reasons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 15:48:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-compiled-file-pyc-run-issue-in-arcgis-10-0/m-p/275496#M21277</guid>
      <dc:creator>LukeWebb</dc:creator>
      <dc:date>2016-01-06T15:48:10Z</dc:date>
    </item>
  </channel>
</rss>

