deepset-ai / haystack-tutorials

Here you can find all the Tutorials for Haystack 📓
https://haystack.deepset.ai/tutorials
Apache License 2.0
257 stars 87 forks source link

ModuleNotFoundError No module named 'haystack.reader' #254

Closed chandru1003 closed 3 months ago

chandru1003 commented 10 months ago

Describe the issue

I encountered the following error while running the chatbot.py script:

Exception has occurred: ModuleNotFoundError
No module named 'haystack.reader'
  File "C:\GITREPO\File-Based-Chatbot\chatbot.py", line 7, in <module>
    from haystack.reader.farm import FARMReader
ModuleNotFoundError: No module named 'haystack.reader'

To Reproduce

Steps to reproduce the behavior:

Clone the repository: git clone https://github.com/chandru1003/File-Based-Chatbot.git Run the script: python chatbot.py

What environment did you try to run the tutorial on?:

Additional context

I installed pip install farm-haystack and pip install haystack

Screen Shot

image

image

anakin87 commented 3 months ago

The right package was farm-haystack and I can't reproduce the issue.

Now we recommend switching to Haystack 2.x.