<?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: Code working in ArcGIS Pro Python Window but not in Spyder in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637542#M49659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All of those folders are there - install paths&amp;nbsp;are different though. "&lt;EM&gt;...\Resorces\Arcpy"&lt;/EM&gt; is in:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"C:\Program Files\ArcGIS\Pro\Resources\ArcPy"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the clone is not in&amp;nbsp;the following program files folder location:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"C:\Program Files\ArcGIS\Pro\bin\Python\envs"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is instead located at "&lt;EM&gt;...AppData\Local\ESRI\conda\envs\arcgispro-py3-clone"&lt;/EM&gt;. The packages you asked about are installed at:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\spyder"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note though that I also have two "root" environments. One that was installed with ArcGIS Pro and one with Anaconda. Not sure if this would cause an issue or what and not sure at all if the following is relevant, but hey, guess it can't hurt. I figured there might be some kind of conflict going on between these two. For some reason "conda" commands do not work for the Anaconda installed base (root) environment unless executed from the Anaconda Prompt. In addition, the original "arcgispro-py3" environment does not have a "conda" executable (though I think it copied the "conda" executable from the &lt;EM&gt;"C:\Program Files\ArcGIS\Pro\bin\Python\Scripts"&lt;/EM&gt; directory when it was cloned.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px;"&gt;&lt;STRONG&gt;Running in PowerShell in the various &lt;EM&gt;...\Scripts&lt;/EM&gt; directories&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Note that the following were done with "arcgispro-py3-clone" active in ArcGIS Pro. The active environment in Anaconda Navigator does not affect the active (*) environment. Only the active environment in ArcGIS Pro matters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running "conda info --envs" from &lt;EM&gt;"C:\Program Files\ArcGIS\Pro\&lt;STRONG&gt;bin\Python\Scripts&lt;/STRONG&gt;"&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;&lt;STRONG&gt;This is the root environment installed by ArcGIS Pro.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;PS C:\Program Files\ArcGIS\Pro\bin\Python\Scripts&amp;gt; .\conda info --envs
# conda environments:
#
arcgispro-py3-clone   *  C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone
arcgispro-py3            C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
root                     C:\Program Files\ArcGIS\Pro\bin\Python

