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

[BUG] KeyError: 'Version' when docker compose up -d #507

Open
sticktoFE opened this issue Nov 20, 2024 · 0 comments
Open

[BUG] KeyError: 'Version' when docker compose up -d #507

sticktoFE opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sticktoFE
Copy link

Description

File "/app/app.py", line 15, in
app = App()
File "/app/libs/ktem/ktem/app.py", line 73, in init
self.initialize_indices()
File "/app/libs/ktem/ktem/app.py", line 84, in initialize_indices
self.index_manager.on_application_startup()
File "/app/libs/ktem/ktem/index/manager.py", line 184, in on_application_startup
self.load_index_types()
File "/app/libs/ktem/ktem/index/manager.py", line 155, in load_index_types
cls: Type[BaseIndex] = import_dotted_string(index_str, safe=False)
File "/usr/local/lib/python3.10/site-packages/theflow/utils/modules.py", line 45, in import_dotted_string
module = importlib.import_module(module_name)
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/app/libs/ktem/ktem/index/file/graph/init.py", line 2, in
from .light_graph_index import LightRAGIndex
File "/app/libs/ktem/ktem/index/file/graph/light_graph_index.py", line 5, in
from .lightrag_pipelines import LightRAGIndexingPipeline, LightRAGRetrieverPipeline
File "/app/libs/ktem/ktem/index/file/graph/lightrag_pipelines.py", line 25, in
from lightrag import LightRAG, QueryParam
File "/usr/local/lib/python3.10/site-packages/lightrag/init.py", line 1, in
from .lightrag import LightRAG as LightRAG, QueryParam as QueryParam
File "/usr/local/lib/python3.10/site-packages/lightrag/lightrag.py", line 8, in
from .llm import (
File "/usr/local/lib/python3.10/site-packages/lightrag/llm.py", line 27, in
from transformers import AutoTokenizer, AutoModelForCausalLM
File "/usr/local/lib/python3.10/site-packages/transformers/init.py", line 26, in
from . import dependency_versions_check
File "/usr/local/lib/python3.10/site-packages/transformers/dependency_versions_check.py", line 16, in
from .utils.versions import require_version, require_version_core
File "/usr/local/lib/python3.10/site-packages/transformers/utils/init.py", line 27, in
from .chat_template_utils import DocstringParsingException, TypeHintParsingException, get_json_schema
File "/usr/local/lib/python3.10/site-packages/transformers/utils/chat_template_utils.py", line 25, in
from .import_utils import is_jinja_available, is_torch_available, is_vision_available
File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 160, in
_pygments_available = _is_package_available("pygments")
File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 49, in _is_package_available
package_version = importlib.metadata.version(pkg_name)
File "/usr/local/lib/python3.10/importlib/metadata/init.py", line 996, in version
return distribution(distribution_name).version
File "/usr/local/lib/python3.10/site-packages/importlib_metadata/init.py", line 508, in version
return self.metadata['Version']
File "/usr/local/lib/python3.10/site-packages/importlib_metadata/_adapters.py", line 54, in getitem
raise KeyError(item)
KeyError: 'Version'

Reproduction steps

using docker compose up -d to start main-full,not success
docker logs -f kotaemon-kotaemon-1  output above

Screenshots

![DESCRIPTION](LINK.png)

Logs

No response

Browsers

No response

OS

No response

Additional information

No response

@sticktoFE sticktoFE added the bug Something isn't working label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant