Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing new clean environment with arcpy fails on lxml (ImportError: DLL load failed while importing etree) #2114

Open
ew-pov opened this issue Oct 16, 2024 · 9 comments
Labels

Comments

@ew-pov
Copy link

ew-pov commented Oct 16, 2024

Describe the bug
Using very basic and simple conda commands, I wish to create a new "empty" environment (or even clone the original), but this fails with a DLL error, specifically: ImportError: DLL load failed while importing etree: Kan opgegeven procedure niet vinden. (FYI: "Kan opgegeven procedure niet vinden." (NL) = "Cannot find given procedure." (EN)).

To Reproduce
Steps to reproduce the behavior:

conda create --name gis33 python arcpy=3.3

error:

WARNING: A space was detected in your requested environment path
'C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis33'
Spaces in paths can sometimes be problematic.
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis33

  added / updated specs:
    - arcpy=3.3
    - python


**SNIP**

The following NEW packages will be INSTALLED:

  anyio              pkgs/main/win-64::anyio-4.2.0-py311haa95532_0
  appdirs            pkgs/main/noarch::appdirs-1.4.4-pyhd3eb1b0_0
  arcgis             esri/win-64::arcgis-2.3.0.2-py311_73
  arcgispro          esri/win-64::arcgispro-3.3-0
  arcpy              esri/win-64::arcpy-3.3-py311_arcgispro_52583
  arcpy-base         esri/win-64::arcpy-base-3.3-py311_52583
  argon2-cffi        pkgs/main/noarch::argon2-cffi-21.3.0-pyhd3eb1b0_0
  argon2-cffi-bindi~ pkgs/main/win-64::argon2-cffi-bindings-21.2.0-py311h2bbff1b_0
  arrow-cpp          esri/win-64::arrow-cpp-15.0.0-1
  asttokens          pkgs/main/noarch::asttokens-2.0.5-pyhd3eb1b0_0
  attrs              pkgs/main/win-64::attrs-23.1.0-py311haa95532_0
  azure-core         esri/noarch::azure-core-1.12.0-py_0
  azure-storage-blob esri/noarch::azure-storage-blob-12.8.0-py_0
  babel              esri/win-64::babel-2.11.0-py311_1
  beautifulsoup4     pkgs/main/win-64::beautifulsoup4-4.12.3-py311haa95532_0
  black              esri/win-64::black-23.10.1-py311_2
  blas               pkgs/main/win-64::blas-1.0-mkl
  bleach             pkgs/main/noarch::bleach-4.1.0-pyhd3eb1b0_0
  blinker            pkgs/main/win-64::blinker-1.6.2-py311haa95532_0
  bottleneck         pkgs/main/win-64::bottleneck-1.3.7-py311hd7041d2_0
  brotli             esri/win-64::brotli-1.0.9-0
  brotli-bin         esri/win-64::brotli-bin-1.0.9-0
  brotli-python      pkgs/main/win-64::brotli-python-1.0.9-py311hd77b12b_8
  c-ares             esri/win-64::c-ares-1.19.1-0
  cachetools         pkgs/main/win-64::cachetools-5.3.3-py311haa95532_0
  certifi            pkgs/main/win-64::certifi-2024.8.30-py311haa95532_0
  cffi               pkgs/main/win-64::cffi-1.17.1-py311h827c3e9_0
  cftime             esri/win-64::cftime-1.6.3-py311_0
  chardet            pkgs/main/win-64::chardet-4.0.0-py311haa95532_1003
  charset-normalizer pkgs/main/noarch::charset-normalizer-3.3.2-pyhd3eb1b0_0
  click              pkgs/main/win-64::click-8.1.7-py311haa95532_0
  cloudpickle        pkgs/main/win-64::cloudpickle-3.0.0-py311haa95532_0
  colorama           pkgs/main/win-64::colorama-0.4.6-py311haa95532_0
  contourpy          pkgs/main/win-64::contourpy-1.2.0-py311h59b6b97_0
  cppzmq             esri/win-64::cppzmq-4.9.0-0
  cryptography       esri/win-64::cryptography-43.0.1-py311_0
  cycler             pkgs/main/noarch::cycler-0.11.0-pyhd3eb1b0_0
  cytoolz            pkgs/main/win-64::cytoolz-0.12.2-py311h2bbff1b_0
  dask               esri/noarch::dask-2023.3.2-py_0
  dask-core          esri/noarch::dask-core-2023.3.2-py_0
  debugpy            pkgs/main/win-64::debugpy-1.6.7-py311hd77b12b_0
  decorator          pkgs/main/noarch::decorator-5.1.1-pyhd3eb1b0_0
  defusedxml         pkgs/main/noarch::defusedxml-0.7.1-pyhd3eb1b0_0
  distributed        esri/noarch::distributed-2023.3.2-py_0
  dpcpp-cpp-rt       esri/win-64::dpcpp-cpp-rt-2022.2.1-arcgispro_19741
  entrypoints        pkgs/main/win-64::entrypoints-0.4-py311haa95532_0
  et_xmlfile         pkgs/main/win-64::et_xmlfile-1.1.0-py311haa95532_0
  exceptiongroup     esri/noarch::exceptiongroup-1.0.0rc9-pyhd8ed1ab_0
  executing          pkgs/main/noarch::executing-0.8.3-pyhd3eb1b0_0
  flake8             pkgs/main/win-64::flake8-7.1.1-py311haa95532_0
  fonttools          pkgs/main/win-64::fonttools-4.51.0-py311h2bbff1b_0
  freetype           esri/win-64::freetype-2.13.2-1
  fsspec             pkgs/main/win-64::fsspec-2024.6.1-py311haa95532_0
  future             esri/win-64::future-0.18.3-py311_0
  gdal               esri/win-64::gdal-3.9.2-arcgispro_py311_17844
  geomet             esri/noarch::geomet-1.0.0-py_0
  greenlet           pkgs/main/win-64::greenlet-3.0.1-py311hd77b12b_0
  h5py               esri/win-64::h5py-3.9.0-arcgispro_py311_8
  icc_rt             esri/win-64::icc_rt-2022.2.1-arcgispro_19741
  idna               pkgs/main/win-64::idna-3.7-py311haa95532_0
  importlib-metadata pkgs/main/win-64::importlib-metadata-7.0.1-py311haa95532_0
  importlib_metadata pkgs/main/noarch::importlib_metadata-7.0.1-hd3eb1b0_0
  iniconfig          esri/noarch::iniconfig-1.1.1-pyhd3eb1b0_0
  intel-cmplr-lib-rt esri/win-64::intel-cmplr-lib-rt-2022.2.1-arcgispro_19741
  intel-fortran-rt   esri/win-64::intel-fortran-rt-2022.2.1-arcgispro_19741
  intel-openmp       esri/win-64::intel-openmp-2022.2.1-arcgispro_19741
  ipykernel          esri/noarch::ipykernel-6.29.5-pyh5f5efe1_0
  ipython            esri/noarch::ipython-8.18.1-pyh3a91677_1
  ipython_genutils   pkgs/main/noarch::ipython_genutils-0.2.0-pyhd3eb1b0_1
  ipywidgets         esri/noarch::ipywidgets-7.7.2-py_0
  isodate            esri/noarch::isodate-0.6.0-py_0
  jdcal              pkgs/main/noarch::jdcal-1.4.1-pyhd3eb1b0_0
  jedi               esri/noarch::jedi-0.18.2-py_1
  jinja2             pkgs/main/win-64::jinja2-3.1.4-py311haa95532_0
  jpeg               esri/win-64::jpeg-9e-0
  json5              esri/noarch::json5-0.9.25-py_0
  jsonschema         pkgs/main/win-64::jsonschema-4.23.0-py311haa95532_0
  jsonschema-specif~ pkgs/main/win-64::jsonschema-specifications-2023.7.1-py311haa95532_0
  jupyter_client     esri/noarch::jupyter_client-6.1.12-py_0
  jupyter_console    esri/noarch::jupyter_console-6.4.2-py_0
  jupyter_contrib_c~ esri/noarch::jupyter_contrib_core-0.4.0-py_0
  jupyter_contrib_n~ esri/noarch::jupyter_contrib_nbextensions-0.6.0-py_2
  jupyter_core       esri/win-64::jupyter_core-5.5.1-py311_1
  jupyter_highlight~ esri/noarch::jupyter_highlight_selected_word-0.2.0-py_4
  jupyter_latex_envs esri/noarch::jupyter_latex_envs-1.4.6-py_5
  jupyter_nbextensi~ esri/noarch::jupyter_nbextensions_configurator-0.4.1-py_3
  jupyter_server     esri/noarch::jupyter_server-1.21.0-py_0
  jupyterlab         esri/noarch::jupyterlab-3.4.8-py_0
  jupyterlab_pygmen~ esri/noarch::jupyterlab_pygments-0.3.0-py_1
  jupyterlab_server  esri/noarch::jupyterlab_server-2.27.3-py_0
  jupyterlab_widgets esri/noarch::jupyterlab_widgets-3.0.13-py_0
  keyring            esri/win-64::keyring-24.3.0-py311_1
  kiwisolver         pkgs/main/win-64::kiwisolver-1.4.4-py311hd77b12b_0
  krb5               esri/win-64::krb5-1.21.3-1
  libabseil          esri/win-64::libabseil-20230125.3-0
  libbrotlicommon    esri/win-64::libbrotlicommon-1.0.9-0
  libbrotlidec       esri/win-64::libbrotlidec-1.0.9-0
  libbrotlienc       esri/win-64::libbrotlienc-1.0.9-0
  libdeflate         esri/win-64::libdeflate-1.20-1
  libpng             esri/win-64::libpng-1.6.43-1
  libprotobuf        esri/win-64::libprotobuf-3.21.12-4
  libsodium          esri/win-64::libsodium-1.0.18-5
  libthrift          esri/win-64::libthrift-0.19.0-2
  libtiff            esri/win-64::libtiff-4.6.0-4
  libutf8proc        esri/win-64::libutf8proc-2.8.0-0
  libxml2            esri/win-64::libxml2-2.12.9-arcgispro_0
  libxslt            esri/win-64::libxslt-1.1.42-0
  locket             pkgs/main/win-64::locket-1.0.0-py311haa95532_0
  lxml               esri/win-64::lxml-5.3.0-py311_0
  lz4                pkgs/main/win-64::lz4-4.3.2-py311h2bbff1b_0
  lz4-c              esri/win-64::lz4-c-1.9.4-1
  markupsafe         pkgs/main/win-64::markupsafe-2.1.3-py311h2bbff1b_0
  matplotlib         esri/win-64::matplotlib-3.6.3-py311_arcgispro_2
  matplotlib-base    esri/win-64::matplotlib-base-3.6.3-py311_arcgispro_2
  matplotlib-inline  pkgs/main/win-64::matplotlib-inline-0.1.6-py311haa95532_0
  mccabe             pkgs/main/noarch::mccabe-0.7.0-pyhd3eb1b0_0
  mistune            pkgs/main/win-64::mistune-2.0.4-py311haa95532_0
  mkl                esri/win-64::mkl-2022.2.1-arcgispro_19755
  mkl-service        esri/win-64::mkl-service-2.4.1-py311_arcgispro_0
  mkl_fft            esri/win-64::mkl_fft-1.3.10-py311_arcgispro_0
  mkl_random         esri/win-64::mkl_random-1.2.7-py311_arcgispro_0
  mpmath             pkgs/main/win-64::mpmath-1.3.0-py311haa95532_0
  msgpack-python     pkgs/main/win-64::msgpack-python-1.0.3-py311h59b6b97_0
  msrest             esri/noarch::msrest-0.6.21-py_0
  mypy_extensions    pkgs/main/win-64::mypy_extensions-1.0.0-py311haa95532_0
  nbclassic          esri/noarch::nbclassic-1.1.0-py_1
  nbclient           esri/noarch::nbclient-0.8.0-py_0
  nbconvert          esri/noarch::nbconvert-7.16.4-py_0
  nbformat           esri/noarch::nbformat-5.10.4-py_0
  nest-asyncio       pkgs/main/win-64::nest-asyncio-1.6.0-py311haa95532_0
  netcdf4            esri/win-64::netcdf4-1.6.4-py311_arcgispro_3
  networkx           pkgs/main/win-64::networkx-3.3-py311haa95532_0
  nlohmann_json      esri/win-64::nlohmann_json-3.11.2-0
  nose               pkgs/main/noarch::nose-1.3.7-pyhd3eb1b0_1008
  notebook           esri/noarch::notebook-6.4.12-py_0
  notebook-shim      esri/noarch::notebook-shim-0.2.4-py_0
  ntlm-auth          esri/noarch::ntlm-auth-1.4.0-py_0
  numexpr            esri/win-64::numexpr-2.8.4-py311_2
  numpy              esri/win-64::numpy-1.24.3-py311_1
  numpy-base         esri/win-64::numpy-base-1.24.3-py311_1
  oauthlib           esri/noarch::oauthlib-3.2.2-py_0
  olefile            pkgs/main/noarch::olefile-0.46-pyhd3eb1b0_0
  openpyxl           pkgs/main/win-64::openpyxl-3.1.5-py311h827c3e9_0
  openssl            esri/win-64::openssl-3.0.15-1
  orc                esri/win-64::orc-1.8.3-2
  packaging          pkgs/main/win-64::packaging-24.1-py311haa95532_0
  pandas             esri/win-64::pandas-2.0.2-py311_0
  pandocfilters      pkgs/main/noarch::pandocfilters-1.5.0-pyhd3eb1b0_0
  parso              pkgs/main/noarch::parso-0.8.3-pyhd3eb1b0_0
  partd              pkgs/main/win-64::partd-1.4.1-py311haa95532_0
  pathspec           esri/noarch::pathspec-0.9.0-py_0
  patsy              pkgs/main/win-64::patsy-0.5.6-py311haa95532_0
  pefile             esri/noarch::pefile-2022.5.30-pyhd8ed1ab_0
  pickleshare        pkgs/main/noarch::pickleshare-0.7.5-pyhd3eb1b0_1003
  pillow             esri/win-64::pillow-10.4.0-py311_3
  pip                esri/win-64::pip-23.3.2-py311_0
  platformdirs       pkgs/main/win-64::platformdirs-3.10.0-py311haa95532_0
  pluggy             pkgs/main/win-64::pluggy-1.0.0-py311haa95532_1
  pro_notebook_inte~ esri/win-64::pro_notebook_integration-3.3-py311_3
  prometheus_client  esri/noarch::prometheus_client-0.20.0-py_0
  prompt-toolkit     esri/noarch::prompt-toolkit-3.0.47-py_0
  prompt_toolkit     esri/noarch::prompt_toolkit-3.0.47-0
  protobuf           esri/win-64::protobuf-4.21.12-py311_5
  psutil             pkgs/main/win-64::psutil-5.9.0-py311h2bbff1b_0
  pure_eval          pkgs/main/noarch::pure_eval-0.2.2-pyhd3eb1b0_0
  puremagic          esri/noarch::puremagic-1.15-py_0
  pyarrow            esri/win-64::pyarrow-15.0.0-py311_0
  pybind11           esri/win-64::pybind11-2.10.4-2
  pybind11_json      esri/win-64::pybind11_json-0.2.13-2
  pycodestyle        pkgs/main/win-64::pycodestyle-2.12.1-py311haa95532_0
  pycparser          pkgs/main/noarch::pycparser-2.21-pyhd3eb1b0_0
  pyflakes           pkgs/main/win-64::pyflakes-3.2.0-py311haa95532_0
  pygments           esri/noarch::pygments-2.18.0-py_0
  pyjwt              esri/noarch::pyjwt-2.4.0-py_1
  pylerc             esri/noarch::pylerc-4.0-py_0
  pyodbc             pkgs/main/win-64::pyodbc-5.1.0-py311h5da7b33_0
  pyparsing          pkgs/main/win-64::pyparsing-3.1.2-py311haa95532_0
  pypdf              esri/noarch::pypdf-4.3.1-py_1
  pypdf2             esri/noarch::pypdf2-1.26.0-py_4
  pyshp              pkgs/main/win-64::pyshp-2.3.1-py311haa95532_0
  pysocks            pkgs/main/win-64::pysocks-1.7.1-py311haa95532_0
  pyspnego           esri/win-64::pyspnego-0.11.1-py311_0
  pytest             esri/win-64::pytest-7.4.3-py311_0
  python             esri/win-64::python-3.11.10-0
  python-dateutil    pkgs/main/win-64::python-dateutil-2.9.0post0-py311haa95532_2
  python-fastjsonsc~ pkgs/main/win-64::python-fastjsonschema-2.16.2-py311haa95532_0
  python-gssapi      esri/win-64::python-gssapi-1.8.3-py311_1
  pytz               esri/win-64::pytz-2022.6-py311_0
  pywin32-ctypes     esri/win-64::pywin32-ctypes-0.2.0-py311_1
  pywin32-security   esri/win-64::pywin32-security-306-py311_2
  pywinpty           pkgs/main/win-64::pywinpty-2.0.10-py311h5da7b33_0
  pyyaml             pkgs/main/win-64::pyyaml-6.0.2-py311h827c3e9_0
  pyzmq              esri/win-64::pyzmq-25.1.2-py311_0
  re2                esri/win-64::re2-2023.06.02-0
  referencing        pkgs/main/win-64::referencing-0.30.2-py311haa95532_0
  regex              pkgs/main/win-64::regex-2024.9.11-py311h827c3e9_0
  requests           pkgs/main/win-64::requests-2.32.3-py311haa95532_0
  requests-gssapi    esri/noarch::requests-gssapi-1.2.3-py_2
  requests-kerberos  esri/noarch::requests-kerberos-0.14.0-pyh424387f_4
  requests-oauthlib  pkgs/main/win-64::requests-oauthlib-2.0.0-py311haa95532_0
  requests-toolbelt  esri/noarch::requests-toolbelt-1.0.0-py_0
  rpds-py            pkgs/main/win-64::rpds-py-0.10.6-py311h062c2fa_0
  ruamel.yaml        pkgs/main/win-64::ruamel.yaml-0.18.6-py311h827c3e9_0
  ruamel.yaml.clib   pkgs/main/win-64::ruamel.yaml.clib-0.2.8-py311h827c3e9_0
  saspy              esri/noarch::saspy-4.3.2-py_1
  scipy              esri/win-64::scipy-1.9.3-py311_4
  seaborn            pkgs/main/win-64::seaborn-0.13.2-py311haa95532_0
  send2trash         pkgs/main/win-64::send2trash-1.8.2-py311haa95532_0
  setuptools         esri/win-64::setuptools-74.1.2-py311_0
  six                esri/noarch::six-1.16.0-py_0
  snappy             esri/win-64::snappy-1.2.1-0
  sniffio            pkgs/main/win-64::sniffio-1.3.0-py311haa95532_0
  sortedcontainers   pkgs/main/noarch::sortedcontainers-2.4.0-pyhd3eb1b0_0
  soupsieve          pkgs/main/win-64::soupsieve-2.5-py311haa95532_0
  sqlalchemy         pkgs/main/win-64::sqlalchemy-1.4.51-py311h2bbff1b_0
  sqlite             esri/win-64::sqlite-3.46.1-0
  sspilib            esri/win-64::sspilib-0.1.0-py311_0
  stack_data         esri/noarch::stack_data-0.5.1-py_0
  statsmodels        pkgs/main/win-64::statsmodels-0.14.2-py311h57dcf0c_0
  swat               esri/win-64::swat-1.13.3-py311_1
  sympy              esri/win-64::sympy-1.12-py311_0
  tblib              pkgs/main/noarch::tblib-1.7.0-pyhd3eb1b0_0
  terminado          pkgs/main/win-64::terminado-0.17.1-py311haa95532_0
  testpath           esri/noarch::testpath-0.5.0-py_0
  tinycss2           esri/noarch::tinycss2-1.1.1-py_0
  toml               pkgs/main/noarch::toml-0.10.2-pyhd3eb1b0_0
  tomli              pkgs/main/win-64::tomli-2.0.1-py311haa95532_0
  toolz              pkgs/main/win-64::toolz-0.12.0-py311haa95532_0
  tornado            pkgs/main/win-64::tornado-6.4.1-py311h827c3e9_0
  tqdm               pkgs/main/win-64::tqdm-4.66.5-py311h746a85d_0
  traitlets          esri/noarch::traitlets-5.5.0-py_0
  truststore         esri/noarch::truststore-0.9.1-py_0
  typing-extensions  pkgs/main/win-64::typing-extensions-4.11.0-py311haa95532_0
  typing_extensions  pkgs/main/win-64::typing_extensions-4.11.0-py311haa95532_0
  tzdata             pkgs/main/noarch::tzdata-2024b-h04d1e81_0
  ujson              pkgs/main/win-64::ujson-5.10.0-py311h5da7b33_0
  unicodedata2       pkgs/main/win-64::unicodedata2-15.1.0-py311h2bbff1b_0
  urllib3            pkgs/main/win-64::urllib3-2.2.3-py311haa95532_0
  vc                 pkgs/main/win-64::vc-14.40-h2eaa2aa_1
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.40.33807-h98bb1dd_1
  wcwidth            pkgs/main/noarch::wcwidth-0.2.5-pyhd3eb1b0_0
  webencodings       pkgs/main/win-64::webencodings-0.5.1-py311haa95532_1
  websocket-client   pkgs/main/win-64::websocket-client-1.8.0-py311haa95532_0
  wheel              pkgs/main/win-64::wheel-0.44.0-py311haa95532_0
  widgetsnbextension esri/noarch::widgetsnbextension-4.0.13-py_0
  win_inet_pton      esri/win-64::win_inet_pton-1.1.0-py311_1
  winkerberos        esri/win-64::winkerberos-0.9.1-py311_0
  winpty             pkgs/main/win-64::winpty-0.4.3-4
  xarray             pkgs/main/win-64::xarray-2023.6.0-py311haa95532_0
  xeus               esri/win-64::xeus-3.0.5-0
  xeus-python        esri/win-64::xeus-python-0.15.8-py311_2
  xeus-zmq           esri/win-64::xeus-zmq-1.0.2-3
  xlrd               pkgs/main/noarch::xlrd-2.0.1-pyhd3eb1b0_1
  xlwt               pkgs/main/win-64::xlwt-1.3.0-py311haa95532_0
  xtl                esri/win-64::xtl-0.7.5-0
  xz                 esri/win-64::xz-5.4.7-0
  yaml               esri/win-64::yaml-0.2.5-0
  zeromq             esri/win-64::zeromq-4.3.5-0
  zict               esri/noarch::zict-3.0.0-py_0
  zipp               pkgs/main/win-64::zipp-3.20.2-py311haa95532_0
  zlib               esri/win-64::zlib-1.3.1-1
  zlib-ng            esri/win-64::zlib-ng-2.1.6-2
  zstd               esri/win-64::zstd-1.5.6-1


