WindmillWWindmill
Powered by
developerD
Windmill•2y ago•
4 replies
developer

Python Import Issue - Haystack library overriden

Hello,

I'm trying to use
haystack-ai
haystack-ai
in my project for its AI capabilities but whenever I import
haystack
haystack
, windmill installs
haystack==0.42
haystack==0.42
, however I need for it to install
haystack-ai==2.0.1
haystack-ai==2.0.1
.

Installation is fixed if I import
haystack_ai
haystack_ai
, but such library only work by the name
haystack
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
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 - 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.
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Python Import Error
SpookyBiscuit40SSpookyBiscuit40 / help
15mo ago
Python import randomly fails
YizheYYizhe / help
16mo ago
python old typing library?
Steven MoonSSteven Moon / help
2y ago
Failed to import Python Libaries
LeandroLLeandro / help
14mo ago