Trae和CodeArts复刻的Kotti若干问题的解决以及Kotti界面截图
windows10部署Kotti以下为DuMate自动完成创建python3.9环境py -3.9 -m venv kotti-env安装Kotti./kotti-env/Scripts/pip.exe install kotti --no-cache-dir安装setuptools70./kotti-env/Scripts/pip.exe install setuptools70降级sqlalchemy./kotti-env/Scripts/pip.exe install sqlalchemy1.4,2.0启动Kotticd kotti-project ../kotti-env/Scripts/pserve.exe development.ini 21Kotti CMS 部署完成部署摘要项目详情Python 环境Python 3.9.13 (kotti-env/)Kotti 版本2.0.9数据库SQLite (kotti-project/kotti.db)服务地址http://localhost:6543登录信息字段值用户名admin密码qwerty启动命令cd kotti-project ../kotti-env/Scripts/pserve.exe development.ini启动后发现kotti界面还原度不够。但刚开始没注意直接让Trae和CodeArts复刻它的界面。解决Kotti界面还原度不够的问题发现Trae和CodeArts复刻的kotti界面还原度不够大约也就还原了50%。于是重新配置了python3.10的环境部署了kotti发现所用Kotti版本有问题前端界面布局不同于官方Kotti这里没仔细比对代码其实应该是 development.ini文件配置以及对应的模版文件缺失导致的。重新Ubuntu部署Kotti以下为手工操作。重新下载官方kottigit clone https://githubfast.com/kotti/Kotti这是下载到Ubuntu的为了Windows下AI软件看代码又给它们下载了一份代码。windows10下的Kotti代码放置在E:\work\py310kotti\Kotti创建虚拟环境、激活windows下发现以前已经有python环境了如果普通方法无法激活就用特殊方法E:\py310\Scripts..\python.exe E:\Scripts\conda-script.py shell.cmd.exe activateubuntu下激活source py310/bin/activate安装依赖pip install -r requirements.txtpip install -e . --use-pep517pip install check-manifest pipdeptree pyramid_debugtoolbar kotti-tinymce0.7.0 --use-pep517启动(base) skywalkDESKTOP-9C5AU01:~/work/Kotti$ pserve development.ini启动后logpserve development.ini 2026-04-09 11:53:59,069 INFO [alembic.runtime.migration][MainThread] Context impl SQLiteImpl. 2026-04-09 11:53:59,070 INFO [alembic.runtime.migration][MainThread] Will assume non-transactional DDL. Starting server in PID 39670. 2026-04-09 11:54:03,872 INFO [waitress][MainThread] Serving on http://0.0.0.0:5000 2026-04-09 11:54:22,615 WARNI [waitress.queue][MainThread] Task queue depth is 1 2026-04-09 11:54:22,618 WARNI [waitress.queue][MainThread] Task queue depth is 1 2026-04-09 11:54:22,619 WARNI [waitress.queue][MainThread] Task queue depth is 2 2026-04-09 11:55:00,672 WARNI [waitress.queue][MainThread] Task queue depth is 1 2026-04-09 11:55:00,845 INFO [pyramid_debugtoolbar][waitress-3] Squashed pyramid.httpexceptions.HTTPNotFound at http://127.0.0.1:5000/vite/client traceback url: http://127.0.0.1:5000/_debug_toolbar/313235333233323134383032393434/exception 2026-04-09 11:55:08,619 INFO [pyramid_debugtoolbar][waitress-0] Squashed pyramid.httpexceptions.HTTPNotFound at http://127.0.0.1:5000/vite/client traceback url: http://127.0.0.1:5000/_debug_toolbar/313235333233323131313233393834/exception 2026-04-09 11:56:13,473 INFO [pyramid_debugtoolbar][waitress-0] Squashed pyramid.httpexceptions.HTTPNotFound at http://127.0.0.1:5000/vite/client traceback url: http://127.0.0.1:5000/_debug_toolbar/313235333233323131323033343536/exception 2026-04-09 11:56:25,040 INFO [pyramid_debugtoolbar][waitress-1] Squashed pyramid.httpexceptions.HTTPNotFound at http://127.0.0.1:5000/vite/client页面截图管理页面内容管理用户管理调试激活报错E:\py310\ScriptsactivateUnable to create process using E:\python.exe E:\Scripts\conda-script.py shell.cmd.exe activate Failed to run conda activate.解决问题E:\py310\Scripts..\python.exe E:\Scripts\conda-script.py shell.cmd.exe activateC:\Users\Admin\AppData\Local\Temp\tmpznp11wec.envpip安装pyramid-beaker0.8报错Collecting pyramid-beaker0.8 (from -r requirements.txt (line 49))Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d9/6e/b85426e00fd3d57f4545f74e1c3828552d8700f13ededeef9233f7bca8be/pyramid_beaker-0.8.tar.gz (21 kB)Preparing metadata (setup.py) ... errorerror: subprocess-exited-with-error× python setup.py egg_info did not run successfully.│ exit code: 1╰─ [45 lines of output]/home/skywalk/py310/lib/python3.10/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: tests_requirewarnings.warn(msg)/home/skywalk/py310/lib/python3.10/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: test_suite解决方法安装0.9版本并在项目中修改版本需求改为不限定版本pip安装kotti报错(base) skywalkDESKTOP-9C5AU01:~/work/Kotti$ pip install -e .Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simpleObtaining file:///home/skywalk/work/KottiPreparing metadata (setup.py) ... errorerror: subprocess-exited-with-error× python setup.py egg_info did not run successfully.│ exit code: 1╰─ [76 lines of output]/home/skywalk/py310/lib/python3.10/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.!!********************************************************************************Requirements should be satisfied by a PEP 517 installer.If you are using pip, you can try pip install --use-pep517.********************************************************************************!!按照提示pip install -e . --use-pep517搞定安装几个依赖ERROR: pips dependency resolver does not currently take into account all the packages that are installed.pip install check-manifest pipdeptree pyramid_debugtoolbar kotti-tinymce0.7.0 --use-pep517pip install check-manifest pipdeptree pyramid_debugtoolbar kotti-tinymce0.7.0 --use-pep517 WARNING: Retrying (Retry(total4, connectNone, readNone, redirectNone, statusNone)) after connection broken by ReadTimeoutError(HTTPSConnectionPool(hostpypi.tuna.tsinghua.edu.cn, port443): Read timed out. (read timeout15)): /simple/build/ ERROR: pips dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. langchain-core 0.1.23 requires packaging24.0,23.2, but you have packaging 26.0 which is incompatible. paddlex 3.0.0b2 requires matplotlib3.5.2, but you have matplotlib 3.5.1 which is incompatible. paddlex 3.0.0b2 requires numpy1.24.4, but you have numpy 1.26.4 which is incompatible. paddlex 3.0.0b2 requires tokenizers0.19.1, but you have tokenizers 0.21.0 which is incompatible. streamlit 1.30.0 requires packaging24,16.8, but you have packaging 26.0 which is incompatible. paddlets 1.1.0 requires numpy1.24.4,1.17.0, but you have numpy 1.26.4 which is incompatible. paddlets 1.1.0 requires pandas1.3.5,0.25.0, but you have pandas 1.5.3 which is incompatible. paddlets 1.1.0 requires scikit-learn1.4.0,0.24.1, but you have scikit-learn 1.5.1 which is incompatible.不明白啥意思啊大约就是安装上了。