Proceed ([y]/n)?


Downloading and Extracting Packages
zipp-3.20.2          | 30 KB     | #################################### | 100%
pyyaml-6.0.2         | 205 KB    | #################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: / Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis33\Lib\site-packages\arcpy_init.py", line 234, in install
    from lxml import etree
ImportError: DLL load failed while importing etree: Kan opgegeven procedure niet vinden.

- Uninstalling prior versions of arcgis widget
Installing C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis33\Lib\site-packages\arcgis\widgets/js/dist -> arcgis
Up to date: C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis33\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js
Up to date: C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis33\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js.map
Up to date: C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis33\share\jupyter\nbextensions\arcgis\extension.js
- Validating: ok

    To initialize this nbextension in the browser every time the notebook (or other app) loads:

          jupyter nbextension enable arcgis --py --sys-prefix

Enabling notebook extension arcgis/extension...
      - Validating: ok

done
ERROR conda.core.link:_execute(730): An error occurred while installing package 'esri::arcpy-base-3.3-py311_52583'.
Rolling back transaction: done

LinkError: post-link script failed for package esri::arcpy-base-3.3-py311_52583
location of failed script: C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis33\Scripts\.arcpy-base-post-link.bat
==> script messages <==
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis33\Lib\site-packages\arcpy_init.py", line 234, in install
    from lxml import etree
ImportError: DLL load failed while importing etree: Kan opgegeven procedure niet vinden.

==> script output <==
stdout: Unable to link ArcPy DLLs to environment.

stderr:
return code: 1

()

Maybe it is due to the version of arcpy (3.3) and ArcGIS Desktop Pro (3.2.2) that things do not work. Considering we have a licensing server that should enable using different versions, it might work???

Nonetheless, when I do the same for arcpy version 3.2 (which matches ArcGIS Desktop):

conda create --name gis32 python arcpy=3.2

it again fails.

error:

WARNING: A space was detected in your requested environment path
'C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis32'
Spaces in paths can sometimes be problematic.
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis32

  added / updated specs:
    - arcpy=3.2
    - python


**SNIP**

