[devel] Не работают плагины для trac установленные глобально
Slava Dubrovskiy
slava на tangramltd.com
Вт Апр 27 18:19:56 UTC 2010
Здравствуйте.
Тестирую новую версию trac и некоторые плагины к нему.
Трак из git://git.altlinux.org/people/dubrsl/packages/trac.git и
плагины, например
git://git.altlinux.org/people/dubrsl/packages/python-module-trac-accountmanager.git
Проблема в том, что трак не может загрузить плагин. В логе трака при этом:
2010-04-27 21:08:58,824 Trac[loader] DEBUG: Loading trac.web.auth from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,825 Trac[loader] DEBUG: Loading trac.admin.console
from /usr/lib/python2.6/site-packages
2010-04-27 21:08:58,832 Trac[loader] DEBUG: Loading trac.db.mysql from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,835 Trac[loader] DEBUG: Loading trac.search from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,837 Trac[loader] DEBUG: Loading trac.prefs from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,839 Trac[loader] DEBUG: Loading trac.ticket.report
from /usr/lib/python2.6/site-packages
2010-04-27 21:08:58,856 Trac[loader] DEBUG: Loading acct_mgr.admin from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,857 Trac[loader] ERROR: Skipping "acct_mgr.admin =
acct_mgr.admin": (can't import "ImportError: No module named
acct_mgr.admin")
2010-04-27 21:08:58,857 Trac[loader] DEBUG: Loading acct_mgr.db from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,858 Trac[loader] ERROR: Skipping "acct_mgr.db =
acct_mgr.db": (can't import "ImportError: No module named acct_mgr.db")
2010-04-27 21:08:58,858 Trac[loader] DEBUG: Loading acct_mgr.htfile from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,859 Trac[loader] ERROR: Skipping "acct_mgr.htfile =
acct_mgr.htfile": (can't import "ImportError: No module named
acct_mgr.htfile")
2010-04-27 21:08:58,859 Trac[loader] DEBUG: Loading acct_mgr.http from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,860 Trac[loader] ERROR: Skipping "acct_mgr.http =
acct_mgr.http": (can't import "ImportError: No module named acct_mgr.http")
2010-04-27 21:08:58,861 Trac[loader] DEBUG: Loading
acct_mgr.notification from /usr/lib/python2.6/site-packages
2010-04-27 21:08:58,861 Trac[loader] ERROR: Skipping
"acct_mgr.notification = acct_mgr.notification": (can't import
"ImportError: No module named acct_mgr.notification")
2010-04-27 21:08:58,862 Trac[loader] DEBUG: Loading acct_mgr.pwhash from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,863 Trac[loader] ERROR: Skipping "acct_mgr.pwhash =
acct_mgr.pwhash": (can't import "ImportError: No module named
acct_mgr.pwhash")
2010-04-27 21:08:58,863 Trac[loader] DEBUG: Loading acct_mgr.svnserve
from /usr/lib/python2.6/site-packages
2010-04-27 21:08:58,864 Trac[loader] ERROR: Skipping "acct_mgr.svnserve
= acct_mgr.svnserve": (can't import "ImportError: No module named
acct_mgr.svnserve")
2010-04-27 21:08:58,864 Trac[loader] DEBUG: Loading acct_mgr.web_ui from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,865 Trac[loader] ERROR: Skipping "acct_mgr.web_ui =
acct_mgr.web_ui": (can't import "ImportError: No module named
acct_mgr.web_ui")
2010-04-27 21:08:58,865 Trac[loader] DEBUG: Loading acct_mgr.api from
/usr/lib/python2.6/site-packages
2010-04-27 21:08:58,866 Trac[loader] ERROR: Skipping "acct_mgr.api =
acct_mgr.api": (can't import "ImportError: No module named acct_mgr.api")
При этом все файлы на месте, права нормальные.
[root@ ~ ]# ll /usr/lib/python2.6/site-package/acct_mgr/
total 308
drw-r--r-- 3 root root 4096 Apr 27 21:05 ./
drwxr-xr-x 19 root root 4096 Apr 27 21:05 ../
-rw-r--r-- 1 root root 0 Apr 27 21:05 __init__.py
-rw-r--r-- 2 root root 140 Apr 27 21:05 __init__.pyc
-rw-r--r-- 2 root root 140 Apr 27 21:05 __init__.pyo
-rw-r--r-- 1 root root 10691 Apr 27 21:05 admin.py
-rw-r--r-- 2 root root 10048 Apr 27 21:05 admin.pyc
-rw-r--r-- 2 root root 10048 Apr 27 21:05 admin.pyo
-rw-r--r-- 1 root root 9834 Apr 27 21:05 api.py
-rw-r--r-- 2 root root 11091 Apr 27 21:05 api.pyc
-rw-r--r-- 2 root root 11091 Apr 27 21:05 api.pyo
-rw-r--r-- 1 root root 3494 Apr 27 21:05 db.py
-rw-r--r-- 2 root root 3333 Apr 27 21:05 db.pyc
-rw-r--r-- 2 root root 3333 Apr 27 21:05 db.pyo
-rw-r--r-- 1 root root 126 Apr 27 21:05 hashlib_compat.py
-rw-r--r-- 2 root root 329 Apr 27 21:05 hashlib_compat.pyc
-rw-r--r-- 2 root root 329 Apr 27 21:05 hashlib_compat.pyo
-rw-r--r-- 1 root root 5704 Apr 27 21:05 htfile.py
-rw-r--r-- 2 root root 6950 Apr 27 21:05 htfile.pyc
-rw-r--r-- 2 root root 6950 Apr 27 21:05 htfile.pyo
-rw-r--r-- 1 root root 1229 Apr 27 21:05 http.py
-rw-r--r-- 2 root root 1491 Apr 27 21:05 http.pyc
-rw-r--r-- 2 root root 1491 Apr 27 21:05 http.pyo
-rw-r--r-- 1 root root 3093 Apr 27 21:05 md5crypt.py
-rw-r--r-- 2 root root 2804 Apr 27 21:05 md5crypt.pyc
-rw-r--r-- 2 root root 2804 Apr 27 21:05 md5crypt.pyo
-rw-r--r-- 1 root root 10021 Apr 27 21:05 notification.py
-rw-r--r-- 2 root root 11296 Apr 27 21:05 notification.pyc
-rw-r--r-- 2 root root 11296 Apr 27 21:05 notification.pyo
-rw-r--r-- 1 root root 2799 Apr 27 21:05 pwhash.py
-rw-r--r-- 2 root root 3959 Apr 27 21:05 pwhash.pyc
-rw-r--r-- 2 root root 3959 Apr 27 21:05 pwhash.pyo
-rw-r--r-- 1 root root 2326 Apr 27 21:05 svnserve.py
-rw-r--r-- 2 root root 2922 Apr 27 21:05 svnserve.pyc
-rw-r--r-- 2 root root 2922 Apr 27 21:05 svnserve.pyo
drw-r--r-- 2 root root 4096 Apr 27 21:05 templates/
-rw-r--r-- 1 root root 1044 Apr 27 21:05 util.py
-rw-r--r-- 2 root root 1162 Apr 27 21:05 util.pyc
-rw-r--r-- 2 root root 1162 Apr 27 21:05 util.pyo
-rw-r--r-- 1 root root 23940 Apr 27 21:05 web_ui.py
-rw-r--r-- 2 root root 22242 Apr 27 21:05 web_ui.pyc
-rw-r--r-- 2 root root 22242 Apr 27 21:05 web_ui.pyo
При этом если плагин собран в egg и находится в
/usr/lib/python2.6/site-packages то он нормально загружается. Локально
установленные плагины тоже.
Подскажите в чем может быть проблема?
--
WBR,
Dubrovskiy Vyacheslav
Подробная информация о списке рассылки Devel