<?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: Cannot access SDE from external Python Env in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704513#M54539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have Desktop and ArcGIS Server installed on the same box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 22:24:13 GMT</pubDate>
    <dc:creator>AsrujitSengupta</dc:creator>
    <dc:date>2015-03-11T22:24:13Z</dc:date>
    <item>
      <title>Cannot access SDE from external Python Env</title>
      <link>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704506#M54532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a strange problem this morning that I've seen mentioned a couple time here on the forum without resolution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suddenly (as in, has changed in the last couple weeks) I am unable to access SDE connections through an external python interpreter (that is, one that is outside of ArcMap or ArcCatalog). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From within Arc's python window something such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;print [i.name for i in arcpy.Describe(r'path_to_sde_connections\user@current_sde_version.sde\dataset\feature_class').fields]&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will work perfectly fine, but in an interpreter (the same version/site-packages as used by Arc) it will fail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\__init__.py", line 1234, in Describe
&amp;nbsp;&amp;nbsp;&amp;nbsp; return gp.describe(value)
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 374, in describe
&amp;nbsp;&amp;nbsp;&amp;nbsp; self._gp.Describe(*gp_fixargs(args, True)))
IOError: "&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;path_to_sde_connections\user@current_sde_version.sde\dataset\feature_class&lt;/SPAN&gt;" does not exist&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;path_to_sde_connections\user@current_sde_version.sde\dataset\feature_class&lt;/SPAN&gt; being a placeholder, this is generalized and has been tried with a number of sde connections, this print cmd works on non-sde gdbs.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is resulting in a script that I used and ran last month only working form being loaded into a python window within arc, where before I could run it from the command line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone seen this before, or perhaps found a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't begin to understand why suddenly this would occur. This is after a system reboot to ensure it would be conflict/lock-free. The only recent things I've done would be a pip update of lxml and pandas—which shouldn't be effecting it, as it works from within Arc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:37:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704506#M54532</guid>
      <dc:creator>JustinRobinson</dc:creator>
      <dc:date>2021-12-12T05:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access SDE from external Python Env</title>
      <link>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704507#M54533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you define the path to the .sde file in your python script, is it the full path to the file? as in "c:\\working\\myDBConn.sde" or is it&lt;/P&gt;&lt;P&gt;"Database Connections\\myOtherDBConn.sde"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:48:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704507#M54533</guid>
      <dc:creator>DallasShearer</dc:creator>
      <dc:date>2014-11-26T13:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access SDE from external Python Env</title>
      <link>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704508#M54534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think either one is valid. Just tested using the full path and the one using "Database Connections" and both work in PyScripter...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 18:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704508#M54534</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-11-26T18:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access SDE from external Python Env</title>
      <link>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704509#M54535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I am using a fully qualified path, both to a network location and to a local drive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't reproduce it on other machines either, perhaps a reinstall will be required. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 18:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704509#M54535</guid>
      <dc:creator>JustinRobinson</dc:creator>
      <dc:date>2014-11-27T18:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access SDE from external Python Env</title>
      <link>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704510#M54536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having the same issue I upgraded from 10.0 to 10.2.2 everything works fine with the connection in Catalog and Map but not in Python... did the re-install work? I also found this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/82568"&gt;arcpy and SDE outside of ArcGIS&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 17:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704510#M54536</guid>
      <dc:creator>LindseyWood</dc:creator>
      <dc:date>2015-03-11T17:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access SDE from external Python Env</title>
      <link>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704511#M54537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same. Worked for me in PyScripter with ArcGIS 10.2.2 using a path to the local C:\ drive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 18:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704511#M54537</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-03-11T18:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access SDE from external Python Env</title>
      <link>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704512#M54538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So after much investigation, updating env variables from 10.0, installing service packs for 10.2.2 I figured it out! At least in my situation and probably Blakes too , my guess is that we were first using IDLE or python 64 and it was attached to X64 Python... is that standard with the install? &lt;/P&gt;&lt;P&gt;If I open and run it cmd line using X32 bit PYTHON under for me C:\python\27\ArcGIS10.2\python.exe it worked giving me my connection instance instead of just saying that it exists..... Same thing is my guess for Black that with PyScripter it was set to that 32 py.exe&lt;/P&gt;&lt;P&gt;Not sure if mine was because I already had Python 27 X64 installed when I had arc 10.0 installed for gdal purposes... however I do like to use IDLE so now my next move is...&amp;nbsp; uninstall arc and python? Or does anyone know how to reconfigure my IDLE to point to my X32 py? Or I guess I could just go get PyScripter but I am used to IDLE. I think they say it best here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/24642018/connecting-to-esri-arcsde-10-2-for-oracle-with-arcpy#new-answer" title="https://stackoverflow.com/questions/24642018/connecting-to-esri-arcsde-10-2-for-oracle-with-arcpy#new-answer"&gt;arcgis - Connecting to ESRI ArcSDE 10.2 for Oracle with ArcPy - Stack Overflow&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 21:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704512#M54538</guid>
      <dc:creator>LindseyWood</dc:creator>
      <dc:date>2015-03-11T21:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access SDE from external Python Env</title>
      <link>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704513#M54539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have Desktop and ArcGIS Server installed on the same box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 22:24:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cannot-access-sde-from-external-python-env/m-p/704513#M54539</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2015-03-11T22:24:13Z</dc:date>
    </item>
  </channel>
</rss>