The following NEW packages will be INSTALLED:

  anyio              pkgs/main/win-64::anyio-3.5.0-py39haa95532_0
  appdirs            pkgs/main/noarch::appdirs-1.4.4-pyhd3eb1b0_0
  arcgis             esri/win-64::arcgis-2.2.0.3-py39_54
  arcgispro          esri/win-64::arcgispro-3.2-0
  arcpy              esri/win-64::arcpy-3.2-py39_arcgispro_49743
  arcpy-base         esri/win-64::arcpy-base-3.2-py39_49743
  argon2-cffi        pkgs/main/noarch::argon2-cffi-21.3.0-pyhd3eb1b0_0
  argon2-cffi-bindi~ pkgs/main/win-64::argon2-cffi-bindings-21.2.0-py39h2bbff1b_0
  arrow-cpp          esri/win-64::arrow-cpp-12.0.0-2
  asttokens          pkgs/main/noarch::asttokens-2.0.5-pyhd3eb1b0_0
  attrs              pkgs/main/win-64::attrs-23.1.0-py39haa95532_0
  azure-core         esri/noarch::azure-core-1.12.0-py_0
  azure-storage-blob esri/noarch::azure-storage-blob-12.8.0-py_0
  babel              esri/win-64::babel-2.11.0-py39_1
  beautifulsoup4     pkgs/main/win-64::beautifulsoup4-4.12.3-py39haa95532_0
  black              esri/win-64::black-23.10.1-py39_2
  blas               pkgs/main/win-64::blas-1.0-mkl
  bleach             pkgs/main/noarch::bleach-4.1.0-pyhd3eb1b0_0
  blinker            pkgs/main/win-64::blinker-1.6.2-py39haa95532_0
  bottleneck         pkgs/main/win-64::bottleneck-1.3.7-py39h9128911_0
  brotli             esri/win-64::brotli-1.0.9-0
  brotli-bin         esri/win-64::brotli-bin-1.0.9-0
  brotli-python      pkgs/main/win-64::brotli-python-1.0.9-py39hd77b12b_8
  c-ares             esri/win-64::c-ares-1.19.1-0
  cachetools         pkgs/main/win-64::cachetools-5.3.3-py39haa95532_0
  certifi            pkgs/main/win-64::certifi-2024.8.30-py39haa95532_0
  cffi               pkgs/main/win-64::cffi-1.17.1-py39h827c3e9_0
  cftime             esri/win-64::cftime-1.6.3-py39_0
  chardet            pkgs/main/win-64::chardet-4.0.0-py39haa95532_1003
  charset-normalizer pkgs/main/noarch::charset-normalizer-3.3.2-pyhd3eb1b0_0
  click              pkgs/main/win-64::click-8.1.7-py39haa95532_0
  cloudpickle        pkgs/main/win-64::cloudpickle-3.0.0-py39haa95532_0
  colorama           pkgs/main/win-64::colorama-0.4.6-py39haa95532_0
  contourpy          pkgs/main/win-64::contourpy-1.2.0-py39h59b6b97_0
  cppzmq             esri/win-64::cppzmq-4.9.0-0
  cryptography       esri/win-64::cryptography-43.0.1-py39_0
  cycler             pkgs/main/noarch::cycler-0.11.0-pyhd3eb1b0_0
  cytoolz            pkgs/main/win-64::cytoolz-0.12.2-py39h2bbff1b_0
  dask               esri/noarch::dask-2023.3.2-py_0
  dask-core          esri/noarch::dask-core-2023.3.2-py_0
  debugpy            pkgs/main/win-64::debugpy-1.6.7-py39hd77b12b_0
  decorator          pkgs/main/noarch::decorator-5.1.1-pyhd3eb1b0_0
  defusedxml         pkgs/main/noarch::defusedxml-0.7.1-pyhd3eb1b0_0
  distributed        esri/noarch::distributed-2023.3.2-py_0
  dpcpp-cpp-rt       esri/win-64::dpcpp-cpp-rt-2022.2.1-arcgispro_19741
  entrypoints        pkgs/main/win-64::entrypoints-0.4-py39haa95532_0
  et_xmlfile         pkgs/main/win-64::et_xmlfile-1.1.0-py39haa95532_0
  exceptiongroup     esri/noarch::exceptiongroup-1.0.0rc9-pyhd8ed1ab_0
  executing          pkgs/main/noarch::executing-0.8.3-pyhd3eb1b0_0
  flake8             pkgs/main/win-64::flake8-7.1.1-py39haa95532_0
  fonttools          pkgs/main/win-64::fonttools-4.51.0-py39h2bbff1b_0
  freetype           esri/win-64::freetype-2.13.2-1
  fsspec             pkgs/main/win-64::fsspec-2024.6.1-py39haa95532_0
  future             esri/win-64::future-0.18.3-py39_0
  gdal               esri/win-64::gdal-3.7.0-arcgispro_py39_17195
  geomet             esri/noarch::geomet-1.0.0-py_0
  greenlet           pkgs/main/win-64::greenlet-3.0.1-py39hd77b12b_0
  h5py               esri/win-64::h5py-3.9.0-arcgispro_py39_1
  icc_rt             esri/win-64::icc_rt-2022.2.1-arcgispro_19741
  idna               pkgs/main/win-64::idna-3.7-py39haa95532_0
  importlib-metadata pkgs/main/win-64::importlib-metadata-7.0.1-py39haa95532_0
  importlib_metadata pkgs/main/noarch::importlib_metadata-7.0.1-hd3eb1b0_0
  iniconfig          esri/noarch::iniconfig-1.1.1-pyhd3eb1b0_0
  intel-cmplr-lib-rt esri/win-64::intel-cmplr-lib-rt-2022.2.1-arcgispro_19741
  intel-fortran-rt   esri/win-64::intel-fortran-rt-2022.2.1-arcgispro_19741
  intel-openmp       esri/win-64::intel-openmp-2022.2.1-arcgispro_19741
  ipykernel          esri/noarch::ipykernel-6.29.5-pyh5f5efe1_0
  ipython            esri/noarch::ipython-8.18.1-pyh3a91677_1
  ipython_genutils   pkgs/main/noarch::ipython_genutils-0.2.0-pyhd3eb1b0_1
  ipywidgets         esri/noarch::ipywidgets-7.7.2-py_0
  isodate            esri/noarch::isodate-0.6.0-py_0
  jdcal              pkgs/main/noarch::jdcal-1.4.1-pyhd3eb1b0_0
  jedi               esri/noarch::jedi-0.18.2-py_1
  jinja2             pkgs/main/noarch::jinja2-3.0.3-pyhd3eb1b0_0
  jpeg               esri/win-64::jpeg-9e-0
  json5              esri/noarch::json5-0.9.25-py_0
  jsonschema         pkgs/main/win-64::jsonschema-4.23.0-py39haa95532_0
  jsonschema-specif~ pkgs/main/win-64::jsonschema-specifications-2023.7.1-py39haa95532_0
  jupyter_client     esri/noarch::jupyter_client-6.1.12-py_0
  jupyter_console    esri/noarch::jupyter_console-6.4.2-py_0
  jupyter_contrib_c~ esri/noarch::jupyter_contrib_core-0.4.0-py_0
  jupyter_contrib_n~ esri/noarch::jupyter_contrib_nbextensions-0.6.0-py_2
  jupyter_core       esri/win-64::jupyter_core-5.5.1-py39_1
  jupyter_highlight~ esri/noarch::jupyter_highlight_selected_word-0.2.0-py_4
  jupyter_latex_envs esri/noarch::jupyter_latex_envs-1.4.6-py_5
  jupyter_nbextensi~ esri/noarch::jupyter_nbextensions_configurator-0.4.1-py_3
  jupyter_server     esri/noarch::jupyter_server-1.21.0-py_0
  jupyterlab         esri/noarch::jupyterlab-3.4.8-py_0
  jupyterlab_pygmen~ esri/noarch::jupyterlab_pygments-0.3.0-py_1
  jupyterlab_server  esri/noarch::jupyterlab_server-2.27.3-py_0
  jupyterlab_widgets esri/noarch::jupyterlab_widgets-3.0.13-py_0
  keyring            esri/win-64::keyring-24.3.0-py39_1
  kiwisolver         pkgs/main/win-64::kiwisolver-1.4.4-py39hd77b12b_0
  krb5               esri/win-64::krb5-1.21.3-1
  libabseil          esri/win-64::libabseil-20230125.3-0
  libbrotlicommon    esri/win-64::libbrotlicommon-1.0.9-0
  libbrotlidec       esri/win-64::libbrotlidec-1.0.9-0
  libbrotlienc       esri/win-64::libbrotlienc-1.0.9-0
  libdeflate         esri/win-64::libdeflate-1.20-1
  libpng             esri/win-64::libpng-1.6.43-1
  libprotobuf        esri/win-64::libprotobuf-3.21.12-4
  libsodium          esri/win-64::libsodium-1.0.18-5
  libthrift          esri/win-64::libthrift-0.18.1-0
  libtiff            esri/win-64::libtiff-4.6.0-4
  libutf8proc        esri/win-64::libutf8proc-2.8.0-0
  libxml2            esri/win-64::libxml2-2.12.9-arcgispro_0
  libxslt            esri/win-64::libxslt-1.1.42-0
  locket             pkgs/main/win-64::locket-1.0.0-py39haa95532_0
  lxml               esri/win-64::lxml-5.3.0-py39_0
  lz4                pkgs/main/win-64::lz4-4.3.2-py39h2bbff1b_0
  lz4-c              esri/win-64::lz4-c-1.9.4-1
  markupsafe         pkgs/main/win-64::markupsafe-2.1.3-py39h2bbff1b_0
  matplotlib         esri/win-64::matplotlib-3.6.3-py39_arcgispro_2
  matplotlib-base    esri/win-64::matplotlib-base-3.6.3-py39_arcgispro_2
  matplotlib-inline  pkgs/main/win-64::matplotlib-inline-0.1.6-py39haa95532_0
  mccabe             pkgs/main/noarch::mccabe-0.7.0-pyhd3eb1b0_0
  mistune            pkgs/main/win-64::mistune-2.0.4-py39haa95532_0
  mkl                esri/win-64::mkl-2022.2.1-arcgispro_19755
  mkl-service        esri/win-64::mkl-service-2.4.1-py39_arcgispro_0
  mkl_fft            esri/win-64::mkl_fft-1.3.10-py39_arcgispro_0
  mkl_random         esri/win-64::mkl_random-1.2.7-py39_arcgispro_0
  mpmath             pkgs/main/win-64::mpmath-1.3.0-py39haa95532_0
  msgpack-python     pkgs/main/win-64::msgpack-python-1.0.3-py39h59b6b97_0
  msrest             esri/noarch::msrest-0.6.21-py_0
  mypy_extensions    pkgs/main/win-64::mypy_extensions-1.0.0-py39haa95532_0
  nbclassic          esri/noarch::nbclassic-1.1.0-py_1
  nbclient           esri/noarch::nbclient-0.8.0-py_0
  nbconvert          esri/noarch::nbconvert-7.16.4-py_0
  nbformat           esri/noarch::nbformat-5.10.4-py_0
  nest-asyncio       pkgs/main/win-64::nest-asyncio-1.6.0-py39haa95532_0
  netcdf4            esri/win-64::netcdf4-1.6.4-py39_arcgispro_0
  networkx           pkgs/main/win-64::networkx-3.2.1-py39haa95532_0
  nlohmann_json      esri/win-64::nlohmann_json-3.11.2-0
  nose               pkgs/main/noarch::nose-1.3.7-pyhd3eb1b0_1008
  notebook           esri/noarch::notebook-6.4.12-py_0
  notebook-shim      esri/noarch::notebook-shim-0.2.4-py_0
  ntlm-auth          esri/noarch::ntlm-auth-1.4.0-py_0
  numexpr            esri/win-64::numexpr-2.8.4-py39_2
  numpy              esri/win-64::numpy-1.22.4-py39_0
  numpy-base         esri/win-64::numpy-base-1.22.4-py39_0
  oauthlib           esri/noarch::oauthlib-3.2.2-py_0
  olefile            pkgs/main/noarch::olefile-0.46-pyhd3eb1b0_0
  openpyxl           pkgs/main/win-64::openpyxl-3.1.5-py39h827c3e9_0
  openssl            esri/win-64::openssl-3.0.15-1
  orc                esri/win-64::orc-1.8.3-2
  packaging          pkgs/main/win-64::packaging-24.1-py39haa95532_0
  pandas             esri/win-64::pandas-2.0.2-py39_0
  pandocfilters      pkgs/main/noarch::pandocfilters-1.5.0-pyhd3eb1b0_0
  parso              pkgs/main/noarch::parso-0.8.3-pyhd3eb1b0_0
  partd              pkgs/main/win-64::partd-1.4.1-py39haa95532_0
  pathspec           esri/noarch::pathspec-0.9.0-py_0
  patsy              pkgs/main/win-64::patsy-0.5.6-py39haa95532_0
  pefile             esri/noarch::pefile-2022.5.30-pyhd8ed1ab_0
  pickleshare        pkgs/main/noarch::pickleshare-0.7.5-pyhd3eb1b0_1003
  pillow             esri/win-64::pillow-10.4.0-py39_3
  pip                esri/win-64::pip-23.3.2-py39_0
  platformdirs       pkgs/main/win-64::platformdirs-3.10.0-py39haa95532_0
  pluggy             pkgs/main/win-64::pluggy-1.0.0-py39haa95532_1
  pro_notebook_inte~ esri/win-64::pro_notebook_integration-3.2-py39_5
  prometheus_client  esri/noarch::prometheus_client-0.20.0-py_0
  prompt-toolkit     esri/noarch::prompt-toolkit-3.0.47-py_0
  prompt_toolkit     esri/noarch::prompt_toolkit-3.0.47-0
  protobuf           esri/win-64::protobuf-3.21.12-py39_1
  psutil             pkgs/main/win-64::psutil-5.9.0-py39h2bbff1b_0
  pure_eval          pkgs/main/noarch::pure_eval-0.2.2-pyhd3eb1b0_0
  pyarrow            esri/win-64::pyarrow-12.0.0-py39_4
  pybind11           esri/win-64::pybind11-2.10.4-2
  pybind11_json      esri/win-64::pybind11_json-0.2.13-2
  pycodestyle        pkgs/main/win-64::pycodestyle-2.12.1-py39haa95532_0
  pycparser          pkgs/main/noarch::pycparser-2.21-pyhd3eb1b0_0
  pyflakes           pkgs/main/win-64::pyflakes-3.2.0-py39haa95532_0
  pygments           esri/noarch::pygments-2.18.0-py_0
  pyjwt              esri/noarch::pyjwt-2.4.0-py_1
  pylerc             esri/noarch::pylerc-4.0-py_0
  pyodbc             pkgs/main/win-64::pyodbc-5.1.0-py39h5da7b33_0
  pyparsing          pkgs/main/win-64::pyparsing-3.1.2-py39haa95532_0
  pypdf              esri/noarch::pypdf-4.3.1-py_1
  pypdf2             esri/noarch::pypdf2-1.26.0-py_4
  pyshp              pkgs/main/win-64::pyshp-2.3.1-py39haa95532_0
  pysocks            pkgs/main/win-64::pysocks-1.7.1-py39haa95532_0
  pyspnego           pkgs/main/win-64::pyspnego-0.9.2-py39h2bbff1b_1
  pytest             esri/win-64::pytest-7.4.3-py39_0
  python             esri/win-64::python-3.9.18-1
  python-certifi-wi~ esri/noarch::python-certifi-win32-1.6-py_0
  python-dateutil    pkgs/main/win-64::python-dateutil-2.9.0post0-py39haa95532_2
  python-fastjsonsc~ pkgs/main/win-64::python-fastjsonschema-2.16.2-py39haa95532_0
  python-gssapi      esri/win-64::python-gssapi-1.8.3-py39_1
  python_abi         esri/win-64::python_abi-3.9-1_cp39
  pytz               esri/win-64::pytz-2022.6-py39_0
  pywin32-ctypes     esri/win-64::pywin32-ctypes-0.2.0-py39_0
  pywin32-security   esri/win-64::pywin32-security-306-py39_2
  pywinpty           esri/win-64::pywinpty-2.0.1-py39_0
  pyyaml             pkgs/main/win-64::pyyaml-6.0.2-py39h827c3e9_0
  pyzmq              esri/win-64::pyzmq-25.1.2-py39_0
  re2                esri/win-64::re2-2023.06.02-0
  referencing        pkgs/main/win-64::referencing-0.30.2-py39haa95532_0
  regex              pkgs/main/win-64::regex-2024.9.11-py39h827c3e9_0
  requests           pkgs/main/win-64::requests-2.32.3-py39haa95532_0
  requests-gssapi    esri/noarch::requests-gssapi-1.2.3-py_2
  requests-kerberos  esri/noarch::requests-kerberos-0.14.0-pyh424387f_4
  requests-oauthlib  pkgs/main/win-64::requests-oauthlib-2.0.0-py39haa95532_0
  requests-toolbelt  esri/noarch::requests-toolbelt-1.0.0-py_0
  rpds-py            pkgs/main/win-64::rpds-py-0.10.6-py39h062c2fa_0
  ruamel.yaml        pkgs/main/win-64::ruamel.yaml-0.18.6-py39h827c3e9_0
  ruamel.yaml.clib   pkgs/main/win-64::ruamel.yaml.clib-0.2.8-py39h827c3e9_0
  saspy              esri/noarch::saspy-4.3.2-py_1
  scipy              esri/win-64::scipy-1.7.3-py39_3
  seaborn            pkgs/main/win-64::seaborn-0.13.2-py39haa95532_0
  send2trash         pkgs/main/win-64::send2trash-1.8.2-py39haa95532_0
  setuptools         esri/win-64::setuptools-74.1.2-py39_0
  six                esri/noarch::six-1.16.0-py_0
  snappy             esri/win-64::snappy-1.2.1-0
  sniffio            pkgs/main/win-64::sniffio-1.3.0-py39haa95532_0
  sortedcontainers   pkgs/main/noarch::sortedcontainers-2.4.0-pyhd3eb1b0_0
  soupsieve          pkgs/main/win-64::soupsieve-2.5-py39haa95532_0
  sqlalchemy         pkgs/main/win-64::sqlalchemy-1.4.51-py39h2bbff1b_0
  sqlite             esri/win-64::sqlite-3.46.1-0
  stack_data         esri/noarch::stack_data-0.5.1-py_0
  statsmodels        pkgs/main/win-64::statsmodels-0.14.0-py39h9128911_0
  swat               esri/win-64::swat-1.13.3-py39_1
  sympy              esri/win-64::sympy-1.12-py39_0
  tblib              pkgs/main/noarch::tblib-1.7.0-pyhd3eb1b0_0
  terminado          pkgs/main/win-64::terminado-0.17.1-py39haa95532_0
  testpath           esri/noarch::testpath-0.5.0-py_0
  tinycss2           esri/noarch::tinycss2-1.1.1-py_0
  toml               pkgs/main/noarch::toml-0.10.2-pyhd3eb1b0_0
  tomli              pkgs/main/win-64::tomli-2.0.1-py39haa95532_0
  toolz              pkgs/main/win-64::toolz-0.12.0-py39haa95532_0
  tornado            pkgs/main/win-64::tornado-6.4.1-py39h827c3e9_0
  tqdm               pkgs/main/win-64::tqdm-4.66.5-py39h9909e9c_0
  traitlets          esri/noarch::traitlets-5.5.0-py_0
  typing-extensions  pkgs/main/win-64::typing-extensions-4.11.0-py39haa95532_0
  typing_extensions  pkgs/main/win-64::typing_extensions-4.11.0-py39haa95532_0
  tzdata             pkgs/main/noarch::tzdata-2024b-h04d1e81_0
  ujson              pkgs/main/win-64::ujson-5.10.0-py39h5da7b33_0
  unicodedata2       pkgs/main/win-64::unicodedata2-15.1.0-py39h2bbff1b_0
  urllib3            pkgs/main/win-64::urllib3-2.2.3-py39haa95532_0
  vc                 pkgs/main/win-64::vc-14.40-h2eaa2aa_1
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.40.33807-h98bb1dd_1
  wcwidth            pkgs/main/noarch::wcwidth-0.2.5-pyhd3eb1b0_0
  webencodings       pkgs/main/win-64::webencodings-0.5.1-py39haa95532_1
  websocket-client   pkgs/main/win-64::websocket-client-1.8.0-py39haa95532_0
  wheel              pkgs/main/win-64::wheel-0.44.0-py39haa95532_0
  widgetsnbextension esri/noarch::widgetsnbextension-4.0.13-py_0
  win_inet_pton      esri/win-64::win_inet_pton-1.1.0-py39_1
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py39haa95532_2
  winkerberos        esri/win-64::winkerberos-0.9.1-py39_0
  winpty             pkgs/main/win-64::winpty-0.4.3-4
  wrapt              pkgs/main/win-64::wrapt-1.14.1-py39h2bbff1b_0
  xarray             pkgs/main/win-64::xarray-2023.6.0-py39haa95532_0
  xeus               esri/win-64::xeus-3.0.5-0
  xeus-python        esri/win-64::xeus-python-0.15.8-0
  xeus-zmq           esri/win-64::xeus-zmq-1.0.2-3
  xlrd               pkgs/main/noarch::xlrd-2.0.1-pyhd3eb1b0_1
  xlwt               pkgs/main/win-64::xlwt-1.3.0-py39haa95532_0
  xtl                esri/win-64::xtl-0.7.5-0
  xz                 esri/win-64::xz-5.4.7-0
  yaml               esri/win-64::yaml-0.2.5-0
  zeromq             esri/win-64::zeromq-4.3.5-0
  zict               esri/noarch::zict-3.0.0-py_0
  zipp               pkgs/main/win-64::zipp-3.20.2-py39haa95532_0
  zlib               esri/win-64::zlib-1.3.1-1
  zlib-ng            esri/win-64::zlib-ng-2.1.6-2
  zstd               esri/win-64::zstd-1.5.6-1


Proceed ([y]/n)?


Downloading and Extracting Packages
pyyaml-6.0.2         | 173 KB    | ##################################################################### | 100%
zipp-3.20.2          | 27 KB     | ##################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: / Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis32\lib\site-packages\arcpy_init.py", line 231, in install
    from lxml import etree
ImportError: DLL load failed while importing etree: Kan opgegeven procedure niet vinden.

/ Uninstalling prior versions of arcgis widget
Installing C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis32\lib\site-packages\arcgis\widgets/js/dist -> arcgis
Up to date: C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis32\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js
Up to date: C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis32\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js.map
Up to date: C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis32\share\jupyter\nbextensions\arcgis\extension.js
- Validating: ok

    To initialize this nbextension in the browser every time the notebook (or other app) loads:

          jupyter nbextension enable arcgis --py --sys-prefix

Enabling notebook extension arcgis/extension...
      - Validating: ok

done
ERROR conda.core.link:_execute(730): An error occurred while installing package 'esri::arcpy-base-3.2-py39_49743'.
Rolling back transaction: done

LinkError: post-link script failed for package esri::arcpy-base-3.2-py39_49743
location of failed script: C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis32\Scripts\.arcpy-base-post-link.bat
==> script messages <==
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\gis32\lib\site-packages\arcpy_init.py", line 231, in install
    from lxml import etree
ImportError: DLL load failed while importing etree: Kan opgegeven procedure niet vinden.

