<?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: Arcpy Conda Installation Crashed with Standalone Environment in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1235279#M62689</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/491132"&gt;@eirikaa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot, that works for my miniconda package (target to pro-2.9).&amp;nbsp;&lt;/P&gt;&lt;P&gt;update jinja2 version to 3.0.3 after arcgis=2.0.0 is installed&lt;/P&gt;&lt;PRE&gt;conda install jinja2=3.0.3&lt;/PRE&gt;&lt;P&gt;Then use Conda install arcpy=2.9 without issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;BR /&gt;Vicky&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2022 05:20:38 GMT</pubDate>
    <dc:creator>CoMAGOL_ADMINISTRATOR</dc:creator>
    <dc:date>2022-11-28T05:20:38Z</dc:date>
    <item>
      <title>Arcpy Conda Installation Crashed with Standalone Environment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1230786#M62123</link>
      <description>&lt;P&gt;After creating a new ArcPy environment within a standalone installation of Conda, the installation failed for some reason.&lt;/P&gt;&lt;P&gt;This same setup worked without any issues in the past.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a bare-bones recipe for creating an ArcPy environment within Anaconda.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;conda create -n ArcGIS
conda activate ArcGIS
conda install arcpy=3.0 -c esri&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the error message:&lt;/P&gt;&lt;P&gt;Preparing transaction: done&lt;BR /&gt;Verifying transaction: done&lt;BR /&gt;Executing transaction: | Uninstalling prior versions of arcgis widget&lt;BR /&gt;Installing C:\Users\yangz\.conda\envs\ArcGIS\lib\site-packages\arcgis\widgets/js/dist -&amp;gt; arcgis&lt;BR /&gt;Up to date: C:\Users\yangz\.conda\envs\ArcGIS\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js&lt;BR /&gt;Up to date: C:\Users\yangz\.conda\envs\ArcGIS\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js.map&lt;BR /&gt;Up to date: C:\Users\yangz\.conda\envs\ArcGIS\share\jupyter\nbextensions\arcgis\extension.js&lt;BR /&gt;- Validating: ok&lt;/P&gt;&lt;P&gt;To initialize this nbextension in the browser every time the notebook (or other app) loads:&lt;/P&gt;&lt;P&gt;jupyter nbextension enable arcgis --py --sys-prefix&lt;/P&gt;&lt;P&gt;Enabling notebook extension arcgis/extension...&lt;BR /&gt;- Validating: ok&lt;/P&gt;&lt;P&gt;-&lt;BR /&gt;done&lt;BR /&gt;ERROR conda.core.link:_execute(730): An error occurred while installing package 'esri::jupyter_contrib_nbextensions-0.5.1-py_24'.&lt;BR /&gt;Rolling back transaction: done&lt;/P&gt;&lt;P&gt;LinkError: post-link script failed for package esri::jupyter_contrib_nbextensions-0.5.1-py_24&lt;BR /&gt;location of failed script: C:\Users\yangz\.conda\envs\ArcGIS\Scripts\.jupyter_contrib_nbextensions-post-link.bat&lt;BR /&gt;==&amp;gt; script messages &amp;lt;==&lt;BR /&gt;&amp;lt;None&amp;gt;&lt;BR /&gt;==&amp;gt; script output &amp;lt;==&lt;BR /&gt;stdout:&lt;BR /&gt;stderr: Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\yangz\.conda\envs\ArcGIS\Scripts\jupyter-contrib-nbextension-script.py", line 5, in &amp;lt;module&amp;gt;&lt;BR /&gt;from jupyter_contrib_nbextensions.application import main&lt;BR /&gt;File "C:\Users\yangz\.conda\envs\ArcGIS\lib\site-packages\jupyter_contrib_nbextensions\application.py", line 15, in &amp;lt;module&amp;gt;&lt;BR /&gt;from jupyter_contrib_nbextensions.install import (&lt;BR /&gt;File "C:\Users\yangz\.conda\envs\ArcGIS\lib\site-packages\jupyter_contrib_nbextensions\install.py", line 12, in &amp;lt;module&amp;gt;&lt;BR /&gt;import latex_envs&lt;BR /&gt;File "C:\Users\yangz\.conda\envs\ArcGIS\lib\site-packages\latex_envs\__init__.py", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;from . import latex_envs&lt;BR /&gt;File "C:\Users\yangz\.conda\envs\ArcGIS\lib\site-packages\latex_envs\latex_envs.py", line 20, in &amp;lt;module&amp;gt;&lt;BR /&gt;from nbconvert.exporters.exporter import Exporter&lt;BR /&gt;File "C:\Users\yangz\.conda\envs\ArcGIS\lib\site-packages\nbconvert\__init__.py", line 4, in &amp;lt;module&amp;gt;&lt;BR /&gt;from .exporters import *&lt;BR /&gt;File "C:\Users\yangz\.conda\envs\ArcGIS\lib\site-packages\nbconvert\exporters\__init__.py", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;from .html import HTMLExporter&lt;BR /&gt;File "C:\Users\yangz\.conda\envs\ArcGIS\lib\site-packages\nbconvert\exporters\html.py", line 12, in &amp;lt;module&amp;gt;&lt;BR /&gt;from jinja2 import contextfilter&lt;BR /&gt;ImportError: cannot import name 'contextfilter' from 'jinja2' (C:\Users\yangz\.conda\envs\ArcGIS\lib\site-packages\jinja2\__init__.py)&lt;/P&gt;&lt;P&gt;return code: 1&lt;/P&gt;&lt;P&gt;()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 05:32:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1230786#M62123</guid>
      <dc:creator>ZhongyuYang</dc:creator>
      <dc:date>2022-11-11T05:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Conda Installation Crashed with Standalone Environment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1231048#M62163</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/621485"&gt;@ZhongyuYang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having the same issue. I don't know what is wrong but I guess it has to be with updates in conda.&lt;/P&gt;&lt;P&gt;So far I solved this by installing spyder with pip. I am also working with geopandas so I used pip to install it too. I don't know where arcpy comes in these packages but is working for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got a warning about some dependencies missing, but will be using this configuration until I figure it out.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2022 18:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1231048#M62163</guid>
      <dc:creator>WildersonMedina</dc:creator>
      <dc:date>2022-11-12T18:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Conda Installation Crashed with Standalone Environment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1233828#M62495</link>
      <description>&lt;P&gt;I still have this problem unresolved. Does anyone have the same problem?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 17:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1233828#M62495</guid>
      <dc:creator>ZhongyuYang</dc:creator>
      <dc:date>2022-11-21T17:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Conda Installation Crashed with Standalone Environment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1234001#M62516</link>
      <description>&lt;P&gt;Yes, I'm having the same issue.&lt;/P&gt;&lt;P&gt;I've been rebuilding a conda environment that includes the arcpy module every couple of weeks for the past five months using the same `conda create` command. This started failing for the first time today, with the same error listed in your original post.&lt;/P&gt;&lt;P&gt;Like in your example, I can reproduce the error with a simple environment that only includes the `arcpy` module.&lt;/P&gt;&lt;P&gt;I can work around the error by using the Python environment included with the ArcGIS Pro installation on my Windows machine: Start &amp;gt; ArcGIS &amp;gt; Python Command Prompt&lt;/P&gt;&lt;P&gt;I have a variety of Python projects in-progress, some with ArcGIS and some without. Correspondingly, I'd prefer to use a common, stand-alone miniconda installation to manage everything, instead of having to open an ArcGIS-specific command prompt every time I need to run something that uses arcpy. But, alas...&lt;/P&gt;&lt;P&gt;I don't have time to diagnose this further at the moment, so I'm going to use the workaround for now and try again in a few weeks. Just wanted to let you know you're not alone. Thanks for starting this thread.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 05:12:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1234001#M62516</guid>
      <dc:creator>MichaelMannion</dc:creator>
      <dc:date>2022-11-22T05:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Conda Installation Crashed with Standalone Environment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1234388#M62574</link>
      <description>&lt;P&gt;Got the same issue here&lt;BR /&gt;&lt;BR /&gt;use miniconda to create a python 3.7 environment&lt;BR /&gt;tested all couple weeks ago were fine.&amp;nbsp;&lt;BR /&gt;re-test this week start failing on arcpy=2.9 installation&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;conda install arcgis=2.0.0 -- passed&lt;BR /&gt;conda install arcpy=2.9&amp;nbsp; &amp;nbsp; &amp;nbsp;-- start failing last week&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Not sure whether the anaconda repo managed by ESRI or by anaconda team?&lt;BR /&gt;Hope this can be resolved quick or roll back to the version that was working earlier.&lt;BR /&gt;&lt;BR /&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vicky&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 02:26:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1234388#M62574</guid>
      <dc:creator>CoMAGOL_ADMINISTRATOR</dc:creator>
      <dc:date>2022-11-23T02:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Conda Installation Crashed with Standalone Environment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1235007#M62645</link>
      <description>&lt;P&gt;The problem can be solved by installing jinja2 separately before arcpy with a downgraded version, e.g: jinja2 3.0.3 which is shipped with ArcGIS pro.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;conda install jinja2=3.0.3&lt;/LI-CODE&gt;&lt;P&gt;Then arcpy should be ready to be installed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like the dependency check isn't very well tested&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 09:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1235007#M62645</guid>
      <dc:creator>eirikaa</dc:creator>
      <dc:date>2022-11-25T09:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Conda Installation Crashed with Standalone Environment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1235279#M62689</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/491132"&gt;@eirikaa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot, that works for my miniconda package (target to pro-2.9).&amp;nbsp;&lt;/P&gt;&lt;P&gt;update jinja2 version to 3.0.3 after arcgis=2.0.0 is installed&lt;/P&gt;&lt;PRE&gt;conda install jinja2=3.0.3&lt;/PRE&gt;&lt;P&gt;Then use Conda install arcpy=2.9 without issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;BR /&gt;Vicky&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 05:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1235279#M62689</guid>
      <dc:creator>CoMAGOL_ADMINISTRATOR</dc:creator>
      <dc:date>2022-11-28T05:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Conda Installation Crashed with Standalone Environment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1236264#M62845</link>
      <description>&lt;P&gt;This one works!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 03:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1236264#M62845</guid>
      <dc:creator>ZhongyuYang</dc:creator>
      <dc:date>2022-11-30T03:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Conda Installation Crashed with Standalone Environment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1238956#M63138</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/491132"&gt;@eirikaa&lt;/a&gt; for the solution!&lt;/P&gt;&lt;P&gt;FWIW, I was able to include the jinja2 version in my initial environment creation command, as follows:&lt;/P&gt;&lt;PRE&gt;conda create --name hydro --channel esri python=3.9 arcpy=3.0 arcgis=2.0.1 &lt;STRONG&gt;jinja2=3.0.3&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;It's a trivial refinement, but saves the step of explicitly installing arcpy after creating the environment.&lt;/P&gt;&lt;P&gt;Note that specifying the other package versions aren't required. I have them in there for stability, but it works both ways.&lt;/P&gt;&lt;P&gt;Tested using conda 22.11.1 (from a miniconda single-user installation) on a machine with ArcGIS Pro 3.0.3 (I'm not sure if the Pro version matters when creating the environment, or just when using arcpy).&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 22:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-conda-installation-crashed-with-standalone/m-p/1238956#M63138</guid>
      <dc:creator>MichaelMannion</dc:creator>
      <dc:date>2022-12-07T22:55:18Z</dc:date>
    </item>
  </channel>
</rss>

