Modify

Opened 7 years ago

Closed 8 months ago

Last modified 8 months ago

#8578 closed defect (worksforme)

Plugin doesn't load

Reported by: dr4cul4@… Owned by: Ryan J Ollos
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 (4)

comment:1 Changed 6 years ago by Steffen Hoffmann

Keywords: dependency added
Owner: changed from Catalin BALAN to Steffen Hoffmann
Trac Release: 0.120.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 4 years ago by Ryan J Ollos

Owner: changed from Steffen Hoffmann to Ryan J Ollos
Status: newassigned

comment:3 Changed 8 months ago by Ryan J Ollos

Resolution: worksforme
Status: assignedclosed

Works fine in recent version.

comment:4 Changed 8 months ago by Ryan J Ollos

In 16424:

1.2.0dev: Make account dependent on having TracAccountManager installed

Refs #8578.

Modify Ticket

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

Add Comment


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

 
Note: See TracTickets for help on using tickets.