haystack icon indicating copy to clipboard operation
haystack copied to clipboard

from haystack import __version__ print(__version__) hangs

Open mdurrani808 opened this issue 2 years ago • 3 comments

Describe the bug When trying to import from haystack import version, the program hangs and never continues. This only happens on my linux machine, and not my windows machine.

Error message Error that was thrown (if available)

Expected behavior It should not hang.

Additional context Ubuntu 20.04 and 1.17.1 version of Haystack.

To Reproduce Run: from haystack import version, print("hi")

FAQ Check

System:

  • OS: Ubuntu 20.04
  • GPU/CPU: AMD EPYC 7313P 16-Core Processor x2 and NVIDIA RTX A5000
  • Haystack version (commit or version number): 1.17.1
  • DocumentStore:
  • Reader:
  • Retriever:

mdurrani808 avatar Jun 15 '23 16:06 mdurrani808

I've made a new venv and now I'm getting this issue: Traceback (most recent call last): File "/home/mad326/reu_code/haystack/PineconeTester.py", line 1, in from haystack.nodes import FARMReader File "/home/mad326/reu_code/haystack/tester/lib/python3.8/site-packages/haystack/nodes/init.py", line 1, in from haystack.utils.import_utils import safe_import File "/home/mad326/reu_code/haystack/tester/lib/python3.8/site-packages/haystack/utils/init.py", line 2, in from haystack.utils.preprocessing import convert_files_to_docs, tika_convert_files_to_docs File "/home/mad326/reu_code/haystack/tester/lib/python3.8/site-packages/haystack/utils/preprocessing.py", line 7, in from haystack.nodes.file_converter import BaseConverter, DocxToTextConverter, PDFToTextConverter, TextConverter File "/home/mad326/reu_code/haystack/tester/lib/python3.8/site-packages/haystack/nodes/file_converter/init.py", line 1, in from haystack import is_imported ImportError: cannot import name 'is_imported' from 'haystack' (/home/mad326/reu_code/haystack/tester/lib/python3.8/site-packages/haystack/init.py)

mdurrani808 avatar Jun 15 '23 18:06 mdurrani808

@mdurrani808 Sounds like an issue when installing Haystack. How did you install it?

ZanSara avatar Jun 16 '23 10:06 ZanSara

I installed it by creating a new virtual environment and then doing pip install farm-haystack[all-gpu]

mdurrani808 avatar Jun 16 '23 13:06 mdurrani808

Closing as not reproducible, feel free to re-open if the problem persists

masci avatar Dec 06 '23 10:12 masci