当前位置: 首页 > news >正文

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

安装setuptools<70

./kotti-env/Scripts/pip.exe install "setuptools<70"

降级sqlalchemy

./kotti-env/Scripts/pip.exe install "sqlalchemy>=1.4,<2.0"

启动Kotti

cd kotti-project && ../kotti-env/Scripts/pserve.exe development.ini 2>&1

Kotti 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

以下为手工操作。

重新下载官方kotti

git 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 activate

ubuntu下激活

source py310/bin/activate

安装依赖

pip install -r requirements.txt
pip install -e . --use-pep517
pip install check-manifest pipdeptree pyramid_debugtoolbar kotti-tinymce>=0.7.0 --use-pep517

启动

(base) skywalk@DESKTOP-9C5AU01:~/work/Kotti$ pserve development.ini

启动后log

pserve 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\Scripts>activate
Unable 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 activate
C:\Users\Admin\AppData\Local\Temp\tmpznp11wec.env

pip安装pyramid-beaker==0.8报错

Collecting pyramid-beaker==0.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) ... error
error: 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_require'
warnings.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) skywalk@DESKTOP-9C5AU01:~/work/Kotti$ pip install -e .
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///home/skywalk/work/Kotti
Preparing metadata (setup.py) ... error
error: 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: pip's dependency resolver does not currently take into account all the packages that are installed.

pip install check-manifest pipdeptree pyramid_debugtoolbar kotti-tinymce>=0.7.0 --use-pep517
pip install check-manifest pipdeptree pyramid_debugtoolbar kotti-tinymce>=0.7.0 --use-pep517 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Read timed out. (read timeout=15)")': /simple/build/ ERROR: pip's 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 packaging<24.0,>=23.2, but you have packaging 26.0 which is incompatible. paddlex 3.0.0b2 requires matplotlib==3.5.2, but you have matplotlib 3.5.1 which is incompatible. paddlex 3.0.0b2 requires numpy==1.24.4, but you have numpy 1.26.4 which is incompatible. paddlex 3.0.0b2 requires tokenizers==0.19.1, but you have tokenizers 0.21.0 which is incompatible. streamlit 1.30.0 requires packaging<24,>=16.8, but you have packaging 26.0 which is incompatible. paddlets 1.1.0 requires numpy<=1.24.4,>=1.17.0, but you have numpy 1.26.4 which is incompatible. paddlets 1.1.0 requires pandas<=1.3.5,>=0.25.0, but you have pandas 1.5.3 which is incompatible. paddlets 1.1.0 requires scikit-learn<1.4.0,>=0.24.1, but you have scikit-learn 1.5.1 which is incompatible.

不明白啥意思啊,大约就是安装上了。

http://www.cnnetsun.cn/news/1798777.html

相关文章:

  • 终极指南:3种简单方法恢复B站经典界面,让怀旧体验重回2026
  • NEURAL MASK保姆级教学:处理失败图像的5种常见原因与修复技巧
  • 如何快速释放磁盘空间:Windows系统驱动清理完整指南
  • 终极指南:3步安装ViGEmBus虚拟手柄驱动,彻底解决Windows游戏兼容性问题
  • 丹青识画系统与STM32嵌入式项目结合:智能相框原型开发
  • OpenClaw+千问3.5-27B低成本方案:自建模型替代OpenAI API
  • Qwen-Image-2512-ComfyUI部署实战:从镜像拉取到出图,完整流程解析
  • **发散创新:基于Python的模型保护机制设计与实践**在人工智能快速发展的今天,模型作为核心资产被广
  • 三步轻松下载B站4K大会员视频:完整指南与实战技巧
  • 2026年音频怎么转换成文字主流工具实测对比,差距竟然这么大,黑马选手才是真正的王者
  • Next 26: 一场定义未来的云端与 AI 盛宴,即将开启!
  • 多功能WX-0813高性能降噪语音模组
  • Legacy iOS Kit:让旧款iOS设备重获新生的终极工具集
  • 写段代码教会你什么是HOOK技术?HOOK技术能干什么?禾
  • AMD Ryzen终极调试工具完全指南:从新手到高手
  • 舒服舒服对方水电费水电费水电费
  • Cursor Agent Window深度解析:从入门到精通的全流程指南
  • 机器学习与人工智能在锂离子电池研究中的应用!
  • STIX Two字体:解决学术文档排版一致性问题的终极指南
  • 3步诊断与修复:Reset Windows Update Tool如何彻底解决Windows更新难题
  • 忍者像素绘卷数据库课程设计:构建个人像素画作品管理与展示平台
  • Spring Boot 4.0正式发布倒计时:Agent-Ready到底意味着什么?3类企业已紧急升级验证
  • jd-happy:告别手动抢购!用Node.js实现京东自动下单的终极方案
  • HiClaw 完整部署教程:5分钟搭建你的 AI 开发团队(Team 版 OpenClaw)
  • 全球肉毒素杆菌市场高增跨越!2025年规模93.34亿美元,2032年攀至167.1亿,2026-2032年CAGR达8.8%
  • 八大网盘直链解析工具:告别限速困扰的高效下载解决方案
  • 终极指南:如何为Windows 11 24H2 LTSC恢复微软商店功能
  • FAST: Efficient Action Tokenization for Vision-Language-Action Models
  • 终极浏览器3D模型查看器实战指南:从架构解析到高效应用
  • SenseVoice Small功能全解析:从语音识别到情感事件检测