Python Import Issue - Haystack library overriden

Hello, I'm trying to use haystack-ai in my project for its AI capabilities but whenever I import haystack, windmill installs haystack==0.42, however I need for it to install haystack-ai==2.0.1. Installation is fixed if I import haystack_ai, but such library only work by the name haystack, which will point to the first install mentioned above. In summary:
import haystack_ai as haystack
import haystack_ai as haystack
Installs properly, but after installation will raise the following
...
<module>
import haystack_ai as haystack
ModuleNotFoundError: No module named 'haystack_ai'
...
<module>
import haystack_ai as haystack
ModuleNotFoundError: No module named 'haystack_ai'
And attempting to change the import to haystack it will point to other installation. --- I tried to wrap the image in a custom image with at pip install for the right tool, but I faced the same issue. Is there a way to sort this out? (followed this as example https://discord.com/channels/930051556043276338/1178014822466596925) Thanks in advance
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
3 Replies
rubenf
rubenf3mo ago
Hello, recommend doing a PR so that we can have this exception work for everyone 🙂 https://github.com/windmill-labs/windmill/blob/main/backend/parsers/windmill-parser-py-imports/src/lib.rs#L53
GitHub
windmill/backend/parsers/windmill-parser-py-imports/src/lib.rs at m...
Open-source developer platform to turn scripts into workflows and UIs. Fastest workflow engine (5x vs Airflow). Open-source alternative to Airplane and Retool. - windmill-labs/windmill
developer
developer3mo ago
Thank you for the prompt respone rubenf, I'll look at it. (LOL, it seems to be pretty common) Thanks you so much for the follow up @rubenf Hello! I just wanted to confirm that the latest release v1.313.0 works perfectly and imports haystack-ai correctly. Thank you so much for your support @rubenf
rubenf
rubenf3mo ago
🎉