PS C:\Program Files\ArcGIS\Pro\bin\Python\Scripts&amp;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;/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;Running "conda info --envs" from &lt;EM&gt;"C:\Program Files\ArcGIS\Pro\bin\Python\&lt;STRONG&gt;envs\arcgispro-py3\Scripts.&lt;/STRONG&gt;"&lt;/EM&gt;&lt;STRONG&gt;&amp;nbsp;This is the original environment installed by ArcGIS Pro that was cloned.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;PS C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts&amp;gt; .\conda info --envs
.\conda : The term '.\conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ .\conda info --envs
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (.\conda:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts&amp;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;/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;Note there is no "conda" executable in the folder for whatever reason. Maybe it references the Python\Scripts folder above? Regardless, shouldn't be my problem because...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running "conda info --envs" from &lt;EM&gt;"C:\Users\Tab5a\AppData\Local\ESRI\conda\&lt;STRONG&gt;envs\arcgispro-py3-clone\Scripts.&lt;/STRONG&gt;"&lt;/EM&gt;&amp;nbsp;&lt;STRONG&gt;This is the clone of the original environment installed by ArcGIS Pro.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;PS C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Scripts&amp;gt; .\conda info --envs
# conda environments:
#
arcgispro-py3-clone   *  C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone
arcgispro-py3            C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
root                     C:\Program Files\ArcGIS\Pro\bin\Python

PS C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Scripts&amp;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;/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;Note that even though the "conda" executable was not in the original environment, it showed up in the cloned one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running "conda info --envs" from &lt;EM&gt;"C:\Users\Tab5a\&lt;STRONG&gt;Anaconda3\Scripts.&lt;/STRONG&gt;"&lt;/EM&gt;&amp;nbsp;&lt;STRONG&gt;This is the base (root) environment installed with Anaconda.&amp;nbsp;&lt;/STRONG&gt;I get the following error message.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;PS C:\Users\Tab5a\Anaconda3\Scripts&amp;gt; .\conda info --envs

# &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ERROR REPORT &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;

    Traceback (most recent call last):
      File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\exceptions.py", line 1062, in __call__
        return func(*args, **kwargs)
      File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
        exit_code = do_call(args, p)
      File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 80, in do_call
        module = import_module(relative_mod, __name__.rsplit('.', 1)[0])
      File "C:\Users\Tab5a\Anaconda3\lib\importlib\__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 1006, in _gcd_import
      File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 983, in _find_and_load
      File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 967, in _find_and_load_unlocked
      File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 677, in _load_unlocked
      File "&amp;lt;frozen importlib._bootstrap_external&amp;gt;", line 728, in exec_module
      File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 219, in _call_with_frames_removed
      File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\cli\main_info.py", line 19, in &amp;lt;module&amp;gt;
        from ..core.index import _supplement_index_with_system
      File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\core\index.py", line 9, in &amp;lt;module&amp;gt;
        from .package_cache_data import PackageCacheData
      File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 15, in &amp;lt;module&amp;gt;
        from conda_package_handling.api import InvalidArchiveError
      File "C:\Users\Tab5a\Anaconda3\lib\site-packages\conda_package_handling\api.py", line 3, in &amp;lt;module&amp;gt;
        from libarchive.exception import ArchiveError as _LibarchiveArchiveError
      File "C:\Users\Tab5a\Anaconda3\lib\site-packages\libarchive\__init__.py", line 1, in &amp;lt;module&amp;gt;
        from .entry import ArchiveEntry
      File "C:\Users\Tab5a\Anaconda3\lib\site-packages\libarchive\entry.py", line 6, in &amp;lt;module&amp;gt;
        from . import ffi
      File "C:\Users\Tab5a\Anaconda3\lib\site-packages\libarchive\ffi.py", line 48, in &amp;lt;module&amp;gt;
        libarchive = ctypes.cdll.LoadLibrary(libarchive_path)
      File "C:\Users\Tab5a\Anaconda3\lib\ctypes\__init__.py", line 434, in LoadLibrary
        return self._dlltype(name)
      File "C:\Users\Tab5a\Anaconda3\lib\ctypes\__init__.py", line 356, in __init__
        self._handle = _dlopen(self._name, mode)
    TypeError: LoadLibrary() argument 1 must be str, not None

`$ C:\Users\Tab5a\Anaconda3\Scripts\conda-script.py info --envs`


An unexpected error has occurred. Conda has prepared the above report.

Upload did not complete.
PS C:\Users\Tab5a\Anaconda3\Scripts&amp;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;/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;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;&lt;SPAN style="font-size: 22px;"&gt;&lt;STRONG&gt;Running in Terminal from Anaconda Navigator&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note that&amp;nbsp;for the following the active environment in ArcGIS Pro made no difference.&amp;nbsp;The active environment in&amp;nbsp;ArcGIS Pro does not affect the active environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As to the two "root" environments, when I open Anaconda and switch to the &lt;STRONG&gt;"base (root)"&lt;/STRONG&gt; environment, open a terminal, and run "conda info --envs":&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;(base) C:\Users\Tab5a&amp;gt;conda info --envs
# conda environments:
#
base                  *  C:\Users\Tab5a\Anaconda3
                         C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone


(base) C:\Users\Tab5a&amp;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;/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;When I switch to the &lt;STRONG&gt;"arcgispro-py3-clone"&lt;/STRONG&gt; environment in Anaconda, open a terminal, and run "conda info --envs":&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;(arcgispro-py3-clone) C:\Users\Tab5a&amp;gt;conda info --envs
# conda environments:
#
arcgispro-py3-clone   *  C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone
arcgispro-py3            C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
root                     C:\Program Files\ArcGIS\Pro\bin\Python


(arcgispro-py3-clone) C:\Users\Tab5a&amp;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;/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;Note also that the original environment "arcgispro-py3" does not show up in Anaconda.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:06:07 GMT</pubDate>
    <dc:creator>ThomasBlankinship</dc:creator>
    <dc:date>2021-12-12T03:06:07Z</dc:date>
    <item>
      <title>Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637538#M49655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like many of you, I want to be able to edit and execute python code from Spyder instead of ArcGIS's Python Window. I am running into some problems and hoping that someone can help me troubleshoot what exactly is going on. I noticed that some old scripts that I had written would no longer execute in Spyder but when the code was copied into ArcGIS Pro's Python Window the code worked just fine. After messing around with it for quite some time, uninstalling and reinstalling both ArcGIS Pro and Anaconda3 Navigator (3.7 64-bit), to not avail I decided to roll uninstall both again, delete all traces of them from my system, delete registry keys, etc. to make sure it wasn't the fault of something latent on my computer after uninstalling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just got everything reinstalled and am running into the exact same problem. Again, the code will work when copy pasted into the Python Window in ArcGIS Pro, but not in Spyder. Here is how I installed it after my clean uninstall:&lt;/P&gt;&lt;P&gt;1) Installed ArcGIS 2.3&lt;/P&gt;&lt;P&gt;2) Installed Patched 2.3.1, 2.3.2, and 2.3.3 in that order (I'm wary of 2.4 and know my code was working on 2.3)&lt;/P&gt;&lt;P&gt;3) Opened ArcGIS, signed in, went to Project --&amp;gt; Python --&amp;gt; Manage Environments --&amp;gt; Clone Environment&lt;/P&gt;&lt;P&gt;4) Once the Cloned Environment (named arcgispro-py3-clone) finished installing I closed ArcGIS Pro and restarted it&lt;/P&gt;&lt;P&gt;5) Went back into Project --&amp;gt; Python --&amp;gt; Manage Environments and changed the environment to the cloned environment&lt;/P&gt;&lt;P&gt;6) Checked that my sample code worked in the cloned environment in the Python Window, it did&lt;/P&gt;&lt;P&gt;7) Installed the spyder package (which installed all of its dependencies)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; Restarted ArcGIS Pro, checked that spyder package was installed, tried code again in Python Window, it worked&lt;/P&gt;&lt;P&gt;9) Installed Anaconda3 -&amp;gt; unchecked Anaconda3 as default Python 3.7, did not add to path&lt;/P&gt;&lt;P&gt;10) Opened Anaconda3 and checked for cloned arcgispro-py3 environment, it was there&lt;/P&gt;&lt;P&gt;11) Restarted computer for good measure&lt;/P&gt;&lt;P&gt;12) In Anaconda3, switched to arcgispro-py3-clone environment and launched spyder&lt;/P&gt;&lt;P&gt;13) Opened and ran my test code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the&amp;nbsp;error given to me by Spyder:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;runfile('G:/My Drive/Python Scripts/polyline_to_polygon.py', wdir='G:/My Drive/Python Scripts')&lt;BR /&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;File "&amp;lt;ipython-input-1-210cd50e08ec&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;runfile('G:/My Drive/Python Scripts/polyline_to_polygon.py', wdir='G:/My Drive/Python Scripts')&lt;/P&gt;&lt;P&gt;File "C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile&lt;BR /&gt;execfile(filename, namespace)&lt;/P&gt;&lt;P&gt;File "C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile&lt;BR /&gt;exec(compile(f.read(), filename, 'exec'), namespace)&lt;/P&gt;&lt;P&gt;File "G:/My Drive/Python Scripts/polyline_to_polygon.py", line 27, in &amp;lt;module&amp;gt;&lt;BR /&gt;ap.CopyFeatures_management(vtx_arr, vtx_output)&lt;/P&gt;&lt;P&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 2624, in CopyFeatures&lt;BR /&gt;raise e&lt;/P&gt;&lt;P&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 2621, in CopyFeatures&lt;BR /&gt;retval = convertArcObjectToPythonObject(gp.CopyFeatures_management(*gp_fixargs((in_features, out_feature_class, config_keyword, spatial_grid_1, spatial_grid_2, spatial_grid_3), True)))&lt;/P&gt;&lt;P&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 498, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;return lambda *args: val(*gp_fixargs(args, True))&lt;/P&gt;&lt;P&gt;RuntimeError: Object: Error in executing tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping I left out a step or something of that nature akin to forgetting to copy the batch files in ArcMap, but otherwise I have no clue why this wouldn't be working. Thank you all for your time and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 01:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637538#M49655</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2019-07-31T01:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637539#M49656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;The ArcGIS Pro environment is currently only supporting python 3.6.8..&lt;/P&gt;&lt;P&gt;I suspect that is the root of the problem.&lt;/P&gt;&lt;P&gt;In fact, if you try a --no-pin, esri's environment doesn't support 3.7, only 3.6.9&amp;nbsp; (btw, 3.8 will be coming along soon)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcgispro&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;py3&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\arc_pro\bin\Python\envs\arcgispro&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;py3&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;conda update python &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;no&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;pin &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;dry&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;run
Fetching package metadata &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;&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;&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;&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;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
Solving package specifications&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;

Package plan &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; installation &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; environment C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\arc_pro\bin\Python\envs\arcgispro&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;py3&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;

The following packages will be UPDATED&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;

    python&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;3.6&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;h9f7ef89_7 &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;3.6&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;h5500b2f_0


&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcgispro&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;py3&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\arc_pro\bin\Python\envs\arcgispro&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;py3&lt;SPAN class="operator token"&gt;&amp;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;/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;If you have a need to test out python 3.7, I would suggest separating your Arc* stuff from your python stuff until esri upgrades their packages.&amp;nbsp; Minor upgrades x.x.Y tend not to cause issues, but x.Y upgrades I have found to be problematic at times.&amp;nbsp; So --no-pin and --dry-run should always be examined first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637539#M49656</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T03:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637540#M49657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anaconda is 3.7. But the environment I am using within Anaconda is 3.6.6 as it is a clone of the default environment within ArcGIS Pro 2.3.3. Below is the original environment after running conda update python --no-pin --dry-run:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;C:\Program Files\ArcGIS\Pro\bin\Python\Scripts&amp;gt;conda update python --no-pin --dry-run
Fetching package metadata .............
Solving package specifications: .

Package plan for installation in environment C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone:

The following packages will be UPDATED:

    python:         3.6.6-hea74fb7_0       --&amp;gt; 3.6.9-h5500b2f_0
    sqlite:         3.25.2-hfa6e2cd_0      --&amp;gt; 3.29.0-he774522_0
    vc:             14-h21ff451_11         --&amp;gt; 14.1-h0510ff6_4
    vs2015_runtime: 14.0.25420-0      esri --&amp;gt; 14.15.26706-h3a45250_4

The following packages will be DOWNGRADED:

    freetype:       2.8-h51f8f2c_1    esri --&amp;gt; 2.8-vc14_0             esri [vc14]


C:\Program Files\ArcGIS\Pro\bin\Python\Scripts&amp;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;/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;And here is that same command run on my clone environment:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;(arcgispro-py3-clone) C:\Users\Tab5a&amp;gt;conda update python --no-pin --dry-run
Fetching package metadata .............
Solving package specifications: .

Package plan for installation in environment C:\Users\Tab5a\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone:

The following packages will be UPDATED:

    python:         3.6.6-hea74fb7_0       --&amp;gt; 3.6.9-h5500b2f_0
    sqlite:         3.25.2-hfa6e2cd_0      --&amp;gt; 3.29.0-he774522_0
    vc:             14-h21ff451_11         --&amp;gt; 14.1-h0510ff6_4
    vs2015_runtime: 14.0.25420-0      esri --&amp;gt; 14.15.26706-h3a45250_4

The following packages will be DOWNGRADED:

    freetype:       2.8-h51f8f2c_1    esri --&amp;gt; 2.8-vc14_0             esri [vc14]


(arcgispro-py3-clone) C:\Users\Tab5a&amp;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;/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;Note that my cloned environment is located in C:\Users\Tab5a\AppData\Local\ESRI\conda\envs&lt;/P&gt;&lt;P&gt;Also, not sure if it matters at all, the cloned environment is not in the C:\Users\Tab5a\Anaconda3\envs but does show up in Anaconda Navigator as expected. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637540#M49657</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2021-12-12T03:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637541#M49658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you scroll around using Windows File Explorer, are these folders there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Your_Install_Path\Resources\ArcPy&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;C:\Your_Install_Path&lt;/SPAN&gt;\bin\Python\envs\Your_Clone_Env\Lib\site-packages\arcgis&lt;/P&gt;&lt;P&gt;C:\&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Your_Install_Path&lt;/SPAN&gt;\bin\Python\envs\&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Your_Clone_Env&lt;/SPAN&gt;\Lib\site-packages\spyder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, then Arc* stuff isn't there and spyder may or may not be installed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 06:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637541#M49658</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-07-31T06:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637543#M49660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is spyder running the correct Spyder? (run from the IPython console in Spyder). &amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't use clones so I only have one python so I can't test another&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import sys
sys.executable
'C:\\arc_pro\\bin\\Python\\envs\\arcgispro-py3\\pythonw.exe'‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To change&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/43592879/how-to-change-python-version-in-anaconda-spyder" title="https://stackoverflow.com/questions/43592879/how-to-change-python-version-in-anaconda-spyder" rel="nofollow noopener noreferrer" target="_blank"&gt;How to change python version in anaconda spyder - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:06:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637543#M49660</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T03:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637544#M49661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is in Spyder.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 7.7.0 -- An enhanced Interactive Python.

import sys

sys.executable
Out[2]: 'C:\\Users\\Tab5a\\AppData\\Local\\ESRI\\conda\\envs\\arcgispro-py3-clone\\pythonw.exe'
&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other way to check what is being used by by the Python Window in ArcGIS Pro? sys.executable returns:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import sys
sys.executable
'C:\\Program Files\\ArcGIS\\Pro\\bin\\ArcGISPro.exe'&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which I find odd based on&amp;nbsp;&lt;A href="https://docs.python.org/3/library/sys.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://docs.python.org/3/library/sys.html&lt;/A&gt;&amp;nbsp;which says that sys.executable "returns a string giving the absolute path of the executable binary for the Python interpreter."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637544#M49661</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2021-12-12T03:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637545#M49662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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; sys
sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;executable
&lt;SPAN class="string token"&gt;'C:\\arc_pro\\bin\\ArcGISPro.exe'&lt;/SPAN&gt;

sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;base_exec_prefix
&lt;SPAN class="string token"&gt;'C:\\arc_pro\\bin\\Python\\envs\\arcgispro-py3'&lt;/SPAN&gt;

sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exec_prefix
&lt;SPAN class="string token"&gt;'C:\\arc_pro\\bin\\Python\\envs\\arcgispro-py3'&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;/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;Have to add this to my "reasons not to clone"&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2018/12/28/clone" target="_blank"&gt;/blogs/dan_patterson/2018/12/28/clone&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637545#M49662</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T03:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637546#M49663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import sys
sys.executable
'C:\\Program Files\\ArcGIS\\Pro\\bin\\ArcGISPro.exe'
sys.base_exec_prefix
'C:\\Users\\Tab5a\\AppData\\Local\\ESRI\\conda\\envs\\arcgispro-py3-clone'
sys.exec_prefix
'C:\\Users\\Tab5a\\AppData\\Local\\ESRI\\conda\\envs\\arcgispro-py3-clone'‍‍‍‍‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which is correct right? Sorry, I don't quite understand what I should do/try. Should I uninstall and reinstall ArcGIS Pro and Anaconda? Should I clone or not? Should I try to make a clone in the path&amp;nbsp;&lt;EM&gt;"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs"&lt;/EM&gt;? Should I try the mentioned .api patch? I'm assuming that if I do try the patch I have first install anaconda-navigator on/from my clone? Should I have installed anaconda-navigator from my clone in the first place rather than from the .exe from Anaconda's website?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the plethora of questions, I am just lost and extremely frustrated with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637546#M49663</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2021-12-12T03:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637547#M49664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well nothing has helped so far.&lt;/P&gt;&lt;P&gt;Why you need python 3.7?&lt;/P&gt;&lt;P&gt;Did you read my blog post?&lt;/P&gt;&lt;P&gt;If you don't need to clone, then don't&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 14:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637547#M49664</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-07-31T14:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637548#M49665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did, I guess I'm just a bit confused. I don't need python 3.7, Anaconda 3.7 is just the installer they have on the Anaconda website. I might be dense, but it shouldn't matter because I am using a separate environment for my arcgispro-py3-clone right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless, I am going to try to delete the clone, uninstall the Anaconda Navigator I got from their website installer, and install the packages directly into &lt;EM&gt;"C:\Program Files\ArcGIS\Pro\bin\Python\arcgispro-py3"&lt;/EM&gt; folder using conda from "proenv.bat" and see if that works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 16:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637548#M49665</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2019-07-31T16:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637549#M49666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;uninstall everything,&lt;/P&gt;&lt;P&gt;Install arcgis pro&lt;/P&gt;&lt;P&gt;If you have no other packages other than spyder to install, you can either install it in the default or a cloned environment, assuming you have full administrative rights to your machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2018/12/13/spyder"&gt;/blogs/dan_patterson/2018/12/13/spyder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2019/06/28/arcgis-pro-24-installation-package-updates-and-installs"&gt;/blogs/dan_patterson/2019/06/28/arcgis-pro-24-installation-package-updates-and-installs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2018/12/28/clone"&gt;/blogs/dan_patterson/2018/12/28/clone&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2017/07/01/arcgis-pro-2-creating-desktop-shortcuts"&gt;/blogs/dan_patterson/2017/07/01/arcgis-pro-2-creating-desktop-shortcuts&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I have more on my blog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 16:51:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637549#M49666</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-07-31T16:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637550#M49667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, working on that now. Uninstalled ArcGIS Pro and Anaconda and all related folders, files, registry keys, etc. that were left over after installation.&amp;nbsp;Just installed ArcGIS Pro 2.3 and its three patches in &lt;EM&gt;"C:/ArcGISPro"&lt;/EM&gt; shortening the path like you suggested. I have full control over my computer so am not making a clone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now updating numpy from proenv.bat (located at &lt;EM&gt;C:\ArcGISPro\bin\Python\Scripts&lt;/EM&gt;) and learning about sphinx and will downgrade if I decide I want to. Next I will install Spyder. If I install anaconda-navigator after that is there anything else I have to do to get that to work properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 23:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637550#M49667</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2019-07-31T23:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637551#M49668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;leave out Anaconda Navigator for now.&amp;nbsp; It is a longer story and requires a patch that I haven't tested on Pro 2.4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 01:41:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637551#M49668</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-08-01T01:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637552#M49669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The patch mentioned in&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson/2018/12/28/clone"&gt;https://community.esri.com/blogs/dan_patterson/2018/12/28/clone&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;I am using 2.3.3 which is what you used for that I believe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 01:48:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637552#M49669</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2019-08-01T01:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637553#M49670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas... get it working first before you try the patch &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 01:53:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637553#M49670</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-08-01T01:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637554#M49671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fair enough. My problem still is not solved though, works in Python Window in ArcGIS Pro but not in Spyder. What the heck?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 02:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637554#M49671</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2019-08-01T02:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637555#M49672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having the same problem but I am not using Spyer. I am simply editing my code in Visual Studio Code and running it using the built in ArcGIS Python Interpreter. At first it was teh clip tool but now simple trying to add a field does not work anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #eeffff; background-color: #252526; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #ffcb6b;"&gt;pythonPath&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;C:&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;Program Files&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;ArcGIS&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;Pro&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;bin&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;Python&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;envs&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;arcgispro-py3&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;python.exe&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"E:\Data\Parks.gdb\rsBox"&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Update"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"TEXT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
Traceback &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;most recent call last&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
  File &lt;SPAN class="string token"&gt;"&amp;lt;stdin&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;module&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
  File &lt;SPAN class="string token"&gt;"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;3899&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; AddField
    &lt;SPAN class="keyword token"&gt;raise&lt;/SPAN&gt; e
  File &lt;SPAN class="string token"&gt;"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;3896&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; AddField
    retval &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; convertArcObjectToPythonObject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;gp_fixargs&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_table&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_type&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_precision&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_scale&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_length&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_alias&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_is_nullable&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_is_required&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_domain&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&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;
  File &lt;SPAN class="string token"&gt;"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;506&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;lambda&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;lambda&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;args&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; val&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;gp_fixargs&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;args&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
RuntimeError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Object&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Error &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; executing tool
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;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;/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;Link to my question:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/237574-runtimeerror-object-error-in-executing-tool" target="_blank"&gt;https://community.esri.com/message/867419-runtimeerror-object-error-in-executing-tool&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:06:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637555#M49672</guid>
      <dc:creator>TonyDaSilva1</dc:creator>
      <dc:date>2021-12-12T03:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637556#M49673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas? This has thoroughly stumped me. It won't work with the IDE installed with ArcGIS Pro either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 23:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637556#M49673</guid>
      <dc:creator>ThomasBlankinship</dc:creator>
      <dc:date>2019-08-08T23:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637557#M49674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a lark... change your field name to Update_ or something else.&lt;/P&gt;&lt;P&gt;I tend to avoid any keywords associated with anything.&amp;nbsp; For example&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.microsoft.com/en-us/sql/t-sql/language-elements/reserved-keywords-transact-sql?view=sql-server-2017" title="https://docs.microsoft.com/en-us/sql/t-sql/language-elements/reserved-keywords-transact-sql?view=sql-server-2017"&gt;Reserved Keywords (Transact-SQL) - SQL Server | Microsoft Docs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't find an equivalent list in the help files... would be nice, but I suspect that it may be database dependent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 00:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637557#M49674</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-08-09T00:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Code working in ArcGIS Pro Python Window but not in Spyder</title>
      <link>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637558#M49675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I new I saw it&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000010906" title="https://support.esri.com/en/technical-article/000010906"&gt;FAQ: What are the reserved words for Esri's file geodatabase?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But whether the case of the word is important is another question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 10:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-working-in-arcgis-pro-python-window-but-not/m-p/637558#M49675</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-08-09T10:26:57Z</dc:date>
    </item>
  </channel>
</rss>

