$ pip uninstall TracAccountManager$ pip install svn+https://trac-hacks.org/svn/accountmanagerplugin/trunk
Tried:$ pip uninstall TracAccountManager$ pip install svn+https://trac-hacks.org/svn/accountmanagerplugin/trunkBut no succuss.
trac-admin /home/user/Development/TracEnv/TracProject/ upgradeThe upgrade failed. Please fix the issue and try again.
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
Thanks for your quick response! This must be being caused by a different issue, although the error message is the same. The error is occuring while trying to enable the Agilo trac plugin. Maybe it is better to head over to Agilo to fix this?
Please share the full tracelog from the exception.
Ryan
Ryan
From: David S
Sent: Monday, February 19, 21:10
Subject: Re: [Trac] AttributeError: 'Environment' object has no attribute 'get_db_cnx'
To: Trac Users
traceback?
Excerpt from log showing error trace.
From: Ryan Ollos <rjo...@gmail.com>
To: "trac-...@googlegroups.com" <trac-...@googlegroups.com>
Sent: Tue, Feb 20, 2018 05:17:11 GMT+00:00
Subject: Re: [Trac] AttributeError: 'Environment' object has no attribute 'get_db_cnx'
From: David S
Sent: Monday, February 19, 21:10
Subject: Re: [Trac] AttributeError: 'Environment' object has no attribute 'get_db_cnx'
To: Trac Users
traceback?
Excerpt from log showing error trace.
--
You received this message because you are subscribed to a topic in the Google Groups "Trac Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/trac-users/KtuRDCN60us/unsubscribe.
To unsubscribe from this group and all its topics, send an email to trac-users+...@googlegroups.com.
To post to this group, send email to trac-...@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
$ uname -a
Linux localhost.localdomain 4.14.14-200.fc26.x86_64 #1 SMP Fri Jan 19 13:27:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ trac-admin /home/user/Development/TracEnv/TracProject/ upgrade
The upgrade failed. Please fix the issue and try again.
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
Error is occurring on the command line when trying to upgrade the database, after enabling Agilo plug-in in trac.ini (agilo.* = enabled). Trac is installed in a virtualenv. After a new project is created, Agilo installation requires adding to trac.ini. Agilo's docs state only to add "agilo.* = enabled". Adding only this line and running upgrade results in the output: "Database is up to date, no upgrade necessary." This is invalid because elsewhere it is stated that this command ought to produce updates to the database. However, on trac installation for plug-ins, it states to add plug-ins under a section titled "[component]". Adding this section to trac.ini, then adding "agilo.* = enabled" below this, results in the error below:$ uname -a
Linux localhost.localdomain 4.14.14-200.fc26.x86_64 #1 SMP Fri Jan 19 13:27:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux$ trac-admin /home/user/Development/TracEnv/TracProject/ upgrade
The upgrade failed. Please fix the issue and try again.
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
> To post to this group, send email to trac-...@googlegroups.com
> <mailto:trac-users@googlegroups.com>.