Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#13601 closed defect (duplicate)

AccountManagerPlugin not working on trac 1.4 (due to changes in trac.notification)

Reported by: borja@… Owned by: Ryan J Ollos
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.4

Description

How to reproduce:

  1. install trac 1.4
  2. set log level to DEBUG in trac.ini
  3. install the AccountManagerPlugin plugin, set it up as suggested in the plugin docs
  4. 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 3 years ago by anonymous

And just found out about #13124, stupid me

comment:3 Changed 3 years ago by Ryan J Ollos

Resolution: duplicate
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.