Modify

Opened 4 years ago

Last modified 9 months ago

#8578 assigned defect

Plugin doesn't load

Reported by: dr4cul4@… Owned by: rjollos
Priority: normal Component: UserManagerPlugin
Severity: normal Keywords: dependency
Cc: Trac Release: 0.11

Description

When I enable this plugin I see links in admin interace, but when I try to enter them ti seams that resources are missing (templates)

I enabled logging and saw:

2011-03-07 20:13:15,269 Trac[loader] ERROR: Skipping "tracusermanager.account = tracusermanager.account": 
Traceback (most recent call last):
  File "c:\users\lukasz~1.gry\appdata\local\temp\easy_install-lnkdu3\Trac-0.12.2-py2.5-win32.egg.tmp\trac\loader.py", line 68, in _load_eggs
    entry.load(require=True)
  File "C:\Python25\lib\site-packages\pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build\bdist.win32\egg\tracusermanager\account\__init__.py", line 1, in <module>
  File "build\bdist.win32\egg\tracusermanager\account\admin_um.py", line 14, in <module>
ImportError: No module named acct_mgr.api

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by hasienda

  • Keywords dependency added
  • Owner changed from cbalan to hasienda
  • Trac Release changed from 0.12 to 0.11

Neither does setup.py state any dependencies, even not Genshi and Trac, nor is an import from AccountManagerPlugin source handled gracefully.

So you certainly have a point here. Not sure, how to resolve this best, but IMHO degrading without exception would be preferable over no function at all anyway.

In the end the very tight wraps around AccountManagerPlugin especially in tracusermanager.account.admin_um would be best resolved by tight integration into AccountManagerPlugin.

Even a stepwise approach could be appropriate, with an intermediate solution to allow at least for successful load independently of AccountManagerPlugin presence. But let me think about it a bit more, please.

comment:2 Changed 9 months ago by rjollos

  • Owner changed from hasienda to rjollos
  • Status changed from new to assigned

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.