Opened 11 years ago

Closed 11 years ago

#322 closed defect (invalid)

Trac plugin importerror with DBAuthPlugin

Reported by: Tomek <tomkor@…> Owned by: brad
Priority: highest Component: DbAuthPlugin
Severity: blocker Keywords: ImportError userdir
Cc: Trac Release: 0.9


Hi there!

I'm trying to incorporate the DBAuthPlugin into Trac running standalone. After downloading the source and creating the egg I receive the following info in the trac log

13:17:54 Trac[loader] ERROR: Failed to load plugin dbauth.userdir from c:\python23\lib\site-packages\tracdbauth-0.1dev-py2.3.egg
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\trac\", line 77, in load_components
  File "c:\python23\lib\site-packages\setuptools-0.6a11-py2.3.egg\", line 1830, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build\bdist.win32\egg\dbauth\", line 19, in ?
ImportError: No module named userdir
13:17:54 Trac[loader] DEBUG: Loading plugin dbauth.auth from c:\python23\lib\site-packages\tracdbauth-0.1dev-py2.3.egg
13:17:54 Trac[loader] DEBUG: Loading plugin dbauth.perm from c:\python23\lib\site-packages\tracdbauth-0.1dev-py2.3.egg 

As a result the login page does not come up at all and Trac appears to use its default web authorization.

I am new to python but from what I understand the loader is looking for the in a directory path that does not exist in the created egg.

Is this a problem with the egg itself or have I missed something when configuring Python and setuptools and creating the egg?

Attachments (0)

Change History (1)

comment:1 Changed 11 years ago by brad

  • Resolution set to invalid
  • Status changed from new to closed

See DbAuthPlugin wiki page and search for - it requires a patch from Ticket 2456 at p.e.c. The patch is dated, but I hope to have a new one soon, for /trunk 0.10. That will require updating this plugin to work with 0.10, which is fairly easy.

Apologies for not seeing this ticket - I'm still not getting email notifications. You can email me directly if you like.


Add Comment

Modify Ticket

as closed The owner will remain brad.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.