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

Conda environment py35cpu was not found #33

Open
kurikabocya opened this issue Oct 13, 2020 · 2 comments
Open

Conda environment py35cpu was not found #33

kurikabocya opened this issue Oct 13, 2020 · 2 comments

Comments

@kurikabocya
Copy link

kurikabocya commented Oct 13, 2020

[1]
Windows10
(py35cpu) C:\work\automator>conda info -e

conda environments:

base C:\ProgramData\Anaconda3
py35cpu * C:\ProgramData\Anaconda3\envs\py35cpu
tf-1.x-cpu C:\ProgramData\Anaconda3\envs\tf-1.x-cpu
keras-yolo C:\Users\840002.conda\envs\keras-yolo

(py35cpu) C:\work\automator>env | grep -i GRADI
GRADIENT_PYTHON_ENVIRONMENT=conda:py35cpu

[2]
C:\work\automator\OpenCVEAST\Gradient-Samples-master\CSharpOrNot\CSharpOrNotProgram.cs
GradientEngine.UseEnvironmentFromVariable()
exception with
LostTech.Gradient.GradientInitializationException: 'Conda environment py35cpu was not found.'

@lostmsu
Copy link
Contributor

lostmsu commented Oct 13, 2020

Thank you for the report. This looks like an issue in our open source project https://github.com/losttech/WhichPython , which is used to locate Python environments.

Specifically, the environment in question appears to be a system-wide environment (note it is in ProgramData), and WhichPython only searches among user environments.

Workaround

The workaround would be to construct the environment object using CondaEnvironment.DetectCondaEnvironment with full environment path (e.g. C:\ProgramData\Anaconda3\envs\py35cpu) , and pass it to GradientEngine.UseEnvironment(...). Alternatively, it should be possible to manually construct PythonEnvironment instance.

@lostmsu
Copy link
Contributor

lostmsu commented Oct 13, 2020

Opened the issue in WhichPython: losttech/WhichPython#5

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