==> script output <==
stdout: Unable to link ArcPy DLLs to environment.

stderr:
return code: 1

()

I've also tried the following

conda create --name gis311 python=3.11 arcpy=3.3 lxml=5.1.0   -> DLL error
conda create --name gis311 python=3.11 arcpy=3.3 lxml=5.2.1   -> DLL error
conda create --name gis311 python=3.11 arcpy=3.3 lxml=5.3.0   -> DLL error

giving the same DLL error.

conda create --name gis311 python=3.11 arcpy=3.3 lxml=4.9.3

gives a version conflict. Apparently, lxml < 5 is not accepted for arcpy 3.3 and above (I've tried arcpy=3.4 as well, despite the fact that ArcGIS Desktop 3.4 has not been released yet).

Trying to use the clone option in ArcGIS Desktop Pro itself, gives the following output (with errors; I have replaced the username with XXXXXXXXX):

> "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\conda.exe" create --clone "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3" -p "C:\Users\XXXXXXXXX\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone" --no-shortcuts --pinned --yes


Installing package 'numpy' into environment
Installing package 'Fiona' into environment
Installing package 'pluggy' into environment
Installing package 'cytoolz' into environment
Installing package 'pyproj' into environment
Installing package 'tzdata' into environment
Installing package 'geopandas' into environment
Installing package 'arcgis' into environment
Installing package 'oracledb' into environment
Installing package 'anyio' into environment
Installing package 'jinja2' into environment
Installing package 'pyogrio' into environment
Installing package 'xarray-0.20.1' into environment
Installing package 'ipywidgets' into environment
Installing package 'shapely' into environment
Installing package 'matplotlib' into environment
Installing package 'dask' into environment
Installing package 'fiona' into environment
Installing package 'numexpr' into environment
Installing package 'ipython_genutils' into environment
Installing package 'exceptiongroup' into environment
Installing package 'cachetools' into environment
Installing package 'chardet' into environment
Installing package 'PIL' into environment
Installing package 'jupyter_client' into environment
Installing package 'oauthlib' into environment
Installing package 'jedi' into environment
Installing package 'prometheus_client' into environment
Installing package 'pygeos-0.14' into environment
Installing package 'notebook' into environment
Installing package 'pygeos' into environment
Installing package 'certifi_win32' into environment
Installing package 'requests_toolbelt' into environment
Installing package 'pyarrow' into environment
Installing package 'scipy' into environment
Installing package 'geopandas-1.0.1' into environment
Installing package 'tblib' into environment
Installing package 'sun_position_calculator-1.0.0' into environment
Installing package 'pyogrio-0.9.0' into environment
Installing package 'cligj-0.7.2' into environment
Installing package 'wcwidth' into environment
Installing package 'tornado' into environment
Installing package 'munch' into environment
Installing package 'pyproj' into environment
Installing package 'parso' into environment
Installing package 'mpl_toolkits' into environment
Installing package 'stack_data' into environment
Installing package 'pyogrio' into environment
Installing package 'fastjsonschema' into environment
Installing package 'psutil' into environment
Installing package 'traitlets' into environment
Installing package 'pure_eval' into environment
Installing package 'click_plugins-1.1.1' into environment
Installing package 'shapely-2.0.6' into environment
Installing package 'click_plugins' into environment
Installing package 'arcgisscripting' into environment
Installing package 'oracledb-2.4.1' into environment
Installing package 'tlz' into environment
Installing package 'xarray' into environment
Installing package 'toolz' into environment
Installing package 'pygeos' into environment
Installing package 'cloudpickle' into environment
Installing package 'geomet' into environment
Installing package 'wrapt' into environment
Installing package 'munch-4.0.0' into environment
Installing package 'kiwisolver' into environment
Installing package 'osgeo' into environment
Installing package 'shapely' into environment
Installing package 'pyproj-3.6.1' into environment
Installing package 'blinker' into environment
Installing package 'colorama' into environment
Installing package 'requests_oauthlib' into environment
Installing package 'asttokens' into environment
Installing package 'tzdata-2024.1' into environment
Installing package 'cligj' into environment
Installing package 'arcpy_wmx' into environment
Installing package 'lxml' into environment
Installing package 'sun_position_calculator' into environment
Installing package 'Fiona-1.8.22' into environment
Installing package 'defusedxml' into environment
Installing package 'gapy' into environment
Installing package 'executing' into environment
Installing package 'backcall' into environment
Installing package 'iniconfig' into environment
Installing package 'brotli' into environment
Installing package 'pytest' into environment
Installing package 'bapy' into environment
Installing package 'winpty' into environment
Installing package 'mkl' into environment
Source:      C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
Destination: C:\Users\XXXXXXXXX\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone
Packages: 286
Files: 4537
Copying pinned file from C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\conda-meta\pinned to C:\Users\XXXXXXXXX\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\conda-meta\pinned
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Installing package 'pybind11' into environment
Installing package 'appdirs-1.4.4-py3.9' into environment
Installing package 'attr' into environment
Installing package 'attrs' into environment
Installing package 'attrs-22.1.0' into environment
Installing package 'backcall-0.2.0' into environment
Installing package 'blinker-1.4-py3.9' into environment
Installing package 'cachetools-4.2.2' into environment
Installing package 'certifi' into environment
Installing package 'certifi-2024.8.30' into environment
Installing package 'chardet-4.0.0' into environment
Installing package 'charset_normalizer' into environment
Installing package 'charset_normalizer-2.0.4' into environment
Installing package 'cloudpickle-2.0.0' into environment
Installing package 'colorama-0.4.6' into environment
Installing package 'cycler-0.11.0' into environment
Installing package 'debugpy' into environment
Installing package 'debugpy-1.5.1' into environment
Installing package 'decorator-5.1.1' into environment
Installing package 'defusedxml-0.7.1' into environment
Installing package 'entrypoints-0.4' into environment
Installing package 'et_xmlfile' into environment
Installing package 'et_xmlfile-1.1.0-py3.9' into environment
Installing package 'exceptiongroup-1.0.0rc9' into environment
Installing package 'executing-0.8.3' into environment
Installing package 'fsspec' into environment
Installing package 'fsspec-2023.4.0' into environment
Installing package 'greenlet' into environment
Installing package 'greenlet-1.1.1' into environment
Installing package 'HeapDict-1.0.1' into environment
Installing package 'idna' into environment
Installing package 'idna-3.4' into environment
Installing package 'iniconfig-1.1.1' into environment
Installing package 'ipython_genutils-0.2.0' into environment
Installing package 'jdcal-1.4.1' into environment
Installing package 'json5' into environment
Installing package 'json5-0.9.5' into environment
Installing package 'jupyterlab_widgets' into environment
Installing package 'jupyterlab_widgets-3.0.3' into environment
Installing package 'kiwisolver-1.4.4' into environment
Installing package 'locket' into environment
Installing package 'locket-1.0.0' into environment
Installing package 'lz4' into environment
Installing package 'lz4-4.3.2' into environment
Installing package 'MarkupSafe-2.1.1' into environment
Installing package 'markupsafe' into environment
Installing package 'mccabe-0.7.0' into environment
Installing package 'mistune' into environment
Installing package 'mistune-2.0.4' into environment
Installing package 'mpmath' into environment
Installing package 'mpmath-1.2.1-py3.9' into environment
Installing package 'msgpack' into environment
Installing package 'msgpack-1.0.3' into environment
Installing package 'munkres-1.1.4-py3.6' into environment
Installing package 'mypy_extensions-0.4.3-py3.9' into environment
Installing package 'nest_asyncio-1.5.6' into environment
Installing package 'networkx' into environment
Installing package 'networkx-2.8.4' into environment
Installing package 'nose' into environment
Installing package 'nose-1.3.7' into environment
Installing package 'numpy-1.22.4' into environment
Installing package 'olefile' into environment
Installing package 'olefile-0.46' into environment
Installing package 'packaging' into environment
Installing package 'packaging-24.1' into environment
Installing package 'pandocfilters-1.5.0' into environment
Installing package 'parso-0.8.3' into environment
Installing package 'pathspec' into environment
Installing package 'pathspec-0.9.0' into environment
Installing package 'pickleshare-0.7.5' into environment
Installing package 'platformdirs' into environment
Installing package 'platformdirs-2.5.2' into environment
Installing package 'pluggy-0.13.1' into environment
Installing package 'prometheus_client-0.8.0' into environment
Installing package 'google' into environment
Installing package 'protobuf-4.21.12' into environment
Installing package 'psutil-5.9.0' into environment
Installing package 'pure_eval-0.2.2' into environment
Installing package 'pycodestyle-2.8.0' into environment
Installing package 'pycparser' into environment
Installing package 'pycparser-2.21' into environment
Installing package 'pyflakes' into environment
Installing package 'pyflakes-2.4.0' into environment
Installing package 'PyJWT-2.4.0' into environment
Installing package 'jwt' into environment
Installing package 'pyodbc-4.0.34' into environment
Installing package 'pyparsing' into environment
Installing package 'pyparsing-3.1.2' into environment
Installing package 'PyPDF2' into environment
Installing package 'PyPDF2-1.26.0' into environment
Installing package 'pyrsistent' into environment
Installing package 'pyrsistent-0.18.0' into environment
Installing package 'pyshp-2.1.3' into environment
Installing package 'fastjsonschema-2.16.2' into environment
Installing package 'pywin32_ctypes-0.2.0-py3.9' into environment
Installing package 'win32ctypes' into environment
Installing package 'pywin32security' into environment
Installing package 'PyYAML-6.0-py3.9-win-amd64' into environment
Installing package 'yaml' into environment
Installing package 'regex' into environment
Installing package 'regex-2022.7.9' into environment
Installing package 'ruamel.yaml.clib-0.2.6' into environment
Installing package 'Send2Trash-1.8.0' into environment
Installing package 'send2trash' into environment
Installing package 'pkg_resources' into environment
Installing package 'setuptools' into environment
Installing package 'setuptools-74.1.2-py3.9' into environment
Installing package 'six-1.16.0' into environment
Installing package 'sniffio' into environment
Installing package 'sniffio-1.2.0' into environment
Installing package 'sortedcontainers' into environment
Installing package 'sortedcontainers-2.4.0' into environment
Installing package 'soupsieve' into environment
Installing package 'soupsieve-2.3.2.post1' into environment
Installing package 'tblib-1.7.0' into environment
Installing package 'testpath' into environment
Installing package 'testpath-0.5.0' into environment
Installing package 'toml' into environment
Installing package 'toml-0.10.2' into environment
Installing package 'tomli' into environment
Installing package 'tomli-2.0.1' into environment
Installing package 'toolz-0.11.2' into environment
Installing package 'tornado-6.2' into environment
Installing package 'traitlets-5.5.0' into environment
Installing package 'typed_ast' into environment
Installing package 'typed_ast-1.4.3' into environment
Installing package 'typing_extensions-4.3.0' into environment
Installing package 'ujson-5.4.0' into environment
Installing package 'unicodedata2-15.1.0' into environment
Installing package 'wcwidth-0.2.5' into environment
Installing package 'webencodings' into environment
Installing package 'webencodings-0.5.1-py3.9' into environment
Installing package 'wheel' into environment
Installing package 'wheel-0.44.0' into environment
Installing package 'widgetsnbextension' into environment
Installing package 'widgetsnbextension-3.6.1' into environment
Installing package 'win_inet_pton-1.1.0' into environment
Installing package 'winkerberos-0.8.0' into environment
Installing package 'wrapt-1.14.1' into environment
Installing package 'xlrd' into environment
Installing package 'xlrd-2.0.1' into environment
Installing package 'xlwt' into environment
Installing package 'xlwt-1.3.0-py3.9' into environment
Installing package 'zict' into environment
Installing package 'zict-3.0.0' into environment
Installing package 'zipp' into environment
Installing package 'zipp-3.17.0' into environment
Installing package 'anyio-3.5.0' into environment
Installing package 'asttokens-2.0.5' into environment
Installing package 'beautifulsoup4-4.12.2' into environment
Installing package 'bs4' into environment
Installing package 'bleach' into environment
Installing package 'bleach-4.1.0' into environment
Installing package 'cffi' into environment
Installing package 'cffi-1.15.1' into environment
Installing package 'click' into environment
Installing package 'click-8.0.4' into environment
Installing package 'cytoolz-0.11.0-py3.9' into environment
Installing package 'fontTools' into environment
Installing package 'fonttools-4.51.0' into environment
Installing package 'importlib_metadata' into environment
Installing package 'importlib_metadata-6.0.0' into environment
Installing package 'isodate' into environment
Installing package 'isodate-0.6.0' into environment
Installing package 'jedi-0.18.2' into environment
Installing package 'Jinja2-3.0.3' into environment
Installing package 'jsonschema' into environment
Installing package 'jsonschema-4.17.3' into environment
Installing package 'lxml-4.9.1' into environment
Installing package 'matplotlib_inline' into environment
Installing package 'matplotlib_inline-0.1.6' into environment
Installing package 'mkl_service-2.4.0-py3.9' into environment
Installing package 'ntlm_auth' into environment
Installing package 'ntlm_auth-1.4.0' into environment
Installing package 'openpyxl' into environment
Installing package 'openpyxl-3.0.10-py3.9' into environment
Installing package 'partd' into environment
Installing package 'partd-1.2.0' into environment
Installing package 'ordlookup' into environment
Installing package 'pefile-2022.5.30' into environment
Installing package 'pip' into environment
Installing package 'pip-23.3.2-py3.9' into environment
Installing package 'Pygments-2.14.0' into environment
Installing package 'pygments' into environment
Installing package 'PySocks-1.7.1' into environment
Installing package 'pytest-7.2.0' into environment
Installing package 'python_certifi_win32-1.7.dev1+g24a5d1b' into environment
Installing package 'dateutil' into environment
Installing package 'python_dateutil-2.9.0.post0' into environment
Installing package 'gssapi' into environment
Installing package 'gssapi-1.8.2' into environment
Installing package 'pywinpty-2.0.1' into environment
Installing package 'retrying-1.3.3' into environment
Installing package 'ruamel' into environment
Installing package 'ruamel.yaml-0.17.21' into environment
Installing package 'SQLAlchemy-1.4.39' into environment
Installing package 'sqlalchemy' into environment
Installing package 'tinycss2' into environment
Installing package 'tinycss2-1.1.1' into environment
Installing package 'tqdm' into environment
Installing package 'tqdm-4.64.1' into environment
Installing package 'websocket' into environment
Installing package 'websocket_client-0.58.0' into environment
Installing package 'x86cpu' into environment
Installing package 'x86cpu-0.4-py3.9' into environment
Installing package 'argon2_cffi_bindings-21.2.0' into environment
Installing package 'black' into environment
Installing package 'black-0.0.0' into environment
Installing package 'black_primer' into environment
Installing package 'blackd' into environment
Installing package 'blib2to3' into environment
Installing package 'brotlipy-0.7.0-py3.9' into environment
Installing package 'cryptography' into environment
Installing package 'cryptography-41.0.3' into environment
Installing package 'dask-2023.3.2' into environment
Installing package 'flake8' into environment
Installing package 'flake8-4.0.1' into environment
Installing package 'geomet-1.0.0' into environment
Installing package 'jupyter_core' into environment
Installing package 'jupyter_core-4.11.2' into environment
Installing package 'jupyterlab_pygments' into environment
Installing package 'jupyterlab_pygments-0.2.2' into environment
Installing package 'mkl_fft' into environment
Installing package 'mkl_fft-1.3.1' into environment
Installing package 'mkl_random' into environment
Installing package 'mkl_random-1.2.2' into environment
Installing package 'Pillow-9.5.0' into environment
Installing package 'prompt_toolkit' into environment
Installing package 'prompt_toolkit-3.0.5' into environment
Installing package 'pyzmq-25.0.2' into environment
Installing package 'zmq' into environment
Installing package 'stack_data-0.5.1' into environment
Installing package 'terminado' into environment
Installing package 'terminado-0.13.1' into environment
Installing package 'argon2' into environment
Installing package 'argon2_cffi-21.3.0' into environment
Installing package 'IPython' into environment
Installing package 'ipython-7.34.0' into environment
Installing package 'jupyter_client-6.1.12' into environment
Installing package 'keyring' into environment
Installing package 'keyring-23.4.0' into environment
Installing package 'nbformat' into environment
Installing package 'nbformat-5.6.1' into environment
Installing package 'oauthlib-3.2.0' into environment
Installing package 'OpenSSL' into environment
Installing package 'pyOpenSSL-23.2.0' into environment
Installing package 'pypdf' into environment
Installing package 'pypdf-3.15.0' into environment
Installing package 'pyspnego-0.8.0' into environment
Installing package 'spnego' into environment
Installing package 'Bottleneck-1.3.5' into environment
Installing package 'bottleneck' into environment
Installing package 'cftime' into environment
Installing package 'cftime-1.6.2' into environment
Installing package 'contourpy' into environment
Installing package 'contourpy-1.2.0' into environment
Installing package 'osgeo_utils' into environment
Installing package 'h5py' into environment
Installing package 'h5py-3.9.0' into environment
Installing package 'ipykernel' into environment
Installing package 'ipykernel-6.16.0' into environment
Installing package 'lerc' into environment
Installing package 'lerc-3.0' into environment
Installing package 'nbclient' into environment
Installing package 'nbclient-0.7.0' into environment
Installing package 'numexpr-2.8.4' into environment
Installing package 'patsy' into environment
Installing package 'patsy-0.5.3-py3.9' into environment
Installing package 'pylerc-4.0' into environment
Installing package 'scipy-1.7.3-py3.9' into environment
Installing package 'urllib3' into environment
Installing package 'urllib3-1.26.16' into environment
Installing package 'distributed' into environment
Installing package 'distributed-2023.3.2' into environment
Installing package 'imagecodecs' into environment
Installing package 'imagecodecs-2023.1.23' into environment
Installing package 'ipywidgets-7.7.2' into environment
Installing package 'jupyter_console' into environment
Installing package 'jupyter_console-6.4.2' into environment
Installing package 'matplotlib-3.6.3' into environment
Installing package 'nbconvert' into environment
Installing package 'nbconvert-7.2.1' into environment
Installing package 'netCDF4' into environment
Installing package 'netCDF4-1.6.4' into environment
Installing package 'pandas-2.0.2' into environment
Installing package 'requests' into environment
Installing package 'requests-2.31.0' into environment
Installing package 'azure' into environment
Installing package 'azure_core-1.12.0' into environment
Installing package 'jupyter_server' into environment
Installing package 'jupyter_server-1.21.0' into environment
Installing package 'notebook-6.4.12' into environment
Installing package 'requests_gssapi' into environment
Installing package 'requests_gssapi-1.2.3' into environment
Installing package 'requests_kerberos' into environment
Installing package 'requests_kerberos-0.12.0-py3.7' into environment
Installing package 'requests_negotiate_sspi' into environment
Installing package 'requests_negotiate_sspi-0.0.0' into environment
Installing package 'requests_oauthlib-1.3.0' into environment
Installing package 'requests_toolbelt-1.0.0' into environment
Installing package 'saspy' into environment
Installing package 'saspy-4.3.2' into environment
Installing package 'seaborn' into environment
Installing package 'seaborn-0.12.2' into environment
Installing package 'statsmodels' into environment
Installing package 'statsmodels-0.14.0' into environment
Installing package 'swat' into environment
Installing package 'swat-1.13.2' into environment
Installing package 'tifffile' into environment
Installing package 'tifffile-2023.4.12' into environment
Installing package 'xarray-2023.6.0' into environment
Installing package 'arcgis-2.2.0.1-py3.9' into environment
Installing package 'jupyter_contrib_core' into environment
Installing package 'jupyter_contrib_core-0.4.0' into environment
Installing package 'jupyterlab_server' into environment
Installing package 'jupyterlab_server-2.16.0' into environment
Installing package 'msrest' into environment
Installing package 'msrest-0.6.21' into environment
Installing package 'notebook_shim' into environment
Installing package 'notebook_shim-0.1.0' into environment
Installing package 'azure_storage_blob-12.8.0' into environment
Installing package 'jupyter_highlight_selected_word' into environment
Installing package 'jupyter_highlight_selected_word-0.2.0' into environment
Installing package 'jupyter_latex_envs-1.4.6' into environment
Installing package 'latex_envs' into environment
Installing package 'jupyter_nbextensions_configurator' into environment
Installing package 'jupyter_nbextensions_configurator-0.4.1' into environment
Installing package 'nbclassic' into environment
Installing package 'nbclassic-0.4.8' into environment
Installing package 'jupyter_contrib_nbextensions' into environment
Installing package 'jupyter_contrib_nbextensions-0.6.0' into environment
Installing package 'jupyterlab' into environment
Installing package 'jupyterlab-3.4.8' into environment
Installing package 'pro_notebook_integration' into environment
Installing package 'pro_notebook_integration-3.1' into environment
Executing transaction: ...working... 
done
ERROR conda.core.link:_execute(730): An error occurred while installing package 'esri::arcpy-base-3.2-py39_49743'.
Rolling back transaction: ...working... done
LinkError: post-link script failed for package esri::arcpy-base-3.2-py39_49743
location of failed script: C:\Users\XXXXXXXXX\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Scripts\.arcpy-base-post-link.bat
==> script messages <==
<None>
==> script output <==
stdout: Unable to link ArcPy DLLs to environment.
stderr: 
return code: 3221226340
()
Cleaning up...
Destination folder removed.

Expected behavior
I expect that the installation finishes successfully without errors and that I can activate the created environment. If I try the command below:

conda create --name tst39 python=3.9 arcpy=3.2 lxml=4.9.1

This does seem to work and creates a working Python 3.9 environment with arcpy installed.

Hence, I come to the conclusion that there is something wrong with (the wheels? of) lxml > 5 (or underlying packages) from ESRI.
Funnily enough, when I use conda-forge::lxml, it still fails. Or am I missing something else completely fundamental? I did create regular environments without arcgis without any issues.

.condarc:

ssl_verify: false
channels:
  - esri
  - defaults

Platform (please complete the following information):

  • OS: Windows 10 Enterprise 22H2
  • Python API Version: N/A
  • Conda: conda 4.14.0 (comes with ArcGIS Desktop)

Additional context
Trying to do this in the context of ArcGIS Desktop Pro 3.2.2 (including the shipped conda environment, etc). I run this as user (I have no option to run this as admin).
I have also tried this after having run conda clean -a. That does not matter.

@ew-pov ew-pov added the bug label Oct 16, 2024
@eroubenoff-expo
Copy link

I am having this issue too.

@cleebp
Copy link

cleebp commented Oct 17, 2024

Thank you for the detailed report!

EDIT:

While I could not reproduce on Pro 3.3 machine I was able to reproduce the lxml dll load error when creating an environment from pro 3.2.4, I was able to clone arcgispro-py3 without issue but when trying to conda create arcpy=3.x an incompatible version of lxml is getting installed throwing the dll error. I will get a fix for this and publish it on our anaconda channel, will update here once that's done.

@cleebp
Copy link

cleebp commented Oct 17, 2024

@ew-pov / @eroubenoff-expo: could you try and retest on your pro 3.2 machines now? I just uploaded a new arcpy/arcpy-base package with pinning to restrict lxml to a compatible version with the one in pro 3.2's bin. I was able to conda create -n gis-32 arcpy=3.2 on my 3.2.4 machine and get a new environment with lxml=4.9.1 installed and no longer see the dll load error.

Because Pro >3.3 ships with lxml>5 this is incompatible with the lxml dlls in the pro 3.2 bin and I do not think you'll be able to create a compatible arcpy=3.3 environment on a pro 3.2 machine unfortunately. I'm doing more testing on Pro 3.3 today with this though so I may have an update.

The issue with your machine being unable to clone is interesting, do you have deep-learning libraries installed @ew-pov? If not I think your base install has some extra packages lying around in arcgispro-py3 which is conflicting the clone. To get arcgispro-py3 back to a "clean" state: uninstall deep-learning (if installed), uninstall Pro, navigate to your install directory (by default: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3), and make sure the entire arcgispro-py3 folder is removed after uninstalling, if not manually remove it before reinstalling Pro.

@ew-pov
Copy link
Author

ew-pov commented Oct 21, 2024

Thanks for looking into this issue.

Just an update with all the results of testing.

Create 3.2 environment

I can confirm that conda create --name gis32 python arcpy=3.2 without an lxml constraint now works.
Regarding the cloning: I had a few packages installed using conda and pip (oracledb, shapely, geopandas pygeos, fiona, not really anything really special).

Create 3.1 environment

Additionally, I did try to make a 3.1 environment with conda create --name gis31 python arcpy=3.1 lxml=4.9.1 with ArcGIS Desktop Pro version 3.2. This worked. Thus, I expected it to work for higher versions... Admittedly, I never ran the environment (see below for remark about that).

(After the pinning of lxml, I've retried to recreate th the arcpy=3.1 environment without the lxml contraint. This does work as well! At least, the creating. After import arcpy, it fails with the message:

The version of the binaries in the active Python environment do not match the version of the binaries in the ArcGIS application.

Active environment version : 3.1
arcgispro-py3 environment version : 3.2

Pity, but understandable.

LXML 5+

So, now I know it won't work with arcpy=3.3 and Desktop=3.2, I won't pursue that issue any further. Nonetheless, I still think, there is a weird lxml>=5 DLL issue somewhere...

Cloning

We just had a reinstall of our environment. Hence, I could start with a clean slate. I did perform a conda clean -a just in case.
Unfortunately, it did not work...

Details
> "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\conda.exe" create --clone "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3" -p "C:\Users\XXXXXX\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone" --no-shortcuts --pinned --yes


Installing package 'pluggy' into environment
Installing package 'attr' into environment
Installing package 'gapy' into environment
Installing package 'xarray-0.20.1' into environment
Installing package 'certifi_win32' into environment
Installing package 'wrapt' into environment
Installing package 'exceptiongroup' into environment
Installing package 'iniconfig' into environment
Installing package 'xarray' into environment
Installing package 'colorama' into environment
Installing package 'pytest' into environment
Installing package 'sniffio' into environment
Installing package 'bapy' into environment
Installing package 'arcpy_wmx' into environment
Source:      C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
Destination: C:\Users\XXXXXX\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone
Packages: 267
Files: 838
Copying pinned file from C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\conda-meta\pinned to C:\Users\XXXXXX\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\conda-meta\pinned
Downloading and Extracting Packages

  ###SNIPPING DOWNLOADING OF PACKAGES###

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Installing package 'pybind11' into environment
Installing package 'appdirs-1.4.4-py3.9' into environment
Installing package 'attrs' into environment
Installing package 'attrs-22.1.0' into environment
Installing package 'backcall' into environment
Installing package 'backcall-0.2.0' into environment
Installing package 'blinker' into environment
Installing package 'blinker-1.4-py3.9' into environment
Installing package 'cachetools' into environment
Installing package 'cachetools-4.2.2' into environment
Installing package 'certifi' into environment
Installing package 'certifi-2023.7.22' into environment
Installing package 'chardet' into environment
Installing package 'chardet-4.0.0' into environment
Installing package 'charset_normalizer' into environment
Installing package 'charset_normalizer-2.0.4' into environment
Installing package 'cloudpickle' into environment
Installing package 'cloudpickle-2.0.0' into environment
Installing package 'colorama-0.4.6' into environment
Installing package 'cycler-0.11.0' into environment
Installing package 'debugpy' into environment
Installing package 'debugpy-1.5.1' into environment
Installing package 'decorator-5.1.1' into environment
Installing package 'defusedxml' into environment
Installing package 'defusedxml-0.7.1' into environment
Installing package 'entrypoints-0.4' into environment
Installing package 'et_xmlfile' into environment
Installing package 'et_xmlfile-1.1.0-py3.9' into environment
Installing package 'exceptiongroup-1.0.0rc9' into environment
Installing package 'executing' into environment
Installing package 'executing-0.8.3' into environment
Installing package 'fsspec' into environment
Installing package 'fsspec-2023.4.0' into environment
Installing package 'greenlet' into environment
Installing package 'greenlet-1.1.1' into environment
Installing package 'HeapDict-1.0.1' into environment
Installing package 'idna' into environment
Installing package 'idna-3.4' into environment
Installing package 'iniconfig-1.1.1' into environment
Installing package 'ipython_genutils' into environment
Installing package 'ipython_genutils-0.2.0' into environment
Installing package 'jdcal-1.4.1' into environment
Installing package 'json5' into environment
Installing package 'json5-0.9.5' into environment
Installing package 'jupyterlab_widgets' into environment
Installing package 'jupyterlab_widgets-3.0.3' into environment
Installing package 'kiwisolver' into environment
Installing package 'kiwisolver-1.4.4' into environment
Installing package 'locket' into environment
Installing package 'locket-1.0.0' into environment
Installing package 'lz4' into environment
Installing package 'lz4-3.1.3' into environment
Installing package 'MarkupSafe-2.1.1' into environment
Installing package 'markupsafe' into environment
Installing package 'mccabe-0.7.0' into environment
Installing package 'mistune' into environment
Installing package 'mistune-2.0.4' into environment
Installing package 'mpmath' into environment
Installing package 'mpmath-1.2.1-py3.9' into environment
Installing package 'msgpack' into environment
Installing package 'msgpack-1.0.3' into environment
Installing package 'munkres-1.1.4-py3.6' into environment
Installing package 'mypy_extensions-0.4.3-py3.9' into environment
Installing package 'nest_asyncio-1.5.6' into environment
Installing package 'networkx' into environment
Installing package 'networkx-2.8.4' into environment
Installing package 'nose' into environment
Installing package 'nose-1.3.7' into environment
Installing package 'numpy' into environment
Installing package 'numpy-1.22.4' into environment
Installing package 'olefile' into environment
Installing package 'olefile-0.46' into environment
Installing package 'pandocfilters-1.5.0' into environment
Installing package 'parso' into environment
Installing package 'parso-0.8.3' into environment
Installing package 'pathspec' into environment
Installing package 'pathspec-0.9.0' into environment
Installing package 'pickleshare-0.7.5' into environment
Installing package 'platformdirs' into environment
Installing package 'platformdirs-2.5.2' into environment
Installing package 'pluggy-0.13.1' into environment
Installing package 'prometheus_client' into environment
Installing package 'prometheus_client-0.8.0' into environment
Installing package 'google' into environment
Installing package 'protobuf-4.21.12' into environment
Installing package 'psutil' into environment
Installing package 'psutil-5.9.0' into environment
Installing package 'pure_eval' into environment
Installing package 'pure_eval-0.2.2' into environment
Installing package 'pycodestyle-2.8.0' into environment
Installing package 'pycparser' into environment
Installing package 'pycparser-2.21' into environment
Installing package 'pyflakes' into environment
Installing package 'pyflakes-2.4.0' into environment
Installing package 'PyJWT-2.4.0' into environment
Installing package 'jwt' into environment
Installing package 'pyodbc-4.0.34' into environment
Installing package 'pyparsing' into environment
Installing package 'pyparsing-3.0.9' into environment
Installing package 'PyPDF2' into environment
Installing package 'PyPDF2-1.26.0' into environment
Installing package 'pyrsistent' into environment
Installing package 'pyrsistent-0.18.0' into environment
Installing package 'pyshp-2.1.3' into environment
Installing package 'fastjsonschema' into environment
Installing package 'fastjsonschema-2.16.2' into environment
Installing package 'pywin32_ctypes-0.2.0-py3.9' into environment
Installing package 'win32ctypes' into environment
Installing package 'pywin32security' into environment
Installing package 'PyYAML-6.0-py3.9-win-amd64' into environment
Installing package 'yaml' into environment
Installing package 'regex' into environment
Installing package 'regex-2022.7.9' into environment
Installing package 'ruamel.yaml.clib-0.2.6' into environment
Installing package 'Send2Trash-1.8.0' into environment
Installing package 'send2trash' into environment
Installing package 'pkg_resources' into environment
Installing package 'setuptools' into environment
Installing package 'setuptools-67.7.2-py3.9' into environment
Installing package 'six-1.16.0' into environment
Installing package 'sniffio-1.2.0' into environment
Installing package 'sortedcontainers' into environment
Installing package 'sortedcontainers-2.4.0' into environment
Installing package 'soupsieve' into environment
Installing package 'soupsieve-2.3.2.post1' into environment
Installing package 'tblib' into environment
Installing package 'tblib-1.7.0' into environment
Installing package 'testpath' into environment
Installing package 'testpath-0.5.0' into environment
Installing package 'toml' into environment
Installing package 'toml-0.10.2' into environment
Installing package 'tomli' into environment
Installing package 'tomli-2.0.1' into environment
Installing package 'tlz' into environment
Installing package 'toolz' into environment
Installing package 'toolz-0.11.2' into environment
Installing package 'tornado' into environment
Installing package 'tornado-6.2' into environment
Installing package 'traitlets' into environment
Installing package 'traitlets-5.5.0' into environment
Installing package 'typed_ast' into environment
Installing package 'typed_ast-1.4.3' into environment
Installing package 'typing_extensions-4.3.0' into environment
Installing package 'ujson-5.4.0' into environment
Installing package 'wcwidth' into environment
Installing package 'wcwidth-0.2.5' into environment
Installing package 'webencodings' into environment
Installing package 'webencodings-0.5.1-py3.9' into environment
Installing package 'wheel' into environment
Installing package 'wheel-0.37.1-py3.9' into environment
Installing package 'widgetsnbextension' into environment
Installing package 'widgetsnbextension-3.6.1' into environment
Installing package 'win_inet_pton-1.1.0' into environment
Installing package 'winkerberos-0.8.0' into environment
Installing package 'wrapt-1.14.1' into environment
Installing package 'xlrd' into environment
Installing package 'xlrd-2.0.1' into environment
Installing package 'xlwt' into environment
Installing package 'xlwt-1.3.0-py3.9' into environment
Installing package 'zict' into environment
Installing package 'zict-3.0.0' into environment
Installing package 'zipp-3.8.0' into environment
Installing package 'anyio-3.5.0' into environment
Installing package 'asttokens' into environment
Installing package 'asttokens-2.0.5' into environment
Installing package 'beautifulsoup4-4.12.2' into environment
Installing package 'bs4' into environment
Installing package 'cffi' into environment
Installing package 'cffi-1.15.1' into environment
Installing package 'click' into environment
Installing package 'click-8.0.4' into environment
Installing package 'cytoolz' into environment
Installing package 'cytoolz-0.11.0-py3.9' into environment
Installing package 'fontTools' into environment
Installing package 'fonttools-4.25.0-py3.9' into environment
Installing package 'importlib_metadata' into environment
Installing package 'importlib_metadata-6.0.0' into environment
Installing package 'isodate' into environment
Installing package 'isodate-0.6.0' into environment
Installing package 'jedi' into environment
Installing package 'jedi-0.18.2' into environment
Installing package 'Jinja2-3.0.3' into environment
Installing package 'jinja2' into environment
Installing package 'jsonschema' into environment
Installing package 'jsonschema-4.17.3' into environment
Installing package 'lxml' into environment
Installing package 'lxml-4.9.1' into environment
Installing package 'matplotlib_inline' into environment
Installing package 'matplotlib_inline-0.1.6' into environment
Installing package 'mkl' into environment
Installing package 'mkl_service-2.4.0-py3.9' into environment
Installing package 'ntlm_auth' into environment
Installing package 'ntlm_auth-1.4.0' into environment
Installing package 'openpyxl' into environment
Installing package 'openpyxl-3.0.10-py3.9' into environment
Installing package 'packaging' into environment
Installing package 'packaging-21.3' into environment
Installing package 'partd' into environment
Installing package 'partd-1.2.0' into environment
Installing package 'ordlookup' into environment
Installing package 'pefile-2022.5.30' into environment
Installing package 'PIL' into environment
Installing package 'Pillow-9.5.0' into environment
Installing package 'pip' into environment
Installing package 'pip-23.2.1-py3.9' into environment
Installing package 'Pygments-2.14.0' into environment
Installing package 'pygments' into environment
Installing package 'PySocks-1.7.1' into environment
Installing package 'python_certifi_win32-1.7.dev1+g24a5d1b' into environment
Installing package 'dateutil' into environment
Installing package 'python_dateutil-2.8.2' into environment
Installing package 'gssapi' into environment
Installing package 'gssapi-1.8.2' into environment
Installing package 'pywinpty-2.0.1' into environment
Installing package 'winpty' into environment
Installing package 'ruamel' into environment
Installing package 'ruamel.yaml-0.17.21' into environment
Installing package 'SQLAlchemy-1.4.39' into environment
Installing package 'sqlalchemy' into environment
Installing package 'tinycss2' into environment
Installing package 'tinycss2-1.1.1' into environment
Installing package 'tqdm' into environment
Installing package 'tqdm-4.64.1' into environment
Installing package 'websocket' into environment
Installing package 'websocket_client-0.58.0' into environment
Installing package 'x86cpu' into environment
Installing package 'x86cpu-0.4-py3.9' into environment
Installing package 'argon2_cffi_bindings-21.2.0' into environment
Installing package 'black' into environment
Installing package 'black-0.0.0' into environment
Installing package 'black_primer' into environment
Installing package 'blackd' into environment
Installing package 'blib2to3' into environment
Installing package 'bleach' into environment
Installing package 'bleach-4.1.0' into environment
Installing package 'brotli' into environment
Installing package 'brotlipy-0.7.0-py3.9' into environment
Installing package 'cryptography' into environment
Installing package 'cryptography-41.0.3' into environment
Installing package 'dask' into environment
Installing package 'dask-2023.3.2' into environment
Installing package 'flake8' into environment
Installing package 'flake8-4.0.1' into environment
Installing package 'geomet' into environment
Installing package 'geomet-1.0.0' into environment
Installing package 'jupyter_core' into environment
Installing package 'jupyter_core-4.11.2' into environment
Installing package 'jupyterlab_pygments' into environment
Installing package 'jupyterlab_pygments-0.2.2' into environment
Installing package 'mkl_fft' into environment
Installing package 'mkl_fft-1.3.1' into environment
Installing package 'mkl_random' into environment
Installing package 'mkl_random-1.2.2' into environment
Installing package 'prompt_toolkit' into environment
Installing package 'prompt_toolkit-3.0.5' into environment
Installing package 'pytest-7.2.0' into environment
Installing package 'pyzmq-25.0.2' into environment
Installing package 'zmq' into environment
Installing package 'stack_data' into environment
Installing package 'stack_data-0.5.1' into environment
Installing package 'terminado' into environment
Installing package 'terminado-0.13.1' into environment
Installing package 'argon2' into environment
Installing package 'argon2_cffi-21.3.0' into environment
Installing package 'IPython' into environment
Installing package 'ipython-7.34.0' into environment
Installing package 'jupyter_client' into environment
Installing package 'jupyter_client-6.1.12' into environment
Installing package 'keyring' into environment
Installing package 'keyring-23.4.0' into environment
Installing package 'nbformat' into environment
Installing package 'nbformat-5.6.1' into environment
Installing package 'oauthlib' into environment
Installing package 'oauthlib-3.2.0' into environment
Installing package 'OpenSSL' into environment
Installing package 'pyOpenSSL-23.2.0' into environment
Installing package 'pypdf' into environment
Installing package 'pypdf-3.15.0' into environment
Installing package 'pyspnego-0.8.0' into environment
Installing package 'spnego' into environment
Installing package 'Bottleneck-1.3.5' into environment
Installing package 'bottleneck' into environment
Installing package 'cftime' into environment
Installing package 'cftime-1.6.2' into environment
Installing package 'contourpy' into environment
Installing package 'contourpy-1.0.5' into environment
Installing package 'osgeo' into environment
Installing package 'osgeo_utils' into environment
Installing package 'h5py' into environment
Installing package 'h5py-3.9.0' into environment
Installing package 'ipykernel' into environment
Installing package 'ipykernel-6.16.0' into environment
Installing package 'nbclient' into environment
Installing package 'nbclient-0.7.0' into environment
Installing package 'numexpr' into environment
Installing package 'numexpr-2.8.4' into environment
Installing package 'patsy' into environment
Installing package 'patsy-0.5.3-py3.9' into environment
Installing package 'pyarrow' into environment
Installing package 'lerc' into environment
Installing package 'pylerc-4.0' into environment
Installing package 'scipy' into environment
Installing package 'scipy-1.7.3-py3.9' into environment
Installing package 'urllib3' into environment
Installing package 'urllib3-1.26.16' into environment
Installing package 'distributed' into environment
Installing package 'distributed-2023.3.2' into environment
Installing package 'ipywidgets' into environment
Installing package 'ipywidgets-7.7.2' into environment
Installing package 'jupyter_console' into environment
Installing package 'jupyter_console-6.4.2' into environment
Installing package 'matplotlib' into environment
Installing package 'matplotlib-3.6.3' into environment
Installing package 'mpl_toolkits' into environment
Installing package 'nbconvert' into environment
Installing package 'nbconvert-7.2.1' into environment
Installing package 'netCDF4' into environment
Installing package 'netCDF4-1.6.4' into environment
Installing package 'pandas' into environment
Installing package 'pandas-2.0.2' into environment
Installing package 'requests' into environment
Installing package 'requests-2.31.0' into environment
Installing package 'arcgisscripting' into environment
Installing package 'azure' into environment
Installing package 'azure_core-1.12.0' into environment
Installing package 'jupyter_server' into environment
Installing package 'jupyter_server-1.21.0' into environment
Installing package 'notebook' into environment
Installing package 'notebook-6.4.12' into environment
Installing package 'requests_gssapi' into environment
Installing package 'requests_gssapi-1.2.3' into environment
Installing package 'requests_kerberos' into environment
Installing package 'requests_kerberos-0.12.0-py3.7' into environment
Installing package 'requests_negotiate_sspi' into environment
Installing package 'requests_negotiate_sspi-0.0.0' into environment
Installing package 'requests_oauthlib' into environment
Installing package 'requests_oauthlib-1.3.0' into environment
Installing package 'requests_toolbelt' into environment
Installing package 'requests_toolbelt-1.0.0' into environment
Installing package 'saspy' into environment
Installing package 'saspy-4.3.2' into environment
Installing package 'seaborn' into environment
Installing package 'seaborn-0.12.2' into environment
Installing package 'statsmodels' into environment
Installing package 'statsmodels-0.14.0' into environment
Installing package 'swat' into environment
Installing package 'swat-1.13.2' into environment
Installing package 'xarray-2023.6.0' into environment
Installing package 'arcgis' into environment
Installing package 'arcgis-2.2.0.1-py3.9' into environment
Installing package 'jupyter_contrib_core' into environment
Installing package 'jupyter_contrib_core-0.4.0' into environment
Installing package 'jupyterlab_server' into environment
Installing package 'jupyterlab_server-2.16.0' into environment
Installing package 'msrest' into environment
Installing package 'msrest-0.6.21' into environment
Installing package 'notebook_shim' into environment
Installing package 'notebook_shim-0.1.0' into environment
Installing package 'azure_storage_blob-12.8.0' into environment
Installing package 'jupyter_highlight_selected_word' into environment
Installing package 'jupyter_highlight_selected_word-0.2.0' into environment
Installing package 'jupyter_latex_envs-1.4.6' into environment
Installing package 'latex_envs' into environment
Installing package 'jupyter_nbextensions_configurator' into environment
Installing package 'jupyter_nbextensions_configurator-0.4.1' into environment
Installing package 'nbclassic' into environment
Installing package 'nbclassic-0.4.8' into environment
Installing package 'jupyter_contrib_nbextensions' into environment
Installing package 'jupyter_contrib_nbextensions-0.6.0' into environment
Installing package 'jupyterlab' into environment
Installing package 'jupyterlab-3.4.8' into environment
Installing package 'pro_notebook_integration' into environment
Installing package 'pro_notebook_integration-3.1' into environment

Final results:

Executing transaction: ...working... 
done
ERROR conda.core.link:_execute(730): An error occurred while installing package 'esri::arcpy-base-3.2-py39_49743'.

What I could see as an "issue" is that we should maybe update the arcpy (arcpy-base) packages first, before cloning? However,
the message of the Package Manager is that we cannot modify the default Python environment (see screenshot). This seems a catch-22 situation...

ArcGISDesktopPackageManager

@ew-pov
Copy link
Author

ew-pov commented Nov 12, 2024

Just checking if somebody might know why the cloning does not work... @cleebp ?

@cleebp
Copy link

cleebp commented Nov 12, 2024

Regarding the cloning: I had a few packages installed using conda and pip (oracledb, shapely, geopandas pygeos, fiona, not really anything really special).
We just had a reinstall of our environment. Hence, I could start with a clean slate.

@ew-pov can you confirm that you are trying to clone a clean arcgispro-py3 environment with no additional packages installed via conda/pip? I just stood up a clean 3.2.4 machine and am able to clone arcgispro-py3, as long as your environment has not been modified cloning should work okay out of the box.

If you previously had pip/conda installed packages into arcgispro-py3 the uninstaller will not remove these files and they must be deleted manually before reinstalling, my instructions above should work. If you want you can also try removing your local package cache at %localappdata%\esri\conda\pkgs, it is safe to remove the entire pkgs folder and this will force conda to redownload all packages on your next clone in case a local package cache file is corrupted.

I see in your details for the clone the following files listed 838, while on my machine I only see 506 files listed in the clone (I see the same number of packages listed), there may be some leftover files on your machine based on this, I would recommend uninstalling pro and making sure the C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3 folder is fully removed.

Packages: 267
Files: 838

Here is my 3.2.4 clone output:

"C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\conda.exe" create --clone "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3" -p "C:\Users\bri11091\AppData\Local\ESRI\conda\envs\pro-324_2" --no-shortcuts --pinned --yes

Installing package 'xarray' into environment
Installing package 'arcpy_wmx' into environment
Installing package 'bapy' into environment
Installing package 'gapy' into environment
Source: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
Destination: C:\Users\bri11091\AppData\Local\ESRI\conda\envs\pro-324_2
Packages: 267
Files: 506
Copying pinned file from C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\conda-meta\pinned to C:\Users\bri11091\AppData\Local\ESRI\conda\envs\pro-324_2\conda-meta\pinned
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Installing package 'pybind11' into environment
Installing package 'appdirs-1.4.4-py3.9' into environment
Installing package 'attr' into environment
Installing package 'attrs' into environment
Installing package 'attrs-22.1.0' into environment
Installing package 'backcall' into environment
Installing package 'backcall-0.2.0' into environment
Installing package 'blinker' into environment
Installing package 'blinker-1.4-py3.9' into environment
Installing package 'cachetools' into environment
Installing package 'cachetools-4.2.2' into environment
Installing package 'certifi' into environment
Installing package 'certifi-2023.7.22' into environment
Installing package 'chardet' into environment
Installing package 'chardet-4.0.0' into environment
Installing package 'charset_normalizer' into environment
Installing package 'charset_normalizer-2.0.4' into environment
Installing package 'cloudpickle' into environment
Installing package 'cloudpickle-2.0.0' into environment
Installing package 'colorama' into environment
Installing package 'colorama-0.4.6' into environment
Installing package 'cycler-0.11.0' into environment
Installing package 'debugpy' into environment
Installing package 'debugpy-1.5.1' into environment
Installing package 'decorator-5.1.1' into environment
Installing package 'defusedxml' into environment
Installing package 'defusedxml-0.7.1' into environment
Installing package 'entrypoints-0.4' into environment
Installing package 'et_xmlfile' into environment
Installing package 'et_xmlfile-1.1.0-py3.9' into environment
Installing package 'exceptiongroup' into environment
Installing package 'exceptiongroup-1.0.0rc9' into environment
Installing package 'executing' into environment
Installing package 'executing-0.8.3' into environment
Installing package 'fsspec' into environment
Installing package 'fsspec-2023.4.0' into environment
Installing package 'greenlet' into environment
Installing package 'greenlet-1.1.1' into environment
Installing package 'HeapDict-1.0.1' into environment
Installing package 'idna' into environment
Installing package 'idna-3.4' into environment
Installing package 'iniconfig' into environment
Installing package 'iniconfig-1.1.1' into environment
Installing package 'ipython_genutils' into environment
Installing package 'ipython_genutils-0.2.0' into environment
Installing package 'jdcal-1.4.1' into environment
Installing package 'json5' into environment
Installing package 'json5-0.9.5' into environment
Installing package 'jupyterlab_widgets' into environment
Installing package 'jupyterlab_widgets-3.0.3' into environment
Installing package 'kiwisolver' into environment
Installing package 'kiwisolver-1.4.4' into environment
Installing package 'locket' into environment
Installing package 'locket-1.0.0' into environment
Installing package 'lz4' into environment
Installing package 'lz4-3.1.3' into environment
Installing package 'MarkupSafe-2.1.1' into environment
Installing package 'markupsafe' into environment
Installing package 'mccabe-0.7.0' into environment
Installing package 'mistune' into environment
Installing package 'mistune-2.0.4' into environment
Installing package 'mpmath' into environment
Installing package 'mpmath-1.2.1-py3.9' into environment
Installing package 'msgpack' into environment
Installing package 'msgpack-1.0.3' into environment
Installing package 'munkres-1.1.4-py3.6' into environment
Installing package 'mypy_extensions-0.4.3-py3.9' into environment
Installing package 'nest_asyncio-1.5.6' into environment
Installing package 'networkx' into environment
Installing package 'networkx-2.8.4' into environment
Installing package 'nose' into environment
Installing package 'nose-1.3.7' into environment
Installing package 'numpy' into environment
Installing package 'numpy-1.22.4' into environment
Installing package 'olefile' into environment
Installing package 'olefile-0.46' into environment
Installing package 'pandocfilters-1.5.0' into environment
Installing package 'parso' into environment
Installing package 'parso-0.8.3' into environment
Installing package 'pathspec' into environment
Installing package 'pathspec-0.9.0' into environment
Installing package 'pickleshare-0.7.5' into environment
Installing package 'platformdirs' into environment
Installing package 'platformdirs-2.5.2' into environment
Installing package 'pluggy' into environment
Installing package 'pluggy-0.13.1' into environment
Installing package 'prometheus_client' into environment
Installing package 'prometheus_client-0.8.0' into environment
Installing package 'google' into environment
Installing package 'protobuf-4.21.12' into environment
Installing package 'psutil' into environment
Installing package 'psutil-5.9.0' into environment
Installing package 'pure_eval' into environment
Installing package 'pure_eval-0.2.2' into environment
Installing package 'pycodestyle-2.8.0' into environment
Installing package 'pycparser' into environment
Installing package 'pycparser-2.21' into environment
Installing package 'pyflakes' into environment
Installing package 'pyflakes-2.4.0' into environment
Installing package 'PyJWT-2.4.0' into environment
Installing package 'jwt' into environment
Installing package 'pyodbc-4.0.34' into environment
Installing package 'pyparsing' into environment
Installing package 'pyparsing-3.0.9' into environment
Installing package 'PyPDF2' into environment
Installing package 'PyPDF2-1.26.0' into environment
Installing package 'pyrsistent' into environment
Installing package 'pyrsistent-0.18.0' into environment
Installing package 'pyshp-2.1.3' into environment
Installing package 'fastjsonschema' into environment
Installing package 'fastjsonschema-2.16.2' into environment
Installing package 'pywin32_ctypes-0.2.0-py3.9' into environment
Installing package 'win32ctypes' into environment
Installing package 'pywin32security' into environment
Installing package 'PyYAML-6.0-py3.9-win-amd64' into environment
Installing package 'yaml' into environment
Installing package 'regex' into environment
Installing package 'regex-2022.7.9' into environment
Installing package 'ruamel.yaml.clib-0.2.6' into environment
Installing package 'Send2Trash-1.8.0' into environment
Installing package 'send2trash' into environment
Installing package 'pkg_resources' into environment
Installing package 'setuptools' into environment
Installing package 'setuptools-67.7.2-py3.9' into environment
Installing package 'six-1.16.0' into environment
Installing package 'sniffio' into environment
Installing package 'sniffio-1.2.0' into environment
Installing package 'sortedcontainers' into environment
Installing package 'sortedcontainers-2.4.0' into environment
Installing package 'soupsieve' into environment
Installing package 'soupsieve-2.3.2.post1' into environment
Installing package 'tblib' into environment
Installing package 'tblib-1.7.0' into environment
Installing package 'testpath' into environment
Installing package 'testpath-0.5.0' into environment
Installing package 'toml' into environment
Installing package 'toml-0.10.2' into environment
Installing package 'tomli' into environment
Installing package 'tomli-2.0.1' into environment
Installing package 'tlz' into environment
Installing package 'toolz' into environment
Installing package 'toolz-0.11.2' into environment
Installing package 'tornado' into environment
Installing package 'tornado-6.2' into environment
Installing package 'traitlets' into environment
Installing package 'traitlets-5.5.0' into environment
Installing package 'typed_ast' into environment
Installing package 'typed_ast-1.4.3' into environment
Installing package 'typing_extensions-4.3.0' into environment
Installing package 'ujson-5.4.0' into environment
Installing package 'wcwidth' into environment
Installing package 'wcwidth-0.2.5' into environment
Installing package 'webencodings' into environment
Installing package 'webencodings-0.5.1-py3.9' into environment
Installing package 'wheel' into environment
Installing package 'wheel-0.37.1-py3.9' into environment
Installing package 'widgetsnbextension' into environment
Installing package 'widgetsnbextension-3.6.1' into environment
Installing package 'win_inet_pton-1.1.0' into environment
Installing package 'winkerberos-0.8.0' into environment
Installing package 'wrapt' into environment
Installing package 'wrapt-1.14.1' into environment
Installing package 'xlrd' into environment
Installing package 'xlrd-2.0.1' into environment
Installing package 'xlwt' into environment
Installing package 'xlwt-1.3.0-py3.9' into environment
Installing package 'zict' into environment
Installing package 'zict-3.0.0' into environment
Installing package 'zipp-3.8.0' into environment
Installing package 'anyio' into environment
Installing package 'anyio-3.5.0' into environment
Installing package 'asttokens' into environment
Installing package 'asttokens-2.0.5' into environment
Installing package 'beautifulsoup4-4.12.2' into environment
Installing package 'bs4' into environment
Installing package 'cffi' into environment
Installing package 'cffi-1.15.1' into environment
Installing package 'click' into environment
Installing package 'click-8.0.4' into environment
Installing package 'cytoolz' into environment
Installing package 'cytoolz-0.11.0-py3.9' into environment
Installing package 'fontTools' into environment
Installing package 'fonttools-4.25.0-py3.9' into environment
Installing package 'importlib_metadata' into environment
Installing package 'importlib_metadata-6.0.0' into environment
Installing package 'isodate' into environment
Installing package 'isodate-0.6.0' into environment
Installing package 'jedi' into environment
Installing package 'jedi-0.18.2' into environment
Installing package 'Jinja2-3.0.3' into environment
Installing package 'jinja2' into environment
Installing package 'jsonschema' into environment
Installing package 'jsonschema-4.17.3' into environment
Installing package 'lxml' into environment
Installing package 'lxml-4.9.1' into environment
Installing package 'matplotlib_inline' into environment
Installing package 'matplotlib_inline-0.1.6' into environment
Installing package 'mkl' into environment
Installing package 'mkl_service-2.4.0-py3.9' into environment
Installing package 'ntlm_auth' into environment
Installing package 'ntlm_auth-1.4.0' into environment
Installing package 'openpyxl' into environment
Installing package 'openpyxl-3.0.10-py3.9' into environment
Installing package 'packaging' into environment
Installing package 'packaging-21.3' into environment
Installing package 'partd' into environment
Installing package 'partd-1.2.0' into environment
Installing package 'ordlookup' into environment
Installing package 'pefile-2022.5.30' into environment
Installing package 'PIL' into environment
Installing package 'Pillow-9.5.0' into environment
Installing package 'pip' into environment
Installing package 'pip-23.2.1-py3.9' into environment
Installing package 'Pygments-2.14.0' into environment
Installing package 'pygments' into environment
Installing package 'PySocks-1.7.1' into environment
Installing package 'certifi_win32' into environment
Installing package 'python_certifi_win32-1.7.dev1+g24a5d1b' into environment
Installing package 'dateutil' into environment
Installing package 'python_dateutil-2.8.2' into environment
Installing package 'gssapi' into environment
Installing package 'gssapi-1.8.2' into environment
Installing package 'pywinpty-2.0.1' into environment
Installing package 'winpty' into environment
Installing package 'ruamel' into environment
Installing package 'ruamel.yaml-0.17.21' into environment
Installing package 'SQLAlchemy-1.4.39' into environment
Installing package 'sqlalchemy' into environment
Installing package 'tinycss2' into environment
Installing package 'tinycss2-1.1.1' into environment
Installing package 'tqdm' into environment
Installing package 'tqdm-4.64.1' into environment
Installing package 'websocket' into environment
Installing package 'websocket_client-0.58.0' into environment
Installing package 'x86cpu' into environment
Installing package 'x86cpu-0.4-py3.9' into environment
Installing package 'argon2_cffi_bindings-21.2.0' into environment
Installing package 'black' into environment
Installing package 'black-0.0.0' into environment
Installing package 'black_primer' into environment
Installing package 'blackd' into environment
Installing package 'blib2to3' into environment
Installing package 'bleach' into environment
Installing package 'bleach-4.1.0' into environment
Installing package 'brotli' into environment
Installing package 'brotlipy-0.7.0-py3.9' into environment
Installing package 'cryptography' into environment
Installing package 'cryptography-41.0.3' into environment
Installing package 'dask' into environment
Installing package 'dask-2023.3.2' into environment
Installing package 'flake8' into environment
Installing package 'flake8-4.0.1' into environment
Installing package 'geomet' into environment
Installing package 'geomet-1.0.0' into environment
Installing package 'jupyter_core' into environment
Installing package 'jupyter_core-4.11.2' into environment
Installing package 'jupyterlab_pygments' into environment
Installing package 'jupyterlab_pygments-0.2.2' into environment
Installing package 'mkl_fft' into environment
Installing package 'mkl_fft-1.3.1' into environment
Installing package 'mkl_random' into environment
Installing package 'mkl_random-1.2.2' into environment
Installing package 'prompt_toolkit' into environment
Installing package 'prompt_toolkit-3.0.5' into environment
Installing package 'pytest' into environment
Installing package 'pytest-7.2.0' into environment
Installing package 'pyzmq-25.0.2' into environment
Installing package 'zmq' into environment
Installing package 'stack_data' into environment
Installing package 'stack_data-0.5.1' into environment
Installing package 'terminado' into environment
Installing package 'terminado-0.13.1' into environment
Installing package 'argon2' into environment
Installing package 'argon2_cffi-21.3.0' into environment
Installing package 'IPython' into environment
Installing package 'ipython-7.34.0' into environment
Installing package 'jupyter_client' into environment
Installing package 'jupyter_client-6.1.12' into environment
Installing package 'keyring' into environment
Installing package 'keyring-23.4.0' into environment
Installing package 'nbformat' into environment
Installing package 'nbformat-5.6.1' into environment
Installing package 'oauthlib' into environment
Installing package 'oauthlib-3.2.0' into environment
Installing package 'OpenSSL' into environment
Installing package 'pyOpenSSL-23.2.0' into environment
Installing package 'pypdf' into environment
Installing package 'pypdf-3.15.0' into environment
Installing package 'pyspnego-0.8.0' into environment
Installing package 'spnego' into environment
Installing package 'Bottleneck-1.3.5' into environment
Installing package 'bottleneck' into environment
Installing package 'cftime' into environment
Installing package 'cftime-1.6.2' into environment
Installing package 'contourpy' into environment
Installing package 'contourpy-1.0.5' into environment
Installing package 'osgeo' into environment
Installing package 'osgeo_utils' into environment
Installing package 'h5py' into environment
Installing package 'h5py-3.9.0' into environment
Installing package 'ipykernel' into environment
Installing package 'ipykernel-6.16.0' into environment
Installing package 'nbclient' into environment
Installing package 'nbclient-0.7.0' into environment
Installing package 'numexpr' into environment
Installing package 'numexpr-2.8.4' into environment
Installing package 'patsy' into environment
Installing package 'patsy-0.5.3-py3.9' into environment
Installing package 'pyarrow' into environment
Installing package 'lerc' into environment
Installing package 'pylerc-4.0' into environment
Installing package 'scipy' into environment
Installing package 'scipy-1.7.3-py3.9' into environment
Installing package 'urllib3' into environment
Installing package 'urllib3-1.26.16' into environment
Installing package 'distributed' into environment
Installing package 'distributed-2023.3.2' into environment
Installing package 'ipywidgets' into environment
Installing package 'ipywidgets-7.7.2' into environment
Installing package 'jupyter_console' into environment
Installing package 'jupyter_console-6.4.2' into environment
Installing package 'matplotlib' into environment
Installing package 'matplotlib-3.6.3' into environment
Installing package 'mpl_toolkits' into environment
Installing package 'nbconvert' into environment
Installing package 'nbconvert-7.2.1' into environment
Installing package 'netCDF4' into environment
Installing package 'netCDF4-1.6.4' into environment
Installing package 'pandas' into environment
Installing package 'pandas-2.0.2' into environment
Installing package 'requests' into environment
Installing package 'requests-2.31.0' into environment
Installing package 'arcgisscripting' into environment
Installing package 'azure' into environment
Installing package 'azure_core-1.12.0' into environment
Installing package 'jupyter_server' into environment
Installing package 'jupyter_server-1.21.0' into environment
Installing package 'notebook' into environment
Installing package 'notebook-6.4.12' into environment
Installing package 'requests_gssapi' into environment
Installing package 'requests_gssapi-1.2.3' into environment
Installing package 'requests_kerberos' into environment
Installing package 'requests_kerberos-0.12.0-py3.7' into environment
Installing package 'requests_negotiate_sspi' into environment
Installing package 'requests_negotiate_sspi-0.0.0' into environment
Installing package 'requests_oauthlib' into environment
Installing package 'requests_oauthlib-1.3.0' into environment
Installing package 'requests_toolbelt' into environment
Installing package 'requests_toolbelt-1.0.0' into environment
Installing package 'saspy' into environment
Installing package 'saspy-4.3.2' into environment
Installing package 'seaborn' into environment
Installing package 'seaborn-0.12.2' into environment
Installing package 'statsmodels' into environment
Installing package 'statsmodels-0.14.0' into environment
Installing package 'swat' into environment
Installing package 'swat-1.13.2' into environment
Installing package 'xarray-2023.6.0' into environment
Installing package 'arcgis' into environment
Installing package 'arcgis-2.2.0.1-py3.9' into environment
Installing package 'jupyter_contrib_core' into environment
Installing package 'jupyter_contrib_core-0.4.0' into environment
Installing package 'jupyterlab_server' into environment
Installing package 'jupyterlab_server-2.16.0' into environment
Installing package 'msrest' into environment
Installing package 'msrest-0.6.21' into environment
Installing package 'notebook_shim' into environment
Installing package 'notebook_shim-0.1.0' into environment
Installing package 'azure_storage_blob-12.8.0' into environment
Installing package 'jupyter_highlight_selected_word' into environment
Installing package 'jupyter_highlight_selected_word-0.2.0' into environment
Installing package 'jupyter_latex_envs-1.4.6' into environment
Installing package 'latex_envs' into environment
Installing package 'jupyter_nbextensions_configurator' into environment
Installing package 'jupyter_nbextensions_configurator-0.4.1' into environment
Installing package 'nbclassic' into environment
Installing package 'nbclassic-0.4.8' into environment
Installing package 'jupyter_contrib_nbextensions' into environment
Installing package 'jupyter_contrib_nbextensions-0.6.0' into environment
Installing package 'jupyterlab' into environment
Installing package 'jupyterlab-3.4.8' into environment
Installing package 'pro_notebook_integration' into environment
Installing package 'pro_notebook_integration-3.1' into environment
Executing transaction: ...working...
Uninstalling prior versions of arcgis widget
Installing C:\Users\bri11091\AppData\Local\ESRI\conda\envs\pro-324_2\lib\site-packages\arcgis\widgets/js/dist -> arcgis
Up to date: C:\Users\bri11091\AppData\Local\ESRI\conda\envs\pro-324_2\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js
Up to date: C:\Users\bri11091\AppData\Local\ESRI\conda\envs\pro-324_2\share\jupyter\nbextensions\arcgis\arcgis-map-ipywidget.js.map
Up to date: C:\Users\bri11091\AppData\Local\ESRI\conda\envs\pro-324_2\share\jupyter\nbextensions\arcgis\extension.js

  • Validating: ok
    To initialize this nbextension in the browser every time the notebook (or other app) loads:

        jupyter nbextension enable arcgis --py --sys-prefix
    

Enabling notebook extension arcgis/extension...
- Validating: ok
done
Retrieving notices: ...working... done

@ew-pov
Copy link
Author

ew-pov commented Nov 13, 2024

@cleebp Thanks for the detailed look into this. I think that I am doing a clean install, because every month we get a clean environment. Despite that, I just had a look in %localappdata%\esri\conda\pkgs and, currently, that is full (but I also created additional (non-ArcGIS) environments). That is why I did a conda clean -a before cloning (and answer yes on each question to clean indices, caches, etc).

conda list in my 3.2.2 environment, which is a list of 267 packages, which matches your number.

details anyio 3.5.0 py39haa95532_0 appdirs 1.4.4 pyhd3eb1b0_0 arcgis 2.2.0.1 py39_39 esri arcgispro 3.2 0 esri arcpy 3.2 py39_arcgispro_49743 [arcgispro] esri arcpy-base 3.2 py39_49743 esri argon2-cffi 21.3.0 pyhd3eb1b0_0 argon2-cffi-bindings 21.2.0 py39h2bbff1b_0 arrow-cpp 12.0.0 2 esri asttokens 2.0.5 pyhd3eb1b0_0 attrs 22.1.0 py39haa95532_0 azure-core 1.12.0 py_0 esri azure-storage-blob 12.8.0 py_0 esri babel 2.11.0 py39_1 esri backcall 0.2.0 pyhd3eb1b0_0 esri beautifulsoup4 4.12.2 py39haa95532_0 black 22.1.0 py39_3 esri blas 1.0 mkl bleach 4.1.0 pyhd3eb1b0_0 blinker 1.4 py39haa95532_0 bottleneck 1.3.5 py39h080aedc_0 brotli 1.0.9 0 esri brotli-bin 1.0.9 0 esri brotlipy 0.7.0 py39h2bbff1b_1003 c-ares 1.19.1 0 esri cachetools 4.2.2 pyhd3eb1b0_0 certifi 2023.7.22 py39haa95532_0 cffi 1.15.1 py39h2bbff1b_3 cftime 1.6.2 py39_0 esri chardet 4.0.0 py39haa95532_1003 charset-normalizer 2.0.4 pyhd3eb1b0_0 click 8.0.4 py39haa95532_0 cloudpickle 2.0.0 pyhd3eb1b0_0 colorama 0.4.6 py39haa95532_0 contourpy 1.0.5 py39h59b6b97_0 cppzmq 4.9.0 0 esri cryptography 41.0.3 py39_2 esri cycler 0.11.0 pyhd3eb1b0_0 cytoolz 0.11.0 py39h2bbff1b_0 dask 2023.3.2 py_0 esri dask-core 2023.3.2 py39haa95532_0 debugpy 1.5.1 py39hd77b12b_0 decorator 5.1.1 pyhd3eb1b0_0 defusedxml 0.7.1 pyhd3eb1b0_0 distributed 2023.3.2 py_0 esri dpcpp-cpp-rt 2022.2.1 arcgispro_19741 [arcgispro] esri entrypoints 0.4 py39haa95532_0 et_xmlfile 1.1.0 py39haa95532_0 exceptiongroup 1.0.0rc9 pyhd8ed1ab_0 esri executing 0.8.3 pyhd3eb1b0_0 flake8 4.0.1 pyhd3eb1b0_1 fonttools 4.25.0 pyhd3eb1b0_0 freetype 2.12.1 4 esri fsspec 2023.4.0 py39haa95532_0 future 0.18.2 py39_2 esri gdal 3.7.0 arcgispro_py39_17195 [arcgispro] esri geomet 1.0.0 py_0 esri greenlet 1.1.1 py39hd77b12b_0 h5py 3.9.0 arcgispro_py39_1 [arcgispro] esri heapdict 1.0.1 pyhd3eb1b0_0 icc_rt 2022.2.1 arcgispro_19741 [arcgispro] esri idna 3.4 py39haa95532_0 importlib-metadata 6.0.0 py39haa95532_0 importlib_metadata 6.0.0 hd3eb1b0_0 iniconfig 1.1.1 pyhd3eb1b0_0 esri intel-cmplr-lib-rt 2022.2.1 arcgispro_19741 [arcgispro] esri intel-fortran-rt 2022.2.1 arcgispro_19741 [arcgispro] esri intel-openmp 2022.2.1 arcgispro_19741 [arcgispro] esri ipykernel 6.16.0 py_1 esri ipython 7.34.0 pyhbfea036_1 esri ipython_genutils 0.2.0 pyhd3eb1b0_1 ipywidgets 7.7.2 py_0 esri isodate 0.6.0 py_0 esri jdcal 1.4.1 pyhd3eb1b0_0 jedi 0.18.2 py_1 esri jinja2 3.0.3 pyhd3eb1b0_0 jpeg 9e 0 esri json5 0.9.5 py_0 esri jsonschema 4.17.3 py39haa95532_0 jupyter_client 6.1.12 py_0 esri jupyter_console 6.4.2 py_0 esri jupyter_contrib_core 0.4.0 py_0 esri jupyter_contrib_nbextensions 0.6.0 py_2 esri jupyter_core 4.11.2 py39_1 esri jupyter_highlight_selected_word 0.2.0 py_4 esri jupyter_latex_envs 1.4.6 py_5 esri jupyter_nbextensions_configurator 0.4.1 py_3 esri jupyter_server 1.21.0 py_0 esri jupyterlab 3.4.8 py_0 esri jupyterlab_pygments 0.2.2 py_0 esri jupyterlab_server 2.16.0 py_1 esri jupyterlab_widgets 3.0.3 py_1 esri keyring 23.4.0 py39_0 esri kiwisolver 1.4.4 py39hd77b12b_0 krb5 1.21.1 0 esri libabseil 20230125.3 0 esri libbrotlicommon 1.0.9 0 esri libbrotlidec 1.0.9 0 esri libbrotlienc 1.0.9 0 esri libdeflate 1.17 h2bbff1b_0 libpng 1.6.39 h8cc25b3_0 libprotobuf 3.21.12 0 esri libsodium 1.0.18 5 esri libthrift 0.18.1 0 esri libtiff 4.5.1 0 esri libutf8proc 2.8.0 0 esri libxml2 2.10.4 arcgispro_0 [arcgispro] esri libxslt 1.1.37 3 esri locket 1.0.0 py39haa95532_0 lxml 4.9.1 py39_1 esri lz4 3.1.3 py39h2bbff1b_0 lz4-c 1.9.4 0 esri markupsafe 2.1.1 py39h2bbff1b_0 matplotlib 3.6.3 py39_arcgispro_0 [arcgispro] esri matplotlib-base 3.6.3 py39_arcgispro_0 [arcgispro] esri matplotlib-inline 0.1.6 py39haa95532_0 mccabe 0.7.0 pyhd3eb1b0_0 mistune 2.0.4 py39haa95532_0 mkl 2022.2.1 arcgispro_19755 [arcgispro] esri mkl-service 2.4.0 py39_arcgispro_2 [arcgispro] esri mkl_fft 1.3.1 py39_arcgispro_5 [arcgispro] esri mkl_random 1.2.2 py39_arcgispro_5 [arcgispro] esri mpmath 1.2.1 py39haa95532_0 msgpack-python 1.0.3 py39h59b6b97_0 msrest 0.6.21 py_0 esri munkres 1.1.4 py_0 mypy_extensions 0.4.3 py39haa95532_1 nbclassic 0.4.8 py_0 esri nbclient 0.7.0 py_3 esri nbconvert 7.2.1 py_2 esri nbformat 5.6.1 py_0 esri nest-asyncio 1.5.6 py39haa95532_0 netcdf4 1.6.4 py39_arcgispro_0 [arcgispro] esri networkx 2.8.4 py39haa95532_1 nlohmann_json 3.11.2 0 esri nose 1.3.7 pyhd3eb1b0_1008 notebook 6.4.12 py_0 esri notebook-shim 0.1.0 py_0 esri ntlm-auth 1.4.0 py_0 esri numexpr 2.8.4 py39_2 esri numpy 1.22.4 py39_0 esri numpy-base 1.22.4 py39_0 esri oauthlib 3.2.0 py39_0 esri olefile 0.46 pyhd3eb1b0_0 openpyxl 3.0.10 py39h2bbff1b_0 openssl 3.0.10 0 esri orc 1.8.3 0 esri packaging 21.3 pyhd3eb1b0_0 pandas 2.0.2 py39_0 esri pandocfilters 1.5.0 pyhd3eb1b0_0 parso 0.8.3 pyhd3eb1b0_0 partd 1.2.0 pyhd3eb1b0_1 pathspec 0.9.0 py_0 esri patsy 0.5.3 py39haa95532_0 pefile 2022.5.30 pyhd8ed1ab_0 esri pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 9.5.0 py39_1 esri pip 23.2.1 py39haa95532_0 platformdirs 2.5.2 py39haa95532_0 pluggy 0.13.1 py39haa95532_0 pro_notebook_integration 3.2 py39_5 esri prometheus_client 0.8.0 py_0 esri prompt_toolkit 3.0.5 py_0 esri protobuf 3.21.12 py39_0 esri psutil 5.9.0 py39h2bbff1b_0 pure_eval 0.2.2 pyhd3eb1b0_0 pyarrow 12.0.0 py39_4 esri pybind11 2.10.4 1 esri pybind11_json 0.2.13 0 esri pycodestyle 2.8.0 pyhd3eb1b0_0 pycparser 2.21 pyhd3eb1b0_0 pyflakes 2.4.0 pyhd3eb1b0_0 pygments 2.14.0 py_0 esri pyjwt 2.4.0 py_1 esri pylerc 4.0 py_0 esri pyodbc 4.0.34 py39hd77b12b_0 pyopenssl 23.2.0 py39haa95532_0 pyparsing 3.0.9 py39haa95532_0 pypdf 3.15.0 py_1 esri pypdf2 1.26.0 py_4 esri pyrsistent 0.18.0 py39h196d8e1_0 pyshp 2.1.3 pyhd3eb1b0_0 pysocks 1.7.1 py39haa95532_0 pyspnego 0.8.0 py39h2bbff1b_2 pytest 7.2.0 py39_0 esri python 3.9.18 0 esri python-certifi-win32 1.6 py_0 esri python-dateutil 2.8.2 pyhd3eb1b0_0 python-fastjsonschema 2.16.2 py39haa95532_0 python-gssapi 1.8.2 py39_0 esri python_abi 3.9 1_cp39 esri pytz 2022.6 py39_0 esri pywin32-ctypes 0.2.0 py39_0 esri pywin32-security 306 py39_2 esri pywinpty 2.0.1 py39_0 esri pyyaml 6.0 py39h2bbff1b_1 pyzmq 25.0.2 py39_0 esri re2 2023.06.02 0 esri regex 2022.7.9 py39h2bbff1b_0 requests 2.31.0 py39haa95532_0 requests-gssapi 1.2.3 py_2 esri requests-kerberos 0.12.0 0 esri requests-negotiate-sspi 0.5.3 py39_0 esri requests-oauthlib 1.3.0 py_0 requests-toolbelt 1.0.0 py_0 esri ruamel.yaml 0.17.21 py39h2bbff1b_0 ruamel.yaml.clib 0.2.6 py39h2bbff1b_1 saspy 4.3.2 py_1 esri scipy 1.7.3 py39_3 esri seaborn 0.12.2 py39haa95532_0 send2trash 1.8.0 pyhd3eb1b0_1 setuptools 67.7.2 py39_0 esri six 1.16.0 py_0 esri snappy 1.1.10 0 esri sniffio 1.2.0 py39haa95532_1 sortedcontainers 2.4.0 pyhd3eb1b0_0 soupsieve 2.3.2.post1 py39haa95532_0 sqlalchemy 1.4.39 py39h2bbff1b_0 sqlite 3.41.2 0 esri stack_data 0.5.1 py_0 esri statsmodels 0.14.0 py39h9128911_0 swat 1.13.2 py39_0 esri sympy 1.9 py39_1 esri tblib 1.7.0 pyhd3eb1b0_0 terminado 0.13.1 py39haa95532_0 testpath 0.5.0 py_0 esri tinycss2 1.1.1 py_0 esri toml 0.10.2 pyhd3eb1b0_0 tomli 2.0.1 py39haa95532_0 toolz 0.11.2 pyhd3eb1b0_0 tornado 6.2 py39h2bbff1b_0 tqdm 4.64.1 py39haa95532_0 traitlets 5.5.0 py_0 esri typed-ast 1.4.3 py39h2bbff1b_1 typing-extensions 4.3.0 py39haa95532_0 typing_extensions 4.3.0 py39haa95532_0 tzdata 2023c h04d1e81_0 ujson 5.4.0 py39hd77b12b_0 urllib3 1.26.16 py39haa95532_0 vc 14.2 h21ff451_1 vs2015_runtime 14.27.29016 h5e58377_2 esri wcwidth 0.2.5 pyhd3eb1b0_0 webencodings 0.5.1 py39haa95532_1 websocket-client 0.58.0 py39haa95532_4 wheel 0.37.1 pyhd3eb1b0_0 widgetsnbextension 3.6.1 py_0 esri win_inet_pton 1.1.0 py39_0 esri wincertstore 0.2 py39haa95532_2 winkerberos 0.8.0 py39_0 esri winpty 0.4.3 4 wrapt 1.14.1 py39h2bbff1b_0 x86cpu 0.4 py39_1 esri xarray 2023.6.0 py39haa95532_0 xeus 3.0.5 0 esri xeus-python 0.15.8 0 esri xeus-zmq 1.0.2 0 esri xlrd 2.0.1 pyhd3eb1b0_1 xlwt 1.3.0 py39haa95532_0 xtl 0.7.5 0 esri xz 5.4.2 h8cc25b3_0 yaml 0.2.5 0 esri zeromq 4.3.4 1 esri zict 3.0.0 py_0 esri zipp 3.8.0 py39haa95532_0 zlib 1.2.13 0 esri zlib-ng 2.0.7 0 esri zstd 1.5.5 0 esri

I've just removed %localappdata%\esri\conda\pkgs. And I have to stand corrected. Your suggestion of removing it has done the trick.
Then there might be a bug in conda with respect to this environment, in the sense that conda clean -a does not clean the %localappdata%\esri\conda\pkgs location? At least, I would have expected that. That goes way too deep for me to investigate. What I now know: this did the trick! Thanks. You may close this now.

@scw
Copy link

scw commented Nov 19, 2024

Somewhat confusingly, conda clean --all won't actually clean everything. The reason for this is on Linux / MacOS it is not uncommon to have the environments contain only symbolic links back to the packages in the cache, and rely on a single copy of each package being present in the cache. On Windows this doesn't really work, and separate files are present for each environment, even when its the same build of the same package. You can get clean to do the work, but only with conda clean --force-pkgs-dirs which will delete the entire cache, and includes the note:

Remove all writable package caches. This option is not included with the --all flag. WARNING: This will break environments with packages installed using symlinks back to the package cache.

For our use case, it makes sense that we do something in the Package Manager part of Pro to do a full clean since the symbolic linking case isn't relevant for us (but is for conda more broadly).

@ew-pov
Copy link
Author

ew-pov commented Nov 19, 2024

@scw That is very useful information. Thanks for that. I'll definitely take note of that. As you might have noticed, I do come from a Unix/Linux/Mac background. That's why I took that warning quite seriously and never considered that. It would be great to take that into account with the Package Manger (an option to "clear the cache" or so, that triggers this command).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants