Skip to content

No module named 'weaviate.classes' #26938

Closed

Description

@protectedMan

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Expected Behavior

success

❌ Actual Behavior

No module named 'weaviate.classes'

Activity

  1. protectedMan commented on Oct 15, 2025

    @protectedMan
    Author
    Image
  2. protectedMan commented on Oct 15, 2025

    @protectedMan
    Author
  3. added
    👻 feat:rag
    on Oct 15, 2025
  4. dosubot commented on Oct 15, 2025

    @dosubot

    Thanks for mentioning Dosu! If you're interested in automating and maintaining up-to-date documentation for your Dify deployment, Dosu can help by converting code, tickets, and conversations into a living knowledge base that stays current and is easy to share across your team.

    On your technical issue: the error about No module named 'weaviate.classes' is caused by having outdated versions of the weaviate and weaviate-client packages. Dify now requires weaviate-client version 4.x or higher, which provides the weaviate.classes module. The fix is to uninstall any old weaviate package, and upgrade/install weaviate-client>=4.0.0,<5.0.0 in your environment. The latest Docker setup for Dify does this automatically, but if you're running locally or customizing, make sure your dependencies match the current requirements as shown here.

    Let me know if you want more details on Dosu's documentation automation, or if you need step-by-step help updating your Dify environment!

    To reply, just mention @dosu.


    How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

  5. protectedMan commented on Oct 15, 2025

    @protectedMan
    Author

    Thanks for mentioning Dosu! If you're interested in automating and maintaining up-to-date documentation for your Dify deployment, Dosu can help by converting code, tickets, and conversations into a living knowledge base that stays current and is easy to share across your team.

    On your technical issue: the error about No module named 'weaviate.classes' is caused by having outdated versions of the weaviate and weaviate-client packages. Dify now requires weaviate-client version 4.x or higher, which provides the weaviate.classes module. The fix is to uninstall any old weaviate package, and upgrade/install weaviate-client>=4.0.0,<5.0.0 in your environment. The latest Docker setup for Dify does this automatically, but if you're running locally or customizing, make sure your dependencies match the current requirements as shown here.

    Let me know if you want more details on Dosu's documentation automation, or if you need step-by-step help updating your Dify environment!

    To reply, just mention @dosu.

    How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

    Image I have already upgraded to the latest version, which is 3.8.0
  6. dosubot commented on Oct 15, 2025

    @dosubot

    The error persists because Dify now requires weaviate-client version 4.x or higher, which introduces the weaviate.classes module. Version 3.8.0 does not include this module, so upgrading to it won't resolve the issue.

    However, weaviate-client 4.x does not support Python 3.6—Dify's current requirements specify Python >=3.11 and the official Docker images use Python 3.12 source, source. To fix this, you'll need to update your Docker container to use Python 3.11 or newer, then install weaviate-client>=4.0.0,<5.0.0.

    If you want step-by-step help updating your Docker setup, let me know!

    To reply, just mention @dosu.


    How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

  7. Kakaeex commented on Oct 15, 2025

    @Kakaeex

    I use docker compose ,version 1.9.0 also meet the same error ,and i try to upgrade semitechnologies/weaviate docker version to 1.30.18 ,but the problem is still

  8. protectedMan commented on Oct 15, 2025

    @protectedMan
    Author

    Image已升级,但是问题依然存在
    @dosu

  9. kongcunfei commented on Oct 15, 2025

    @kongcunfei

    same issue

  10. fengfengye commented on Oct 15, 2025

    @fengfengye

    same issue

  11. tsangzzlzzl commented on Oct 16, 2025

    @tsangzzlzzl

    same issue

  12. wbl5489 commented on Oct 16, 2025

    @wbl5489

    same issue

  13. MarkYangKp commented on Oct 16, 2025

    @MarkYangKp

    I get this error message when deploying with Docker, whether switching from 1.9 to 1.8 or then to 1.7.

  14. tankeqwe1231 commented on Oct 16, 2025

    @tankeqwe1231

    same issue

  15. MarkYangKp commented on Oct 16, 2025

    @MarkYangKp

    You can refer to this issue to solve it: #26925

  16. pigracing commented on Oct 17, 2025

    @pigracing

    You can refer to this issue to solve it: #26925

    not work

  17. hollychen503 commented on Oct 22, 2025

    @hollychen503

    updated to dify 1.9.2 and it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    👻 feat:rag

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions