'Streamlit Share: FileNotFoundError: [Errno 2] "dot" not found in path

I am trying to deploy my app using Streamlit Share. I had both Pydot and the actual Graphviz (2.40.1) installed and was able to run it successfully locally. But when Streamlit share launches my app directly from my GitHub repo, I got the error FileNotFoundError: [Errno 2] "dot" not found in path.

Below are the screenshots of the error message and my environment.yml file. enter image description hereenter image description hereI have tried several methods mentioned on similar posts but not sure what the issue is here. I am a Mac user. Can someone please help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source