Trac - 问题从0.12.5升级到1.0.1

时间:2015-01-12 15:14:11

标签: debian trac

我一直试图将debian挤压时的trac环境从0.12.5提升到1.0.1。我使用wheezy backports更新了它。

使用apt-get安装新版本后,我运行了以下内容:

trac-admin /var/lib/trac upgrade
trac-admin /var/lib/trac wiki upgrade

当我在浏览器中打开trac时出现以下错误:

    Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect
Trac[loader] ERROR: Skipping "trac.wiki.admin = trac.wiki.admin": (can't import "ImportError: No module named admin")
Trac[loader] ERROR: Skipping "tracopt.ticket.commit_updater = tracopt.ticket.commit_updater": (can't import "ImportError: cannot import name cleandoc_")
Trac[loader] ERROR: Skipping "tracopt.versioncontrol.svn.svn_fs = tracopt.versioncontrol.svn.svn_fs": (can't import "ImportError: cannot import name ChoiceOption")
Trac[loader] ERROR: Skipping "tracopt.ticket.clone = tracopt.ticket.clone": (can't import "ImportError: cannot import name captioned_button")
Trac[loader] ERROR: Skipping "tracopt.ticket.deleter = tracopt.ticket.deleter": (can't import "ImportError: cannot import name from_utimestamp")
Trac[loader] ERROR: Skipping "trac.wiki.web_api = trac.wiki.web_api": (can't import "ImportError: No module named web_api")
Trac[loader] ERROR: Skipping "trac.versioncontrol.admin = trac.versioncontrol.admin": (can't import "ImportError: No module named admin")
Trac[loader] ERROR: Skipping "trac.ticket.batch = trac.ticket.batch": (can't import "ImportError: No module named batch")
Trac[loader] ERROR: Skipping "tracopt.perm.config_perm_provider = tracopt.perm.config_perm_provider": (can't import "ImportError: cannot import name ConfigSection")
Trac[loader] ERROR: Failed to load plugin from /var/lib/trac/plugins/setup.py: 
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/loader.py", line 91, in _load_py_files

正如我所看到的,如果它有帮助我安装了以下插件:

TracHierWiki

TracXMLRPC

1 个答案:

答案 0 :(得分:2)

正如我所见,行

  

无法从/var/lib/trac/plugins/setup.py加载插件

表示在Trac环境的setup.py目录中没有正确打包的多文件Trac插件源代码(/plugin文件),该源代码不能存在。

最近在Trac ticket #11846中讨论了这种情况,以寻求上游Trac开发的解决方案。