When running ArcGIS Pro on my M1 Mac with Parallels, I'm unable to clone my default Python environment. I keep getting the following error:
> "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\alexdevoid\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone" --no-shortcuts --pinned --yes
Installing package 'traitlets' into environment
Installing package 'prompt_toolkit' into environment
Installing package 'chardet' into environment
Installing package 'jupyter_server' into environment
Installing package 'requests' into environment
Installing package 'pro_notebook_integration' into environment
Installing package 'soupsieve' into environment
Installing package 'charset_normalizer' into environment
Installing package 'prometheus_client' into environment
Installing package 'html5lib' into environment
Installing package 'attr' into environment
Installing package 'websocket' into environment
Installing package 'pyrsistent' into environment
Installing package 'ipython_genutils' into environment
Installing package 'bleach' into environment
Installing package 'gapy' into environment
Installing package 'anyio' into environment
Installing package 'jinja2' into environment
Installing package 'nbclassic' into environment
Installing package 'winpty' into environment
Installing package 'jupyterlab' into environment
Installing package 'nbformat' into environment
Installing package 'debugpy' into environment
Installing package 'ipykernel' into environment
Installing package 'certifi_win32' into environment
Installing package 'psutil' into environment
Installing package 'parso' into environment
Installing package 'brotli' into environment
Installing package 'dateutil' into environment
Installing package 'urllib3' into environment
Installing package 'tornado' into environment
Installing package 'bs4' into environment
Installing package 'wcwidth' into environment
Installing package 'zmq' into environment
Installing package 'yaml' into environment
Installing package 'nbclient' into environment
Installing package 'jupyterlab_server' into environment
Installing package 'importlib_metadata' into environment
Installing package 'packaging' into environment
Installing package 'mistune' into environment
Installing package 'sniffio' into environment
Installing package 'jupyter_contrib_nbextensions' into environment
Installing package 'jupyter_client' into environment
Installing package 'jupyter_core' into environment
Installing package 'fastjsonschema' into environment
Installing package 'defusedxml' into environment
Installing package 'colorama' into environment
Installing package 'bapy' into environment
Installing package 'backcall' into environment
Installing package 'pygments' into environment
Installing package 'jupyterlab_pygments' into environment
Installing package 'send2trash' into environment
Installing package 'certifi' into environment
Installing package 'jsonschema' into environment
Installing package 'notebook_shim' into environment
Installing package 'wrapt' into environment
Installing package 'despatch' into environment
Installing package 'terminado' into environment
Installing package 'webencodings' into environment
Installing package 'arcgisscripting' into environment
Installing package 'x86cpu' into environment
Installing package 'lxml' into environment
Installing package 'mkl' into environment
Installing package 'jupyter_nbextensions_configurator' into environment
Installing package 'markupsafe' into environment
Installing package 'arcpy_wmx' into environment
Source: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
Destination: C:\Users\alexdevoid\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone
Packages: 437
Files: 2021
Copying pinned file from C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\conda-meta\pinned to C:\Users\alexdevoid\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\conda-meta\pinned
Downloading and Extracting Packages
tensorflow-base-2.7. | | 0%
InvalidArchiveError("Error with archive C:\\Users\\alexdevoid\\AppData\\Local\\ESRI\\conda\\pkgs\\tensorflow-base-2.7.0-py39_cuda11.1_cudnn8.1_6.tar.bz2. You probably need to delete and re-download or re-create this file. Message was:\n\nfailed with error: [WinError 206] The filename or extension is too long: 'C:\\\\Users\\\\alexdevoid\\\\AppData\\\\Local\\\\ESRI\\\\conda\\\\pkgs\\\\tensorflow-base-2.7.0-py39_cuda11.1_cudnn8.1_6\\\\Lib\\\\site-packages\\\\tensorflow\\\\include\\\\external\\\\cudnn_frontend_archive\\\\_virtual_includes\\\\cudnn_frontend\\\\third_party\\\\cudnn_frontend\\\\include\\\\contrib\\\\nlohmann'")
tensorflow-base-2.7. | | 0%
Cleaning up...
Destination folder removed.
Anyone have any clue what's going on?
I've already run ArcGIS Pro as an administrator and I've given write permissions to the cloned environment's destination.
You have exceeded the maximum filename length, so create a new destination folder (eg c:\arcpro )
and send youir clone there.
I'm having the same issue. Creating a new, shorter path for the clone doesn't seem to help, as Pro seems to still download the TF tar to a long path. Anyone know how to change the default download location?
> "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\conda.exe" create --clone "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3" -p "C:\GeoAI\arcgispro-py3-clone" --no-shortcuts --pinned --yes
Installing package 'certifi_win32' into environment
Installing package 'Pillow-9.3.0' into environment
Installing package 'arcpy_wmx' into environment
Installing package 'envipyengine-1.0.6' into environment
Installing package 'wrapt' into environment
Installing package 'x86cpu' into environment
Installing package 'bapy' into environment
Installing package 'gapy' into environment
Installing package 'despatch' into environment
Installing package 'mkl' into environment
Installing package 'arcgisscripting' into environment
Source: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
Destination: C:\GeoAI\arcgispro-py3-clone
Packages: 437
Files: 906
Copying pinned file from C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\conda-meta\pinned to C:\GeoAI\arcgispro-py3-clone\conda-meta\pinned
Downloading and Extracting Packages
tensorflow-base-2.7. | | 0%
InvalidArchiveError("Error with archive C:\\Users\\mapninja\\AppData\\Local\\ESRI\\conda\\pkgs\\tensorflow-base-2.7.0-py39_cuda11.1_cudnn8.1_6.tar.bz2. You probably need to delete and re-download or re-create this file. Message was:\n\nfailed with error: [WinError 206] The filename or extension is too long: 'C:\\\\Users\\\\mapninja\\\\AppData\\\\Local\\\\ESRI\\\\conda\\\\pkgs\\\\tensorflow-base-2.7.0-py39_cuda11.1_cudnn8.1_6\\\\Lib\\\\site-packages\\\\tensorflow\\\\include\\\\external\\\\cudnn_frontend_archive\\\\_virtual_includes\\\\cudnn_frontend\\\\third_party\\\\cudnn_frontend\\\\include\\\\contrib\\\\nlohmann'")
tensorflow-base-2.7. | | 0%
Cleaning up...
Destination folder removed.
Thanx,
Stace
Same problem here - can't clone or update 😞
Try enabling long paths in the Windows registry:
Registry fix worked for me, thanks
Registry fix also worked for me. Thanks!