m2lines / L96_demo

Lorenz 1996 two time-scale model for learning machine learning
https://m2lines.github.io/L96_demo
MIT License
33 stars 18 forks source link

Conda fails to solve environment - Windows #150

Open AnonymousFool opened 4 months ago

AnonymousFool commented 4 months ago

Issue

When setting up the environment for building and executing the notebooks, I encountered a LibMambaUnsatisfiableError due to a conflict in environment.yaml.

Context

I uninstalled anaconda and performed a fresh install. Through the anaconda prompt, I opened the folder containing the local repository and attempted to create a new environment from environment.yaml as described in the README. conda threw an error, deeming the packages nomkl and pytorch incompatible due to pytorch requiring mkl. The full output of the command can be found in a pastebin here.

Workaround

I created an empty environment and manually conda installed each package in environment.yaml except torch and torchvision, which I instead pip installed. I then successfully built and executed the notebooks.

dhruvbalwada commented 4 months ago

@IamShubhamGupto - do you know some quick way to resolve this?

IamShubhamGupto commented 4 months ago

Issue

When setting up the environment for building and executing the notebooks, I encountered a LibMambaUnsatisfiableError due to a conflict in environment.yaml.

Context

I uninstalled anaconda and performed a fresh install. Through the anaconda prompt, I opened the folder containing the local repository and attempted to create a new environment from environment.yaml as described in the README. conda threw an error, deeming the packages nomkl and pytorch incompatible due to pytorch requiring mkl. The full output of the command can be found in a pastebin here.

Workaround

I created an empty environment and manually conda installed each package in environment.yaml except torch and torchvision, which I instead pip installed. I then successfully built and executed the notebooks.

Thanks for bringing this up, I'll reproduce the logs and get back. The conda environment is a bit delicate as we wanted it to compile code every time we deploy our website. Since it works there, this should have easy enough solution.

Ill make some changes today

IamShubhamGupto commented 4 months ago

@dhruvbalwada do you happen to have a windows machine laying around? Id like to work on that for some time.

Mac install logs - mac.log

For whatever reason conda on linux and Mac are happy with the current environment.yaml but windows cannot seem to resolve it.

I have a really old windows laptop so it's just taking forever to get anything done. ill look into alternate ways of testing environments until then

IamShubhamGupto commented 4 months ago

@AnonymousFool could you confirm if you were successfully able to download and install pysr on windows ? my Mac and linux systems seems happy again but windows isn't. Might be a localized issue but wanted to check anyway

dhruvbalwada commented 3 months ago

@AnonymousFool - we have addressed this now. Hopefull it works for you.