Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haystack.utils has issues, can't do imports #8315

Closed
pdwytr opened this issue Sep 1, 2024 · 2 comments
Closed

haystack.utils has issues, can't do imports #8315

pdwytr opened this issue Sep 1, 2024 · 2 comments

Comments

@pdwytr
Copy link

pdwytr commented Sep 1, 2024

Describe the bug
I just cannot do imports, Idk whats going on here

Error message
ModuleNotFoundError: No module named 'haystack.utils.auth'

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here, like document types / preprocessing steps / settings of reader etc.

To Reproduce
install poetry python3.12 and poetry add 'farm-haystack'

System:

  • OS: MAC
  • GPU/CPU: 8GB
  • Haystack version (commit or version number):1.26.3
@pdwytr pdwytr changed the title haystack.utils has issues, can't don imports haystack.utils has issues, can't do imports Sep 1, 2024
@julian-risch
Copy link
Member

Hello @pdwytr with farm-haystack you're installing an older version of Haystack, 1.26. That version has no haystack.utils.auth module: https://github.com/deepset-ai/haystack/tree/v1.26.x/haystack/utils

In order to use the most recent Haystack version, 2.4, please install the package haystack-ai. That version has a haystack.utils.auth module and your import should work as expected: https://github.com/deepset-ai/haystack/tree/v2.4.x/haystack/utils
Note that the farm-haystack and haystack-ai packages are not compatible and cannot be installed in the same environment. Please make sure you're using a fresh environment when installing haystack-ai.

If you're still facing problems with the import, feel free to reopen this issue.

@pdwytrias
Copy link

This worked! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants