Skip to main content

What are the best strategies and practices to prevent or resolve errors like these?

When using the HP AI Studio Platform, I often encounter pip dependency conflicts inside a Jupyter Notebook — particularly when pulling the NVIDIA NeMo framework from the HP AI Studio Images Catalog to create a new workspace—and then running Jupyter notebooks in the HP AI Blueprint “Agentic RAG for AI Studio with TRT-LLM and LangGraph” (https://github.com/HPInc/AI-Blueprints/tree/main/generative-ai/agentic_rag_with_trt-llm_and_langgraph). A similar dependency issue also occurred when running the notebooks in the “Vacation Recommendation Agent” blueprint (https://github.com/HPInc/AI-Blueprints/tree/main/ngc-integration/vacation_recommendation_agent_with_bert). In both cases, pip reports conflicts such as:


ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
  numba 0.57.1+1.g5fba9aa8f requires numpy<1.25,>=1.21, but you have numpy 1.26.4 which is incompatible.
  nemo-toolkit 1.22.0 requires numpy<1.24,>=1.22, but you have numpy 1.26.4 which is incompatible.
  nemo-toolkit 1.22.0 requires setuptools>=65.5.1, but you have setuptools 59.6.0 which is incompatible.
  nemo-text-processing 0.2.2rc0 requires setuptools>=65.5.1, but you have setuptools 59.6.0 which is incompatible.


What are the best strategies and practices for preventing or resolving these pip dependency conflicts in this environment?

NVIDIA NeMO images are updated roughly every 6 to 8 weeks to NVIDIA’s NGC Catalog. AI Studio’s NGC Catalog dynamically pulls the latest version available, unless pinned.

HP creates blueprints to test and confirm compatibility of images. To help users blueprints and documentation recommends pinning tested versions. For example, the TensorRT_LLM Agentic blueprint works with NeMO 25.04. You can find this information in the blueprint notebook and readme.md file. 

To avoid dependency issues, please use published use cases on Github for detailed information on tested NeMO images for compatibility with various packages and libraries to achieve tested outcomes. 
 

 


Yes, I specified NeMo version 25.04 in my config.yaml, so the problem must lie elsewhere. In the Agentic RAG for AI Studio blueprint (with TRT-LLM and LangGraph), a version is defined, but the Vacation Recommendation Agent blueprint on GitHub does not include one.

 


Hey ​@mikoaro,

 

I wrote a reply for your issue on our GitHub repo:

 

https://github.com/HPInc/AI-Blueprints/issues/50

 

I am sharing the same message here:

 

Hey @mikoaro,

To resolve the current error, you can uninstall the conflicting library versions and install the compatible ones listed in the error message. Newer versions may introduce additional issues, but you can address them the same way by iteratively adjusting dependencies.

At the moment, AI Studio automatically pulls the latest library versions for each image, which can lead to version conflicts if the requirements.txt file was written for an earlier setup. We're actively working on new features to address this and will share our roadmap as soon as it’s ready.

Also, we’d really appreciate it if you could star our GitHub repo and share it with your network.

Have a great day 😁


Reply