You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2]
C:\work\automator\OpenCVEAST\Gradient-Samples-master\CSharpOrNot\CSharpOrNotProgram.cs
GradientEngine.UseEnvironmentFromVariable()
exception with
LostTech.Gradient.GradientInitializationException: 'Conda environment py35cpu was not found.'
The text was updated successfully, but these errors were encountered:
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.
[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.'
The text was updated successfully, but these errors were encountered: