developerD
Windmillโ€ข2y agoโ€ข
4 replies
developer

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


Installs properly, but after installation will raise the following

...
<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 helpException when importing Python's CV2 lib)

Thanks in advance
Discord
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
Was this page helpful?