Modify ↓
#13601 closed defect (duplicate)
AccountManagerPlugin not working on trac 1.4 (due to changes in trac.notification)
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.4 |
Description
How to reproduce:
- install trac 1.4
- set log level to DEBUG in trac.ini
- install the AccountManagerPlugin plugin, set it up as suggested in the plugin docs
- start trac
Then, if you look into your trac.log file, you will see something like:
2019-09-02 17:33:18,308 Trac[env] INFO: -------------------------------- environment startup [Trac 1.4] -------------------------------- 2019-09-02 17:33:18,347 Trac[loader] DEBUG: Loading plugin "acct_mgr.admin" from "/home/trac/env-2.7/lib/python2.7/site-packages" 2019-09-02 17:33:18,425 Trac[loader] ERROR: Skipping "acct_mgr.admin = acct_mgr.admin": ImportError: cannot import name NotifyEmail 2019-09-02 17:33:18,425 Trac[loader] DEBUG: Loading plugin "acct_mgr.api" from "/home/trac/env-2.7/lib/python2.7/site-packages" 2019-09-02 17:33:18,426 Trac[loader] DEBUG: Loading plugin "acct_mgr.db" from "/home/trac/env-2.7/lib/python2.7/site-packages" 2019-09-02 17:33:18,429 Trac[loader] DEBUG: Loading plugin "acct_mgr.htfile" from "/home/trac/env-2.7/lib/python2.7/site-packages" 2019-09-02 17:33:18,437 Trac[loader] DEBUG: Loading plugin "acct_mgr.http" from "/home/trac/env-2.7/lib/python2.7/site-packages" 2019-09-02 17:33:18,439 Trac[loader] DEBUG: Loading plugin "acct_mgr.macros" from "/home/trac/env-2.7/lib/python2.7/site-packages" 2019-09-02 17:33:18,442 Trac[loader] ERROR: Skipping "acct_mgr.macros = acct_mgr.macros": ImportError: cannot import name NotifyEmail 2019-09-02 17:33:18,442 Trac[loader] DEBUG: Loading plugin "acct_mgr.notification" from "/home/trac/env-2.7/lib/python2.7/site-packages" 2019-09-02 17:33:18,443 Trac[loader] ERROR: Skipping "acct_mgr.notification = acct_mgr.notification": ImportError: cannot import name NotifyEmail 2019-09-02 17:33:18,443 Trac[loader] DEBUG: Loading plugin "acct_mgr.opt.announcer.uid_chg" from "/home/trac/env-2.7/lib/python2.7/site-packages" 2019-09-02 17:33:18,461 Trac[loader] DEBUG: Skipping "acct_mgr.opt.announcer.uid_chg = acct_mgr.opt.announcer.uid_chg [announcer]": DistributionNotFound: The 'TracAnnouncer; extra == "announcer"' distribution was not found and is required by the application
Accesing trac using a browser shows no login link, /login gives a not found page.
Digging a bit through the sources of both trac and the plugin, the NotifyEmail class was marked as deprecated some time around release 1.2 and it was removed before 1.4.
So, I guess the plugin code needs updating to use the new API.
Attachments (0)
Change History (2)
comment:1 Changed 5 years ago by
comment:3 Changed 5 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
And just found out about #13124, stupid me