-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
联系方式
No response
MaxKB 版本
main
问题描述
Exception in thread django-main-thread:
Traceback (most recent call last):
File "D:\soft\Python310\lib\site-packages\django\core\servers\basehttp.py", line 48, in get_internal_wsgi_application
return import_string(app_path)
File "D:\soft\Python310\lib\site-packages\django\utils\module_loading.py", line 30, in import_string
return cached_import(module_path, class_name)
File "D:\soft\Python310\lib\site-packages\django\utils\module_loading.py", line 15, in cached_import
module = import_module(module_path)
File "D:\soft\Python310\lib\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 "D:\workspace\pyWorkSpace\demo\MaxKB\apps\smartdoc\wsgi.py", line 27, in
post_handler()
File "D:\workspace\pyWorkSpace\demo\MaxKB\apps\smartdoc\wsgi.py", line 20, in post_handler
from common import event
File "D:\workspace\pyWorkSpace\demo\MaxKB\apps\common\event_init.py", line 11, in
from .listener_manage import *
File "D:\workspace\pyWorkSpace\demo\MaxKB\apps\common\event\listener_manage.py", line 19, in
from common.config.embedding_config import VectorStore, EmbeddingModel
File "D:\workspace\pyWorkSpace\demo\MaxKB\apps\common\config\embedding_config.py", line 35, in
class VectorStore:
File "D:\workspace\pyWorkSpace\demo\MaxKB\apps\common\config\embedding_config.py", line 36, in VectorStore
from embedding.vector.pg_vector import PGVector
File "D:\workspace\pyWorkSpace\demo\MaxKB\apps\embedding\vector\pg_vector.py", line 19, in
from common.db.search import generate_sql_by_query_dict
File "D:\workspace\pyWorkSpace\demo\MaxKB\apps\common\db\search.py", line 16, in
from common.response.result import Page
File "D:\workspace\pyWorkSpace\demo\MaxKB\apps\common\response\result.py", line 4, in
from drf_yasg import openapi
File "D:\soft\Python310\lib\site-packages\drf_yasg\openapi.py", line 11, in
from .utils import filter_none, force_real_str
ImportError: cannot import name 'filter_none' from 'drf_yasg.utils' (D:\soft\Python310\lib\site-packages\drf_yasg\utils.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\soft\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "D:\soft\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "D:\soft\Python310\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "D:\soft\Python310\lib\site-packages\django\core\management\commands\runserver.py", line 139, in inner_run
handler = self.get_handler(*args, **options)
File "D:\soft\Python310\lib\site-packages\django\contrib\staticfiles\management\commands\runserver.py", line 31, in get_handler
handler = super().get_handler(*args, **options)
File "D:\soft\Python310\lib\site-packages\django\core\management\commands\runserver.py", line 78, in get_handler
return get_internal_wsgi_application()
File "D:\soft\Python310\lib\site-packages\django\core\servers\basehttp.py", line 50, in get_internal_wsgi_application
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: WSGI application 'smartdoc.wsgi.application' could not be loaded; Error importing module.
重现步骤
当期插件版本:
Django:5.0.6
drf-yasg:1.21.7
在drf-yasg1.21.7源码中的utils.py文件中存在filter_none函数,但是不知道为啥会报这个错误
期待的正确结果
No response
相关日志输出
No response
附加信息
No response