Hi Jun, Yeah, I managed to find that out too.
I even managed to get the 'module not found: api' to work by specifying to import from .api instead of just api. I then found out that cPickle has been integrated into pickle, so I changed all references to match that. Then DirectoryAuthPlugin loaded just fine but that just got me into other trouble: 2023-12-14 06:50:16,164 Trac[env] ERROR: Component <Component tracext.dirauth.db.DirectoryAuthPluginSetup> failed with Traceback (most recent call last): File "/var/www/tracinst/lib/python3.11/site-packages/trac/env.py", line 382, in component_guard yield File "/var/www/tracinst/lib/python3.11/site-packages/trac/env.py", line 750, in needs_upgrade if participant.environment_needs_upgrade(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DirectoryAuthPluginSetup.environment_needs_upgrade() missing 1 required positional argument: 'db' 2023-12-14 06:50:16,164 Trac[env] ERROR: Exception caught while checking for upgrade: TracError: Unable to check for upgrade of tracext.dirauth.db.DirectoryAuthPluginSetup: TypeError: DirectoryAuthPluginSetup.environment_needs_upgrade() missing 1 required positional argument: 'db' And this is where my limited knowledge of programming is no longer sufficient. /tony -- Tony Albers - SCSA, SCNA, EMCIE, EMCBA, RHCSA Banedanmark, Digital Test Center Carsten Niebuhrs Gade 43, 1577 Copenhagen V ________________________________________ From: trac-users@googlegroups.com <trac-users@googlegroups.com> on behalf of Jun Omae <jun6...@gmail.com> Sent: 14 December 2023 03:03 To: trac-users@googlegroups.com Subject: Re: [Trac] Re: Unable to get acct_mgr to work with LDAP(AD) CAUTION: This email originated from outside the organization. On Wed, Dec 13, 2023 at 2:10?PM RjOllos <rjol...@gmail.com> wrote: > There's no message indicating DirectoryAuthPlugin is loading. It seems like > it may not be installed. That said, I'm not sure it's compatible with Trac > 1.6. > > https://trac-hacks.org/wiki/DirectoryAuthPlugin The plugin is unable to be loaded with Python 3 due to incompatibilities with Python 3. $ pyflakes tracext/dirauth/*.py tracext/dirauth/__init__.py:11:1: 'from api import *' used; unable to detect undefined names tracext/dirauth/__init__.py:11:1: 'api.*' imported but unused tracext/dirauth/__init__.py:12:1: 'from auth import *' used; unable to detect undefined names tracext/dirauth/__init__.py:12:1: 'auth.*' imported but unused tracext/dirauth/auth.py:202:24: multiple exception types must be parenthesized except Exception, e: ^ $ /dev/shm/venv-trac16/bin/python >>> import tracext.dirauth Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/dev/shm/venv-trac16/lib/python3.9/site-packages/tracext/dirauth/__init__.py", line 11, in <module> from api import * ModuleNotFoundError: No module named 'api' I've filed the issue at https://trac-hacks.org/ticket/14263. -- Jun Omae <jun6...@gmail.com> (?? ?) -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAEVLMaiORzj-toPEKCX08BF4jjCmxnx-c4gHSWLnGcTPYkY2jw%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/VI1PR05MB603257B9DD92F95EE1269D23BD8CA%40VI1PR05MB6032.eurprd05.prod.outlook.com.