Trac plugin importerror with DBAuthPlugin
|Reported by:||Tomek <tomkor@…>||Owned by:||brad|
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\loader.py", line 77, in load_components entry_point.load() File "c:\python23\lib\site-packages\setuptools-0.6a11-py2.3.egg\pkg_resources.py", line 1830, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "build\bdist.win32\egg\dbauth\userdir.py", 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 userdir.py 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?