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

[Windows] System-wide conda environments are not returned by EnumerateCondaEnvironments #5

Open
lostmsu opened this issue Oct 13, 2020 · 3 comments

Comments

@lostmsu
Copy link
Contributor

lostmsu commented Oct 13, 2020

We should have a clear separation of system-wide and user environments similar to EnvironmentVariableTarget.

By default, both types of environments should be returned, and CondaEnvironment should be able to tell the type to distinguish between them.

@lostmsu
Copy link
Contributor Author

lostmsu commented Oct 13, 2020

To reproduce simply run the app project, and use list command. System-wide environments will not be printed.

@kurikabocya
Copy link

Thank you, the [new] one worked!
[old]
GradientEngine.UseEnvironmentFromVariable();
[new]
System.IO.DirectoryInfo home = new System.IO.DirectoryInfo(@"c:\ProgramData\Anaconda3\envs\py35cpu");
PythonEnvironment myenv = CondaEnvironment.DetectCondaEnvironment(home);
GradientEngine.UseEnvironment(myenv);

@lostmsu
Copy link
Contributor Author

lostmsu commented Oct 14, 2020

@kurikabocya would you mind testing the fix for this issue? For that, either clone this repo and run app.csproj and pass single command line parameter list, or try your [old] code variant with the lasted nightly build of WhichPython ( you can install/update to preview package version from https://www.nuget.org/packages/WhichPython/0.3.4-CI-20201012-001 ).

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