microsoft / farmvibes-ai

FarmVibes.AI: Multi-Modal GeoSpatial ML Models for Agriculture and Sustainability

Home Page:https://microsoft.github.io/farmvibes-ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error during weed_detection_env.yaml setup

nitinya9av opened this issue · comments

Topic

Notebook

Ask away!

When attempting to create a conda environment for the weed_detection Notebook using the command conda env create -f ./weed_detection_env.yaml, an error message is being generated.

ERROR conda.core.link:_execute(945): An error occurred while installing package 'conda-forge::widgetsnbextension-3.5.2-py38h578d9bd_1'.                                                                    
Rolling back transaction: done                                                                                                                                                                             
                                                                                                                                                                                                           
LinkError: post-link script failed for package conda-forge::widgetsnbextension-3.5.2-py38h578d9bd_1                                                                                                        
location of failed script: /home/beats/anaconda3/envs/weed_detection/bin/.widgetsnbextension-post-link.sh                                                                                                  
==> script messages <==                                                                                                                                                                                    
/home/beats/anaconda3/envs/weed_detection/bin/.widgetsnbextension-post-link.sh: line 1: /home/beats/anaconda3/envs/weed_detection/bin/jupyter-nbextension: No such file or directory                       
                                                                                                                                                                                                           
==> script output <==                                                                                                                                                                                      
stdout:                                                                                                                                                                                                    
stderr:                                                                                                                                                                                                    
return code: 127                                                                                                                                                                                           
                                                                                                                                                                                                           
()

Screenshot from 2024-02-06 16-36-35

Hey, @nitinya9av.

Please consider using micromamba instead of conda. This is yet not updated in our documentation, but moving forward micromamba will be the default to install and manage the requirements of our notebooks.

The command for creating the environment should be:

micromamba  env create -f weed_detection_env.yaml  
micromamba activate farmvibes-ai  

Please let us know if this works for you. The updated documentation will be ready by the time of the next release.

(Related to #141 )

Hello @rafaspadilha

I successfully installed Micromamba by executing the command "${SHELL}" <(curl -L micro.mamba.pm/install.sh). Subsequently, I was able to build an environment for the weed_detection notebook using the command micromamba env create -f weed_detection_env.yaml.

Awesome! That is great to hear, @nitinya9av. Closing this issue for now. Feel free to open a new one if you have more doubts.