Upgrade 1.0 to 1.2.6 and Account Manager Plugin

17 views
Skip to first unread message

Frank R.

unread,
May 24, 2023, 6:42:48 AM5/24/23
to trac-...@googlegroups.com
Since upgrading to 1.2.6 lead to error messages navigating to admin ==> users, I installed the stable version of https://trac-hacks.org/wiki/AccountManagerPlugin. Running Trac now there is no admin button and no Link to login. Checking the trac log ther is no "Loading plugin" for TracAccountManager-0.5.0-py2.7.egg. The only obvious log entry is

Trac[loader] ERROR: Skipping "flexibleassignto = flexibleassignto": ImportError: cannot import name _TRUE_VALUES

I also tried the dev version of the plugin, but same result.

Jun Omae

unread,
May 24, 2023, 10:22:42 AM5/24/23
to trac-...@googlegroups.com
I suspect that is caused by wrong configurations and/or installed plugins.
Please provide information about the following:

* trac.ini of your Trac Environment
* log/trac.log in your Trac Environment
* "System Information" and "Installed Plugins" in /about page of your
Trac Environment

--
Jun Omae <jun...@gmail.com> (大前 潤)

Frank R.

unread,
May 24, 2023, 10:44:20 AM5/24/23
to trac-...@googlegroups.com
 * trac.ini of your Trac Environment
 * log/trac.log in your Trac Environment
 * "System Information" and "Installed Plugins" in /about page of your
Trac Environment

How to provide that? I now do not have an admin button.
trac.log
trac.ini

Jun Omae

unread,
May 24, 2023, 11:25:27 AM5/24/23
to trac-...@googlegroups.com
Ah, sorry. I missed it is unable to view "System Information" in
/about page without logged in.

Missing logging for "Adding plugin" and "Loading plugin" of
AccountManagerPlugin in trac.log. I don't consider the
AccountManagerPlugin is successfully installed. How did you installed
the plugin? Check /usr/local/lib/python2.7/dist-packages and
/srv/www/trac/plugins.

Frank R.

unread,
May 25, 2023, 3:11:50 AM5/25/23
to trac-...@googlegroups.com
Missing logging for "Adding plugin" and "Loading plugin" of
AccountManagerPlugin in trac.log.
I don't consider the
AccountManagerPlugin is successfully installed.

Exactly what I noticed and presumed.
 
How did you installed
the plugin?

Downloading the zip, running setup.py and mv the egg to
 
Check /usr/local/lib/python2.7/dist-packages

I can see it there with read permission for everyone (same permissions as all other plugins).
 
/srv/www/trac/plugins.

No changes there and no old or recent version of the Account Manager plugin.

Jun Omae

unread,
May 25, 2023, 3:36:11 AM5/25/23
to trac-...@googlegroups.com
On Thu, May 25, 2023 at 4:11 PM Frank R. <frank.re...@gmail.com> wrote:
>> How did you installed
>> the plugin?
>
>
> Downloading the zip, running setup.py and mv the egg to
>
>>
>> Check /usr/local/lib/python2.7/dist-packages

The copying egg file to directory is incorrect to install.
Use one of the following:

* pip install <archive.zip>
* easy_install <archive.zip>
* python setup.py install
* python setup.py bdist_egg && pip install dist/*.egg
* python setup.py bdist_egg && easy_install dist/*.egg

Jun Omae

unread,
May 25, 2023, 3:38:20 AM5/25/23
to trac-...@googlegroups.com
On Thu, May 25, 2023 at 4:35 PM Jun Omae <jun...@gmail.com> wrote:
>
> On Thu, May 25, 2023 at 4:11 PM Frank R. <frank.re...@gmail.com> wrote:
> >> How did you installed
> >> the plugin?
> >
> >
> > Downloading the zip, running setup.py and mv the egg to
> >
> >>
> >> Check /usr/local/lib/python2.7/dist-packages
>
> The copying egg file to directory is incorrect to install.
> Use one of the following:

See also: https://trac-hacks.org/wiki/TracPlugins#InstallingaTracplugin

Frank R.

unread,
May 25, 2023, 4:21:01 AM5/25/23
to trac-...@googlegroups.com
The copying egg file to directory is incorrect to install.

Got that from somewhere in a forum...

Use one of the following:

* python setup.py install

Thanks a lot, this one worked for me.

Now I am able to log in, there is an admin button, but no USERS Link in the admin panel. What catches my eye in the log:

Trac[perm] DEBUG: DefaultPermissionPolicy allows freifenstahl performing ACCTMGR_USER_ADMIN on None

Jun Omae

unread,
May 25, 2023, 5:16:47 AM5/25/23
to trac-...@googlegroups.com
> Now I am able to log in, there is an admin button, but no USERS Link in the admin panel. What catches my eye in the log:

You should enable "acct_mgr.admin.UserAdminPanel".

Frank R.

unread,
May 25, 2023, 5:27:19 AM5/25/23
to trac-...@googlegroups.com
Am Do., 25. Mai 2023 um 11:16 Uhr schrieb Jun Omae <jun...@gmail.com>:
> Now I am able to log in, there is an admin button, but no USERS Link in the admin panel. What catches my eye in the log:

You should enable "acct_mgr.admin.UserAdminPanel".

Thanks, works!

Reply all
Reply to author
Forward
0 new messages