kotaemon icon indicating copy to clipboard operation
kotaemon copied to clipboard

[BUG] metaclass conflict

Open gutama opened this issue 10 months ago • 2 comments

Description

Traceback (most recent call last):
  File "/home/ginanjar/kotaemon-app/app.py", line 14, in <module>
    from ktem.main import App  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ginanjar/gitrepo/kotaemon/libs/ktem/ktem/main.py", line 3, in <module>
    from ktem.app import BaseApp
  File "/home/ginanjar/gitrepo/kotaemon/libs/ktem/ktem/app.py", line 9, in <module>
    from ktem.components import reasonings
  File "/home/ginanjar/gitrepo/kotaemon/libs/ktem/ktem/components.py", line 11, in <module>
    from kotaemon.base import BaseComponent
  File "/home/ginanjar/gitrepo/kotaemon/libs/kotaemon/kotaemon/base/__init__.py", line 1, in <module>
    from .component import BaseComponent, Node, Param, lazy
  File "/home/ginanjar/gitrepo/kotaemon/libs/kotaemon/kotaemon/base/component.py", line 6, in <module>
    from kotaemon.base.schema import Document
  File "/home/ginanjar/gitrepo/kotaemon/libs/kotaemon/kotaemon/base/schema.py", line 106, in <module>
    class SystemMessage(BaseMessage, LCSystemMessage):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

Reproduction steps

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Screenshots

![DESCRIPTION](LINK.png)

Logs


Browsers

No response

OS

No response

Additional information

No response

gutama avatar Feb 03 '25 08:02 gutama

got the same error; tried a fresh install and still there (worked once... ): TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

DrAcula666-dev avatar Feb 05 '25 12:02 DrAcula666-dev

@gutama , @DrAcula666-dev , kindly help with how this was resolved. I have the same issue The backtrace is the same...

[nltk_data] Downloading package punkt_tab to
[nltk_data]     /home/furiosa/.local/lib/python3.10/site-
[nltk_data]     packages/llama_index/core/_static/nltk_cache...
[nltk_data]   Package punkt_tab is already up-to-date!
Traceback (most recent call last):
  File "/home/furiosa/pgvector-kotaemon/app.py", line 13, in <module>
    from ktem.main import App  # noqa
  File "/home/furiosa/pgvector-kotaemon/libs/ktem/ktem/main.py", line 3, in <module>
    from ktem.app import BaseApp
  File "/home/furiosa/pgvector-kotaemon/libs/ktem/ktem/app.py", line 9, in <module>
    from ktem.components import reasonings
  File "/home/furiosa/pgvector-kotaemon/libs/ktem/ktem/components.py", line 11, in <module>
    from kotaemon.base import BaseComponent
  File "/home/furiosa/pgvector-kotaemon/libs/kotaemon/kotaemon/base/__init__.py", line 1, in <module>
    from .component import BaseComponent, Node, Param, lazy
  File "/home/furiosa/pgvector-kotaemon/libs/kotaemon/kotaemon/base/component.py", line 6, in <module>
    from kotaemon.base.schema import Document
  File "/home/furiosa/pgvector-kotaemon/libs/kotaemon/kotaemon/base/schema.py", line 106, in <module>
    class SystemMessage(BaseMessage, LCSystemMessage):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases 

aurotripathy avatar Jun 03 '25 05:06 aurotripathy