Open ReinhardtBotha opened 2 years ago
It looks like you forgot to clone your default ArcGIS Pro environment (arcgispro-py3) before changing your environment variables, which is guaranteed to cause problems.
You're supposed to make a copy of your default environment and leave the original as-is. A clean uninstall/install should do the trick.
Thanks for the reply @nkorchonnoff. I received a new laptop, did a clean install of ArcGIS Pro and cloned the default environment. Then ran the conda env create --file environment.yml
command, which completed. However I still get this problem:
I tried to repair the environment in Pro, but it fails. Link to output from repair
Running
conda env create --file environment.yml
to create the virtual environment completes successfully (link to full terminal output), however when trying to runproswap field-maps-scripts
I get the following error:proswap: C:\Program Files\ArcGIS\Pro\bin\Python\envs\field-maps-scripts environment doesn't appear to contain ArcGIS Pro
In ArcGIS Pro when I go to Package Manager > Environment Manager I get the following error: Broken Environment. Cannot be activated.![image](https://user-images.githubusercontent.com/89278135/179756555-7b701786-3d87-4164-b383-20a5d8eee7af.png)
Additionally when activating the environment in the Python Command prompt I also get this message:
Is there anything I'm missing? Any help will be appreciated.
To Reproduce Steps to reproduce the behavior:
conda env create --file environment.yml
to create the virtual environment with the correct dependenciesactivate field-maps-scripts
to activate the environmentproswap field-maps-scripts
to activate the environmentExpected behavior A working virtual environment which can be activated in ArcGIS Pro.