<?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 issue in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-issue/m-p/691903#M53642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using 64 bit python for this?&amp;nbsp; If you installed the &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002100000040000000"&gt;64 bit background processing&lt;/A&gt;, your Python version when you run a script will likely default to 64 bit.&amp;nbsp; Personal geodatabases are not supported at 64 bit, so you would have to run the script from your 32 bit python if this is the case.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the issue, I have had success in the past by making simple batch files like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start C:\Python27\ArcGIS10.2\python.exe&amp;nbsp; C:\Path\to_your_script.py&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2014 15:56:23 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2014-08-20T15:56:23Z</dc:date>
    <item>
      <title>Python issue</title>
      <link>https://community.esri.com/t5/python-questions/python-issue/m-p/691902#M53641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created python scripts in while I was in ArcGIS 9.3.1.&amp;nbsp; The scripts all worked correctly in 9.3.1 and when I upgraded to 10.1 as well.&amp;nbsp; Now, however, since I have upgraded to 10.2.1, many of the scripts are not working.&amp;nbsp; I tested the models in ArcCatalog and they do work fine there, but when the models are ran through a python script, I get errors regarding mdb files not being supported or found. &lt;/P&gt;&lt;P&gt;I tried exporting the models to python scripts and entering those in instead of using the arcpy command to run the model, and the errors still come through. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have noticed there tends to be an issue with any of the scripts that include an mdb file.&amp;nbsp; I have to use that format because they are grabbing data from Access databases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample script is attached below for you to review.&amp;nbsp; The part of the script that triggers the mdb file in Access works correctly.&amp;nbsp; So, python does still open an mdb.&amp;nbsp; It just fails when trying to access an mdb file through a model......even though it works correctly in the model itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help at all would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt; Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-issue/m-p/691902#M53641</guid>
      <dc:creator>LisaDygert</dc:creator>
      <dc:date>2014-08-20T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python issue</title>
      <link>https://community.esri.com/t5/python-questions/python-issue/m-p/691903#M53642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using 64 bit python for this?&amp;nbsp; If you installed the &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002100000040000000"&gt;64 bit background processing&lt;/A&gt;, your Python version when you run a script will likely default to 64 bit.&amp;nbsp; Personal geodatabases are not supported at 64 bit, so you would have to run the script from your 32 bit python if this is the case.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the issue, I have had success in the past by making simple batch files like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start C:\Python27\ArcGIS10.2\python.exe&amp;nbsp; C:\Path\to_your_script.py&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 15:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-issue/m-p/691903#M53642</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-08-20T15:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Python issue</title>
      <link>https://community.esri.com/t5/python-questions/python-issue/m-p/691904#M53643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked brilliantly!!!&amp;nbsp; Thank you so much!&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 16:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-issue/m-p/691904#M53643</guid>
      <dc:creator>LisaDygert</dc:creator>
      <dc:date>2014-08-20T16:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python issue</title>
      <link>https://community.esri.com/t5/python-questions/python-issue/m-p/691905#M53644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thought I'd add this useful link to the thread. If you run into this issue with script tools run from Desktop, you may need to disable background processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/10/31/announcing-64-bit-geoprocessing/" title="http://blogs.esri.com/esri/arcgis/2012/10/31/announcing-64-bit-geoprocessing/"&gt;Announcing 64-bit Geoprocessing! | ArcGIS Blog&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 18:23:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-issue/m-p/691905#M53644</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-08-25T18:23:26Z</dc:date>
    </item>
  </channel>
</rss>

