DB-GPT [BUG]: docker 启动报错 TypeError: 'type' object is not subscriptable

vhmi4jdf  于 5个月前  发布在  Docker
关注(0)|答案(2)|浏览(136)
* Starting MySQL database server mysqld
su: warning: cannot change directory to /nonexistent: No such file or directory
   ...done.
execute sql file: /docker-entrypoint-initdb.d/case_1_student_manager.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
execute sql file: /docker-entrypoint-initdb.d/case_2_ecom.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
execute sql file: /docker-entrypoint-initdb.d/init.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
execute sql file: /docker-entrypoint-initdb.d/knowledge_management.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
execute sql file: /docker-entrypoint-initdb.d/test_case_info.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
execute sql file: /docker-entrypoint-initdb.d/user_config.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
playsound is relying on another python subprocess. Please use `pip install pygobject` if you want playsound to run more efficiently.
Traceback (most recent call last):
  File "pilot/server/dbgpt_server.py", line 11, in <module>
    from pilot.configs.config import Config
  File "/app/pilot/__init__.py", line 1, in <module>
    from pilot.embedding_engine import SourceEmbedding, register
  File "/app/pilot/embedding_engine/__init__.py", line 1, in <module>
    from pilot.embedding_engine.source_embedding import SourceEmbedding, register
  File "/app/pilot/embedding_engine/source_embedding.py", line 9, in <module>
    from pilot.vector_store.connector import VectorStoreConnector
  File "/app/pilot/vector_store/connector.py", line 1, in <module>
    from pilot.vector_store.chroma_store import ChromaStore
  File "/app/pilot/vector_store/chroma_store.py", line 4, in <module>
    from pilot.logs import logger
  File "/app/pilot/logs.py", line 13, in <module>
    from pilot.speech import say_text
  File "/app/pilot/speech/__init__.py", line 1, in <module>
    from pilot.speech.say import say_text
  File "/app/pilot/speech/say.py", line 34, in <module>
    def _get_voice_engine(config: Config) -> tuple[VoiceBase, VoiceBase]:
TypeError: 'type' object is not subscriptable
dzjeubhm

dzjeubhm1#

你正在使用的Python版本是?
你可以运行以下命令来查看。

$ docker run --rm db-gpt python3 --version

输出如下:

==========
== CUDA ==
==========

CUDA Version 11.8.0

Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.

WARNING: The NVIDIA Driver was not detected.  GPU functionality will not be available.
   Use the NVIDIA Container Toolkit to start this container with GPU support; see
   https://docs.nvidia.com/datacenter/cloud-native/ .

Python 3.10.12
ltqd579y

ltqd579y2#

你使用的是哪个版本的Python?
你可以运行以下命令来查看:

$ docker run --rm db-gpt python3 --version

输出如下:

==========
== CUDA ==
==========

CUDA Version 11.8.0

Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.

WARNING: The NVIDIA Driver was not detected.  GPU functionality will not be available.
   Use the NVIDIA Container Toolkit to start this container with GPU support; see
   https://docs.nvidia.com/datacenter/cloud-native/ .

Python 3.10.12

@fangyinc

==========
== CUDA ==
==========

CUDA Version 11.7.1

Container image Copyright (c) 2016-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.

WARNING: The NVIDIA Driver was not detected.  GPU functionality will not be available.
   Use the NVIDIA Container Toolkit to start this container with GPU support; see
   https://docs.nvidia.com/datacenter/cloud-native/ .

Python 3.8.10

相关问题