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

Virtual environment issue #16

Open
ReinhardtBotha opened this issue Jul 19, 2022 · 2 comments
Open

Virtual environment issue #16

ReinhardtBotha opened this issue Jul 19, 2022 · 2 comments

Comments

@ReinhardtBotha
Copy link

Running conda env create --file environment.yml to create the virtual environment completes successfully (link to full terminal output), however when trying to run proswap 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

Additionally when activating the environment in the Python Command prompt I also get this message:

(arcgispro-py3) C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3>activate field-maps-scripts
Current directory is another environment, changing directory to active environment.

(field-maps-scripts) C:\Program Files\ArcGIS\Pro\bin\Python\envs\field-maps-scripts\etc\conda\activate.d>rem proj-data is installed because its license was copied over

Is there anything I'm missing? Any help will be appreciated.

To Reproduce
Steps to reproduce the behavior:

  1. Install ArcGIS Pro 3.0
  2. Run conda env create --file environment.yml to create the virtual environment with the correct dependencies
  3. Run activate field-maps-scripts to activate the environment
  4. Run proswap field-maps-scripts to activate the environment
  5. See error
  6. Open ArcGIS Pro, go to Package Manager > Environment Manager
  7. See error

Expected behavior
A working virtual environment which can be activated in ArcGIS Pro.

@nkorchonnoff
Copy link

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.

@ReinhardtBotha
Copy link
Author

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:
Screenshot 2022-08-08 200035

I tried to repair the environment in Pro, but it fails. Link to output from repair

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

No branches or pull requests

2 participants